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

ifupdownmain: process addon alias translation right after user config

Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
This commit is contained in:
Julien Fortin
2020-04-13 15:21:22 +02:00
parent 6bc9fadc44
commit 9ddfbfff85

View File

@ -1351,6 +1351,8 @@ class ifupdownMain:
nifaces.load()
if nifaces.errors or nifaces.warns:
ret = False
self._schedule_addon_translate()
return ret
def read_old_iface_config(self):
@ -1521,9 +1523,6 @@ class ifupdownMain:
def _sched_ifaces(self, ifacenames, ops, skipupperifaces=False,
followdependents=True, sort=False):
self._schedule_addon_translate()
self.logger.debug('scheduling \'%s\' for %s'
%(str(ops), str(ifacenames)))
self._pretty_print_ordered_dict('dependency graph',