mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
Fix defaults for mstpctl-portp2p
Ticket: CM-4141 Reviewed By: Testing Done: Tested ifquery running for mstpctl-portp2p
This commit is contained in:
@@ -67,8 +67,8 @@ class mstpctl(moduleBase):
|
||||
'example' : ['mstpctl-portpathcost swp1=0 swp2=1']},
|
||||
'mstpctl-portp2p' :
|
||||
{ 'help' : 'bridge port p2p detection mode',
|
||||
'default' : 'no',
|
||||
'validvals' : ['yes', 'no'],
|
||||
'default' : 'auto',
|
||||
'validvals' : ['yes', 'no', 'auto'],
|
||||
'required' : False,
|
||||
'example' : ['mstpctl-portp2p swp1=no swp2=no']},
|
||||
'mstpctl-portrestrrole' :
|
||||
@@ -663,7 +663,7 @@ class mstpctl(moduleBase):
|
||||
|
||||
v = self.mstpctlcmd.get_bridgeport_attr(bridgename,
|
||||
ifaceobjrunning.name,'portp2p')
|
||||
if v and v != 'no':
|
||||
if v and v != 'auto':
|
||||
ifaceobjrunning.update_config('mstpctl-portp2p', v)
|
||||
|
||||
v = self.mstpctlcmd.get_bridgeport_attr(bridgename,
|
||||
|
Reference in New Issue
Block a user