1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

address: initialize newaddr

Closes: CM-8558
Review: CCR-3921
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
[rp: cherrypick of commit 3af9e9ef535a]
This commit is contained in:
Roopa Prabhu
2015-12-23 19:23:51 -08:00
parent b695613baa
commit 494d31d26c

View File

@@ -134,6 +134,7 @@ class address(moduleBase):
if '/' in addr:
newaddrs.append(addr)
continue
newaddr = addr
netmask = ifaceobj.get_attr_value_n('netmask', addr_index)
if netmask:
prefixlen = IPNetwork('%s' %addr +