mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
addons: addressvirtual: fixing: duplicate address-virtual lines cause switch to lockup
Ticket: CM-10478 Reviewed By: Roopa Testing Done: Tested with the interface file provided in the ticket and a custom one.
This commit is contained in:
@ -261,6 +261,11 @@ class addressvirtual(moduleBase):
|
||||
self._remove_address_config(ifaceobj, address_virtual_list)
|
||||
return
|
||||
|
||||
if ifaceobj.upperifaces:
|
||||
self.log_error('%s: invalid placement of address-virtual lines (must be configured under an interface with no upper interfaces or parent interfaces)'
|
||||
% (ifaceobj.name), ifaceobj)
|
||||
return
|
||||
|
||||
if not self.ipcmd.link_exists(ifaceobj.name):
|
||||
return
|
||||
self._apply_address_config(ifaceobj, address_virtual_list)
|
||||
|
Reference in New Issue
Block a user