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:
@@ -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 +
|
||||
|
Reference in New Issue
Block a user