From ec330e96bef364fdbe25dfbaf61d426e4b9a5170 Mon Sep 17 00:00:00 2001 From: Mykola Faryma Date: Fri, 13 Dec 2019 12:07:56 +0200 Subject: [PATCH] [config engine] For l2 preset, use admin_status: up by default Signed-off-by: Mykola Faryma --- src/sonic-config-engine/config_samples.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sonic-config-engine/config_samples.py b/src/sonic-config-engine/config_samples.py index adaea0c4532c..1b38276524c0 100644 --- a/src/sonic-config-engine/config_samples.py +++ b/src/sonic-config-engine/config_samples.py @@ -51,6 +51,7 @@ def generate_l2_config(data): data['VLAN']['Vlan1000'].setdefault('members', vp) data['VLAN_MEMBER'] = {} for port in natsorted(data['PORT'].keys()): + data['PORT'][port].setdefault('admin_status', 'up') data['VLAN_MEMBER']['Vlan1000|{}'.format(port)] = {'tagging_mode': 'untagged'} return data