Open alrukav opened 7 years ago
The command show spanning-tree mst displays incorrect path cost after root port change.
show spanning-tree mst
Version OpenSwitch 0.4.0 (Build: appliance-ops-0.4.0-meraswitch/devel/master-20170209151505-dev)
DUT1: switch# show spanning-tree mst #### MST0 Vlans mapped: 1-4095 Bridge Address:70:72:cf:95:e7:5d priority:16384 Regional Root Root Address:70:72:cf:95:e7:5d Priority:16384 Port:0, Cost:0, Rem Hops:20 Port Role State Cost Priority Type -------------- -------------- ---------- ---------- ---------- ---------- eth1 Designated Forwarding 70000 128 point_to_point eth2 Designated Forwarding 60000 128 point_to_point DUT2: #### MST0 Vlans mapped: 1-4095 Bridge Address:70:72:cf:fc:32:94 priority:32768 Root Address:70:72:cf:95:e7:5d Priority:16384 Port:eth2, Cost:65000, Rem Hops:18 Port Role State Cost Priority Type -------------- -------------- ---------- ---------- ---------- ---------- eth1 Alternate Blocking 70000 128 point_to_point eth2 Root Forwarding 5000 128 point_to_point DUT3: #### MST0 Vlans mapped: 1-4095 Bridge Address:70:72:cf:48:6c:66 priority:32768 Root Address:70:72:cf:95:e7:5d Priority:16384 Port:eth1, Cost:60000, Rem Hops:19 Port Role State Cost Priority Type -------------- -------------- ---------- ---------- ---------- ---------- eth1 Root Forwarding 60000 128 point_to_point eth2 Designated Forwarding 5000 128 point_to_point
NOK - DUT2 have incorrect path cost to the root bridge (Cost:80000 instead of 70000):
DUT1: switch# show spanning-tree mst #### MST0 Vlans mapped: 1-4095 Bridge Address:70:72:cf:95:e7:5d priority:16384 Regional Root Root Address:70:72:cf:95:e7:5d Priority:16384 Port:0, Cost:0, Rem Hops:20 Port Role State Cost Priority Type -------------- -------------- ---------- ---------- ---------- ---------- eth1 Designated Forwarding 70000 128 point_to_point eth2 Designated Forwarding 60000 128 point_to_point DUT2: #### MST0 Vlans mapped: 1-4095 Bridge Address:70:72:cf:fc:32:94 priority:32768 Root Address:70:72:cf:95:e7:5d Priority:16384 Port:eth1, Cost:80000, Rem Hops:19 Port Role State Cost Priority Type -------------- -------------- ---------- ---------- ---------- ---------- eth1 Root Forwarding 70000 128 point_to_point eth2 Alternate Blocking 20000 128 point_to_point DUT3: #### MST0 Vlans mapped: 1-4095 Bridge Address:70:72:cf:48:6c:66 priority:32768 Root Address:70:72:cf:95:e7:5d Priority:16384 Port:eth1, Cost:60000, Rem Hops:19 Port Role State Cost Priority Type -------------- -------------- ---------- ---------- ---------- ---------- eth1 Root Forwarding 60000 128 point_to_point eth2 Designated Forwarding 20000 128 point_to_point
path_cost_recalc.txt
Problem Description:
The command
show spanning-tree mst
displays incorrect path cost after root port change.OpenSwitch version:
Version OpenSwitch 0.4.0 (Build: appliance-ops-0.4.0-meraswitch/devel/master-20170209151505-dev)
Test Topology:
Steps to reproduce the problem:
show spanning-tree mst
command:show spanning-tree mst
command:NOK - DUT2 have incorrect path cost to the root bridge (Cost:80000 instead of 70000):
path_cost_recalc.txt