aboutsummaryrefslogtreecommitdiffstats
path: root/os_net_config/objects.py
diff options
context:
space:
mode:
Diffstat (limited to 'os_net_config/objects.py')
-rw-r--r--os_net_config/objects.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/os_net_config/objects.py b/os_net_config/objects.py
index 8899164..6d0921f 100644
--- a/os_net_config/objects.py
+++ b/os_net_config/objects.py
@@ -117,6 +117,7 @@ class Address(object):
ip_nw = netaddr.IPNetwork(self.ip_netmask)
self.ip = str(ip_nw.ip)
self.netmask = str(ip_nw.netmask)
+ self.prefixlen = ip_nw.prefixlen
self.version = ip_nw.version
@staticmethod