Revision eaa89cc6
Added by Ermal Luçi over 10 years ago
etc/inc/util.inc | ||
---|---|---|
956 | 956 |
switch ($what) { |
957 | 957 |
case 'subnet': |
958 | 958 |
if ($family == 'inet' && is_ipaddrv4($vip['subnet'])) |
959 |
return "{$vip['subnet']}/{$vip['subnet_bits']}";
|
|
959 |
return $vip['subnet_bits'];
|
|
960 | 960 |
else if ($family == 'inet6' && is_ipaddrv6($vip['subnet'])) |
961 |
return "{$vip['subnet']}/{$vip['subnet_bits']}";
|
|
961 |
return $vip['subnet_bits'];
|
|
962 | 962 |
break; |
963 | 963 |
case 'iface': |
964 | 964 |
if ($family == 'inet' && is_ipaddrv4($vip['subnet'])) |
Also available in: Unified diff
Ticket #4390 Return only the subnet bits not the full network in cidr format.