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

Fix regression with ifreload when interface names change

Ticket: CM-8003
Reviewed By: CCR-3664
Testing Done: Tested renaming interfaces + ifreload
This commit is contained in:
Roopa Prabhu
2015-10-27 13:00:56 -07:00
parent 397214a54a
commit 93b399fb8b

View File

@@ -1244,8 +1244,8 @@ class ifupdownMain(ifupdownBase):
# oldconfig not available, continue with 'up' with new config
op = 'up'
if not ifacenames: ifacenames = self.ifaceobjdict.keys()
if op == 'reload' and ifacenames:
ifacenames = self.ifaceobjdict.keys()
old_filtered_ifacenames = [i for i in ifacenames
if self._iface_whitelisted(auto, allow,
excludepats, i)]
@@ -1329,7 +1329,6 @@ class ifupdownMain(ifupdownBase):
# and now, we are back to the current config in ifaceobjdict
self.ifaceobjdict = new_ifaceobjdict
self.dependency_graph = new_dependency_graph
ifacenames = self.ifaceobjdict.keys()
self.logger.info('reload: scheduling up on interfaces: %s'
%str(new_filtered_ifacenames))