MERAprojects / ops-build

Other
0 stars 0 forks source link

The command `show spanning-tree mst` displays incorrect path cost after recalculation. #31

Open alrukav opened 7 years ago

alrukav commented 7 years ago

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:

screenshot from 2017-02-16 01 49 15

Steps to reproduce the problem:

  1. Configure DUTs as in attached file.
  2. Check topology via show spanning-tree mst command:
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
  1. Change port cost on interface eth2 to 20000 on DUT2 and DUT3.
  2. Check topology via show spanning-tree mst command: 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