Update network view 'done' to use updated model
The model makes use of Networkdev objects, when the user is ready, done will extract the current configuration from the devices and emit the actions. Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
This commit is contained in:
parent
fe7faaa038
commit
e097cc81c4
|
@ -138,8 +138,8 @@ class NetworkView(ViewPolicy):
|
||||||
result.label)
|
result.label)
|
||||||
|
|
||||||
def done(self, result):
|
def done(self, result):
|
||||||
actions = [action.get() for _, action in
|
actions = [iface.action.get() for iface in
|
||||||
self.model.configured_interfaces.items()]
|
self.model.get_configured_interfaces()]
|
||||||
actions += self.model.get_default_route()
|
actions += self.model.get_default_route()
|
||||||
log.debug('Configured Network Actions:\n{}'.format(
|
log.debug('Configured Network Actions:\n{}'.format(
|
||||||
yaml.dump(actions, default_flow_style=False)))
|
yaml.dump(actions, default_flow_style=False)))
|
||||||
|
|
Loading…
Reference in New Issue