Commit 5e082627 authored by Alberts S's avatar Alberts S
Browse files

Rework incorrect Router async init dependencies

parent d074db6a
......@@ -44,12 +44,15 @@ class Router(CapybaraNetty):
return self
await asyncio.gather(
self.chain_coroutines(self.get_routes(), self.del_all_config_routes()),
self.get_config_routes(),
self.get_interfaces(),
self.chain_coroutines(
self.del_existing_interfaces(), self.add_dummy_interface(interface_name=self.dummy_interface_name)
),
*[
self.chain_coroutines(self.get_routes(), self.del_all_config_routes()),
self.get_config_routes(),
self.chain_coroutines(
self.del_existing_interfaces(),
self.add_dummy_interface(interface_name=self.dummy_interface_name),
self.get_interfaces(),
),
]
)
self.get_default_interface_name()
self.get_default_interface_ip()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment