From b7358c84b98041f38a5479db654c47cd1beec5ca Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 27 Jun 2020 15:12:28 +0200 Subject: ifconfig: T2653: macsec switch to default dictionary --- src/conf_mode/interfaces-macsec.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/conf_mode/interfaces-macsec.py b/src/conf_mode/interfaces-macsec.py index ca5c32eeb..bd3a15914 100755 --- a/src/conf_mode/interfaces-macsec.py +++ b/src/conf_mode/interfaces-macsec.py @@ -34,9 +34,6 @@ from vyos import ConfigError from vyos import airbag airbag.enable() -# XXX: workaround for https://phabricator.vyos.net/T2656 -default = {'security' : {'mka' : {'priority' : '255'}}} - # XXX: wpa_supplicant works on the source interface wpa_suppl_conf = '/run/wpa_supplicant/{source_interface}.conf' @@ -51,7 +48,7 @@ def get_config(): # retrieve interface default values base = ['interfaces', 'macsec'] - #default_values = defaults(base) + default_values = defaults(base, flat=False) ifname = os.environ['VYOS_TAGNODE_VALUE'] base = base + [ifname] @@ -69,7 +66,7 @@ def get_config(): # We have gathered the dict representation of the CLI, but there are # default options which we need to update into the dictionary # retrived. - macsec = dict_merge(default, macsec) + macsec = dict_merge(default_values, macsec) # Add interface instance name into dictionary macsec.update({'ifname': ifname}) -- cgit v1.2.3