From 7adb4b77ab47f663638918728ea482b7f86a89f3 Mon Sep 17 00:00:00 2001 From: Roopa Prabhu Date: Thu, 6 Nov 2014 16:10:21 -0800 Subject: [PATCH] Fix mstpctl attribute names in ifquery running output Ticket: CM-4141 Reviewed By: Testing Done: Tested with test case in CM-4141 + sanity testing --- addons/mstpctl.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/mstpctl.py b/addons/mstpctl.py index 45f2dd5..0652dfd 100644 --- a/addons/mstpctl.py +++ b/addons/mstpctl.py @@ -659,22 +659,22 @@ class mstpctl(moduleBase): v = self.mstpctlcmd.get_bridgeport_attr(bridgename, ifaceobjrunning.name, 'portadminedge') if v and v != 'no': - ifaceobjrunning.update_config('mstpctl-adminedge', v) + ifaceobjrunning.update_config('mstpctl-portadminedge', v) v = self.mstpctlcmd.get_bridgeport_attr(bridgename, ifaceobjrunning.name,'portp2p') if v and v != 'no': - ifaceobjrunning.update_config('mstpctl-p2p', v) + ifaceobjrunning.update_config('mstpctl-portp2p', v) v = self.mstpctlcmd.get_bridgeport_attr(bridgename, ifaceobjrunning.name, 'portrestrrole') if v and v != 'no': - ifaceobjrunning.update_config('mstpctl-restrrole', v) + ifaceobjrunning.update_config('mstpctl-portrestrrole', v) v = self.mstpctlcmd.get_bridgeport_attr(bridgename, ifaceobjrunning.name, 'restrtcn') if v and v != 'no': - ifaceobjrunning.update_config('mstpctl-restrtcn', v) + ifaceobjrunning.update_config('mstpctl-portrestrtcn', v) v = self.mstpctlcmd.get_bridgeport_attr(bridgename, ifaceobjrunning.name, 'bpduguard')