File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ import subprocess
2323import sys
2424from tabulate import tabulate
2525from minigraph import parse_xml
26+ from sonic_platform import get_machine_info
27+ from sonic_platform import get_platform_info
2628
2729class Teamshow (object ):
2830 def __init__ (self ):
@@ -36,7 +38,10 @@ class Teamshow(object):
3638 Get the portchannel names from minigraph.
3739 """
3840 minigraph_path = '/etc/sonic/minigraph.xml'
39- self .teams = parse_xml (minigraph_path )['minigraph_portchannels' ].keys ();
41+ machine_info = get_machine_info ()
42+ platform_info = get_platform_info (machine_info )
43+
44+ self .teams = parse_xml (minigraph_path , platform = platform_info )['minigraph_portchannels' ].keys ();
4045
4146 def get_team_id (self , team ):
4247 """
You can’t perform that action at this time.
0 commit comments