# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## Force10.FTOS.get_spanning_tree test
## Auto-generated by manage.py debug-script at 2010-10-20 16:19:35
##----------------------------------------------------------------------
## Copyright (C) 2007-2010 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
from noc.lib.test import ScriptTestCase
class Force10_FTOS_get_spanning_tree_Test(ScriptTestCase):
    script="Force10.FTOS.get_spanning_tree"
    vendor="Force10"
    platform='S25N'
    version='7.7.1.1'
    input={}
    result={'configuration': {'MSTP': {'region': 'TI', 'revision': 0}},
 'instances': [{'bridge_id': '00:01:E8:D6:2A:37',
                'bridge_priority': 32768,
                'id': 0,
                'interfaces': [{'designated_bridge_id': '00:01:E8:6D:1C:5C',
                                'designated_bridge_priority': 8192,
                                'designated_port_id': '128.3',
                                'edge': False,
                                'interface': 'Po 1',
                                'point_to_point': True,
                                'port_id': '128.2',
                                'priority': 128,
                                'role': 'root',
                                'state': 'forwarding'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.3',
                                'edge': False,
                                'interface': 'Po 2',
                                'point_to_point': True,
                                'port_id': '128.3',
                                'priority': 128,
                                'role': 'designated',
                                'state': 'forwarding'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.4',
                                'edge': False,
                                'interface': 'Po 3',
                                'point_to_point': True,
                                'port_id': '128.4',
                                'priority': 128,
                                'role': 'designated',
                                'state': 'forwarding'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.130',
                                'edge': True,
                                'interface': 'Gi 0/1',
                                'point_to_point': True,
                                'port_id': '128.130',
                                'priority': 128,
                                'role': 'designated',
                                'state': 'forwarding'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.131',
                                'edge': True,
                                'interface': 'Gi 0/2',
                                'point_to_point': True,
                                'port_id': '128.131',
                                'priority': 128,
                                'role': 'designated',
                                'state': 'forwarding'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.132',
                                'edge': True,
                                'interface': 'Gi 0/3',
                                'point_to_point': True,
                                'port_id': '128.132',
                                'priority': 128,
                                'role': 'designated',
                                'state': 'forwarding'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.133',
                                'edge': True,
                                'interface': 'Gi 0/4',
                                'point_to_point': True,
                                'port_id': '128.133',
                                'priority': 128,
                                'role': 'designated',
                                'state': 'forwarding'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.134',
                                'edge': True,
                                'interface': 'Gi 0/5',
                                'point_to_point': True,
                                'port_id': '128.134',
                                'priority': 128,
                                'role': 'designated',
                                'state': 'forwarding'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.135',
                                'edge': True,
                                'interface': 'Gi 0/6',
                                'point_to_point': True,
                                'port_id': '128.135',
                                'priority': 128,
                                'role': 'designated',
                                'state': 'forwarding'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.136',
                                'edge': True,
                                'interface': 'Gi 0/7',
                                'point_to_point': True,
                                'port_id': '128.136',
                                'priority': 128,
                                'role': 'designated',
                                'state': 'forwarding'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.137',
                                'edge': True,
                                'interface': 'Gi 0/8',
                                'point_to_point': True,
                                'port_id': '128.137',
                                'priority': 128,
                                'role': 'disabled',
                                'state': 'disabled'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.138',
                                'edge': True,
                                'interface': 'Gi 0/9',
                                'point_to_point': True,
                                'port_id': '128.138',
                                'priority': 128,
                                'role': 'disabled',
                                'state': 'disabled'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.139',
                                'edge': True,
                                'interface': 'Gi 0/10',
                                'point_to_point': True,
                                'port_id': '128.139',
                                'priority': 128,
                                'role': 'disabled',
                                'state': 'disabled'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.140',
                                'edge': True,
                                'interface': 'Gi 0/11',
                                'point_to_point': True,
                                'port_id': '128.140',
                                'priority': 128,
                                'role': 'disabled',
                                'state': 'disabled'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.141',
                                'edge': True,
                                'interface': 'Gi 0/12',
                                'point_to_point': True,
                                'port_id': '128.141',
                                'priority': 128,
                                'role': 'disabled',
                                'state': 'disabled'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.142',
                                'edge': False,
                                'interface': 'Gi 0/13',
                                'point_to_point': True,
                                'port_id': '128.142',
                                'priority': 128,
                                'role': 'designated',
                                'state': 'forwarding'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.143',
                                'edge': True,
                                'interface': 'Gi 0/14',
                                'point_to_point': True,
                                'port_id': '128.143',
                                'priority': 128,
                                'role': 'disabled',
                                'state': 'disabled'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.142',
                                'edge': False,
                                'interface': 'Gi 0/15',
                                'point_to_point': True,
                                'port_id': '128.144',
                                'priority': 128,
                                'role': 'backup',
                                'state': 'discarding'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.145',
                                'edge': True,
                                'interface': 'Gi 0/16',
                                'point_to_point': True,
                                'port_id': '128.145',
                                'priority': 128,
                                'role': 'disabled',
                                'state': 'disabled'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.146',
                                'edge': True,
                                'interface': 'Gi 0/17',
                                'point_to_point': True,
                                'port_id': '128.146',
                                'priority': 128,
                                'role': 'disabled',
                                'state': 'disabled'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.147',
                                'edge': True,
                                'interface': 'Gi 0/18',
                                'point_to_point': True,
                                'port_id': '128.147',
                                'priority': 128,
                                'role': 'disabled',
                                'state': 'disabled'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.148',
                                'edge': True,
                                'interface': 'Gi 0/19',
                                'point_to_point': True,
                                'port_id': '128.148',
                                'priority': 128,
                                'role': 'disabled',
                                'state': 'disabled'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.149',
                                'edge': True,
                                'interface': 'Gi 0/20',
                                'point_to_point': True,
                                'port_id': '128.149',
                                'priority': 128,
                                'role': 'disabled',
                                'state': 'disabled'}],
                'root_id': '00:01:E8:6D:1C:5C',
                'root_priority': 8192,
                'vlans': '1,1000-4094'},
               {'bridge_id': '00:01:E8:D6:2A:37',
                'bridge_priority': 32768,
                'id': 1,
                'interfaces': [{'designated_bridge_id': '00:01:E8:6D:1C:5C',
                                'designated_bridge_priority': 8192,
                                'designated_port_id': '128.3',
                                'edge': False,
                                'interface': 'Po 1',
                                'point_to_point': True,
                                'port_id': '128.2',
                                'priority': 128,
                                'role': 'root',
                                'state': 'forwarding'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.3',
                                'edge': False,
                                'interface': 'Po 2',
                                'point_to_point': True,
                                'port_id': '128.3',
                                'priority': 128,
                                'role': 'designated',
                                'state': 'forwarding'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.4',
                                'edge': False,
                                'interface': 'Po 3',
                                'point_to_point': True,
                                'port_id': '128.4',
                                'priority': 128,
                                'role': 'designated',
                                'state': 'forwarding'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.130',
                                'edge': True,
                                'interface': 'Gi 0/1',
                                'point_to_point': True,
                                'port_id': '128.130',
                                'priority': 128,
                                'role': 'designated',
                                'state': 'forwarding'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.131',
                                'edge': True,
                                'interface': 'Gi 0/2',
                                'point_to_point': True,
                                'port_id': '128.131',
                                'priority': 128,
                                'role': 'designated',
                                'state': 'forwarding'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.132',
                                'edge': True,
                                'interface': 'Gi 0/3',
                                'point_to_point': True,
                                'port_id': '128.132',
                                'priority': 128,
                                'role': 'designated',
                                'state': 'forwarding'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.133',
                                'edge': True,
                                'interface': 'Gi 0/4',
                                'point_to_point': True,
                                'port_id': '128.133',
                                'priority': 128,
                                'role': 'designated',
                                'state': 'forwarding'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.134',
                                'edge': True,
                                'interface': 'Gi 0/5',
                                'point_to_point': True,
                                'port_id': '128.134',
                                'priority': 128,
                                'role': 'designated',
                                'state': 'forwarding'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.135',
                                'edge': True,
                                'interface': 'Gi 0/6',
                                'point_to_point': True,
                                'port_id': '128.135',
                                'priority': 128,
                                'role': 'designated',
                                'state': 'forwarding'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.136',
                                'edge': True,
                                'interface': 'Gi 0/7',
                                'point_to_point': True,
                                'port_id': '128.136',
                                'priority': 128,
                                'role': 'designated',
                                'state': 'forwarding'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.137',
                                'edge': True,
                                'interface': 'Gi 0/8',
                                'point_to_point': True,
                                'port_id': '128.137',
                                'priority': 128,
                                'role': 'disabled',
                                'state': 'disabled'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.139',
                                'edge': True,
                                'interface': 'Gi 0/10',
                                'point_to_point': True,
                                'port_id': '128.139',
                                'priority': 128,
                                'role': 'disabled',
                                'state': 'disabled'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.141',
                                'edge': True,
                                'interface': 'Gi 0/12',
                                'point_to_point': True,
                                'port_id': '128.141',
                                'priority': 128,
                                'role': 'disabled',
                                'state': 'disabled'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.143',
                                'edge': True,
                                'interface': 'Gi 0/14',
                                'point_to_point': True,
                                'port_id': '128.143',
                                'priority': 128,
                                'role': 'disabled',
                                'state': 'disabled'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.145',
                                'edge': True,
                                'interface': 'Gi 0/16',
                                'point_to_point': True,
                                'port_id': '128.145',
                                'priority': 128,
                                'role': 'disabled',
                                'state': 'disabled'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.147',
                                'edge': True,
                                'interface': 'Gi 0/18',
                                'point_to_point': True,
                                'port_id': '128.147',
                                'priority': 128,
                                'role': 'disabled',
                                'state': 'disabled'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.149',
                                'edge': True,
                                'interface': 'Gi 0/20',
                                'point_to_point': True,
                                'port_id': '128.149',
                                'priority': 128,
                                'role': 'disabled',
                                'state': 'disabled'}],
                'root_id': '00:01:E8:6D:1C:5C',
                'root_priority': 8192,
                'vlans': '2-499'},
               {'bridge_id': '00:01:E8:D6:2A:37',
                'bridge_priority': 32768,
                'id': 2,
                'interfaces': [{'designated_bridge_id': '00:01:E8:6D:1C:5C',
                                'designated_bridge_priority': 8192,
                                'designated_port_id': '128.3',
                                'edge': False,
                                'interface': 'Po 1',
                                'point_to_point': True,
                                'port_id': '128.2',
                                'priority': 128,
                                'role': 'root',
                                'state': 'forwarding'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.3',
                                'edge': False,
                                'interface': 'Po 2',
                                'point_to_point': True,
                                'port_id': '128.3',
                                'priority': 128,
                                'role': 'designated',
                                'state': 'forwarding'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.138',
                                'edge': True,
                                'interface': 'Gi 0/9',
                                'point_to_point': True,
                                'port_id': '128.138',
                                'priority': 128,
                                'role': 'disabled',
                                'state': 'disabled'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.140',
                                'edge': True,
                                'interface': 'Gi 0/11',
                                'point_to_point': True,
                                'port_id': '128.140',
                                'priority': 128,
                                'role': 'disabled',
                                'state': 'disabled'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.142',
                                'edge': False,
                                'interface': 'Gi 0/13',
                                'point_to_point': True,
                                'port_id': '128.142',
                                'priority': 128,
                                'role': 'designated',
                                'state': 'forwarding'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.142',
                                'edge': False,
                                'interface': 'Gi 0/15',
                                'point_to_point': True,
                                'port_id': '128.144',
                                'priority': 128,
                                'role': 'backup',
                                'state': 'discarding'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.146',
                                'edge': True,
                                'interface': 'Gi 0/17',
                                'point_to_point': True,
                                'port_id': '128.146',
                                'priority': 128,
                                'role': 'disabled',
                                'state': 'disabled'},
                               {'designated_bridge_id': '00:01:E8:D6:2A:37',
                                'designated_bridge_priority': 32768,
                                'designated_port_id': '128.148',
                                'edge': True,
                                'interface': 'Gi 0/19',
                                'point_to_point': True,
                                'port_id': '128.148',
                                'priority': 128,
                                'role': 'disabled',
                                'state': 'disabled'}],
                'root_id': '00:01:E8:6D:1C:5C',
                'root_priority': 8192,
                'vlans': '500-999'}],
 'mode': 'MSTP'}
    motd=' \n'
    cli={
## 'show spanning-tree msti 2 brief'
'show spanning-tree msti 2 brief': """show spanning-tree msti 2 brief
MSTI 2 VLANs mapped  500-999

Executing IEEE compatible Spanning Tree Protocol
Root ID    Priority 8192, Address 0001.e86d.1c5c
Root Bridge hello time 2, max age 20, forward delay 15, max hops 19
Bridge ID    Priority 32768, Address 0001.e8d6.2a37
Configured hello time 2, max age 20, forward delay 15, max hops 20 

Interface                                        Designated                  
 Name      PortID   Prio Cost    Sts Cost        Bridge ID        PortID
---------- -------- ---- ------- --- ------- -------------------- --------
Po 1       128.2    128  2000    FWD 2000    8192  0001.e86d.1c5c 128.3   
Po 2       128.3    128  180000  FWD 2000    32768 0001.e8d6.2a37 128.3   
Gi 0/9     128.138  128  20000   DIS 2000    32768 0001.e8d6.2a37 128.138 
Gi 0/11    128.140  128  20000   DIS 2000    32768 0001.e8d6.2a37 128.140 
Gi 0/13    128.142  128  20000   FWD 2000    32768 0001.e8d6.2a37 128.142 
Gi 0/15    128.144  128  20000   BLK 2000    32768 0001.e8d6.2a37 128.142 
Gi 0/17    128.146  128  20000   DIS 2000    32768 0001.e8d6.2a37 128.146 
Gi 0/19    128.148  128  20000   DIS 2000    32768 0001.e8d6.2a37 128.148 

Interface
 Name      Role   PortID   Prio Cost    Sts Cost    Link-type Edge Boundary
---------- ------ -------- ---- ------- --- ------- --------- ---- --------
Po 1       Root   128.2    128  2000    FWD 2000    P2P       No   No      
Po 2       Desg   128.3    128  180000  FWD 2000    P2P       No   No      
Gi 0/9     Dis    128.138  128  20000   DIS 2000    P2P       Yes  No      
Gi 0/11    Dis    128.140  128  20000   DIS 2000    P2P       Yes  No      
Gi 0/13    Desg   128.142  128  20000   FWD 2000    P2P       No   No      
Gi 0/15    Backup 128.144  128  20000   BLK 2000    P2P       No   No      
Gi 0/17    Dis    128.146  128  20000   DIS 2000    P2P       Yes  No      
Gi 0/19    Dis    128.148  128  20000   DIS 2000    P2P       Yes  No      """,
## 'show spanning-tree mst configuration'
'show spanning-tree mst configuration': """show spanning-tree mst configuration
MST region name: TI 
Revision: 0 
MSTI    VID
   1    2-499
   2    500-999""",
'terminal length 0':  'terminal length 0\n',
## 'show spanning-tree msti 0 brief'
'show spanning-tree msti 0 brief': """show spanning-tree msti 0 brief
MSTI 0 VLANs mapped  1, 1000-4094

Executing IEEE compatible Spanning Tree Protocol
Root ID    Priority 8192, Address 0001.e86d.1c5c
Root Bridge hello time 2, max age 20, forward delay 15, max hops 19
Bridge ID    Priority 32768, Address 0001.e8d6.2a37
Configured hello time 2, max age 20, forward delay 15, max hops 20 
CIST regional root ID Priority 8192, Address 0001.e86d.1c5c
CIST external path cost 0

Interface                                        Designated                  
 Name      PortID   Prio Cost    Sts Cost        Bridge ID        PortID
---------- -------- ---- ------- --- ------- -------------------- --------
Po 1       128.2    128  2000    FWD 2000    8192  0001.e86d.1c5c 128.3   
Po 2       128.3    128  180000  FWD 2000    32768 0001.e8d6.2a37 128.3   
Po 3       128.4    128  18000   FWD 2000    32768 0001.e8d6.2a37 128.4   
Gi 0/1     128.130  128  200000  FWD 2000    32768 0001.e8d6.2a37 128.130 
Gi 0/2     128.131  128  200000  FWD 2000    32768 0001.e8d6.2a37 128.131 
Gi 0/3     128.132  128  200000  FWD 2000    32768 0001.e8d6.2a37 128.132 
Gi 0/4     128.133  128  200000  FWD 2000    32768 0001.e8d6.2a37 128.133 
Gi 0/5     128.134  128  200000  FWD 2000    32768 0001.e8d6.2a37 128.134 
Gi 0/6     128.135  128  200000  FWD 2000    32768 0001.e8d6.2a37 128.135 
Gi 0/7     128.136  128  200000  FWD 2000    32768 0001.e8d6.2a37 128.136 
Gi 0/8     128.137  128  20000   DIS 2000    32768 0001.e8d6.2a37 128.137 
Gi 0/9     128.138  128  20000   DIS 2000    32768 0001.e8d6.2a37 128.138 
Gi 0/10    128.139  128  20000   DIS 2000    32768 0001.e8d6.2a37 128.139 
Gi 0/11    128.140  128  20000   DIS 2000    32768 0001.e8d6.2a37 128.140 
Gi 0/12    128.141  128  20000   DIS 2000    32768 0001.e8d6.2a37 128.141 
Gi 0/13    128.142  128  20000   FWD 2000    32768 0001.e8d6.2a37 128.142 
Gi 0/14    128.143  128  20000   DIS 2000    32768 0001.e8d6.2a37 128.143 
Gi 0/15    128.144  128  20000   BLK 2000    32768 0001.e8d6.2a37 128.142 
Gi 0/16    128.145  128  20000   DIS 2000    32768 0001.e8d6.2a37 128.145 
Gi 0/17    128.146  128  20000   DIS 2000    32768 0001.e8d6.2a37 128.146 
Gi 0/18    128.147  128  20000   DIS 2000    32768 0001.e8d6.2a37 128.147 
Gi 0/19    128.148  128  20000   DIS 2000    32768 0001.e8d6.2a37 128.148 
Gi 0/20    128.149  128  20000   DIS 2000    32768 0001.e8d6.2a37 128.149 

Interface
 Name      Role   PortID   Prio Cost    Sts Cost    Link-type Edge Boundary
---------- ------ -------- ---- ------- --- ------- --------- ---- --------
Po 1       Root   128.2    128  2000    FWD 2000    P2P       No   No      
Po 2       Desg   128.3    128  180000  FWD 2000    P2P       No   No      
Po 3       Desg   128.4    128  18000   FWD 2000    P2P       No   No      
Gi 0/1     Desg   128.130  128  200000  FWD 2000    P2P       Yes  No      
Gi 0/2     Desg   128.131  128  200000  FWD 2000    P2P       Yes  No      
Gi 0/3     Desg   128.132  128  200000  FWD 2000    P2P       Yes  No      
Gi 0/4     Desg   128.133  128  200000  FWD 2000    P2P       Yes  No      
Gi 0/5     Desg   128.134  128  200000  FWD 2000    P2P       Yes  No      
Gi 0/6     Desg   128.135  128  200000  FWD 2000    P2P       Yes  No      
Gi 0/7     Desg   128.136  128  200000  FWD 2000    P2P       Yes  No      
Gi 0/8     Dis    128.137  128  20000   DIS 2000    P2P       Yes  No      
Gi 0/9     Dis    128.138  128  20000   DIS 2000    P2P       Yes  No      
Gi 0/10    Dis    128.139  128  20000   DIS 2000    P2P       Yes  No      
Gi 0/11    Dis    128.140  128  20000   DIS 2000    P2P       Yes  No      
Gi 0/12    Dis    128.141  128  20000   DIS 2000    P2P       Yes  No      
Gi 0/13    Desg   128.142  128  20000   FWD 2000    P2P       No   No      
Gi 0/14    Dis    128.143  128  20000   DIS 2000    P2P       Yes  No      
Gi 0/15    Backup 128.144  128  20000   BLK 2000    P2P       No   No      
Gi 0/16    Dis    128.145  128  20000   DIS 2000    P2P       Yes  No      
Gi 0/17    Dis    128.146  128  20000   DIS 2000    P2P       Yes  No      
Gi 0/18    Dis    128.147  128  20000   DIS 2000    P2P       Yes  No      
Gi 0/19    Dis    128.148  128  20000   DIS 2000    P2P       Yes  No      
Gi 0/20    Dis    128.149  128  20000   DIS 2000    P2P       Yes  No      """,
## 'show spanning-tree msti 1 brief'
'show spanning-tree msti 1 brief': """show spanning-tree msti 1 brief
MSTI 1 VLANs mapped  2-499

Executing IEEE compatible Spanning Tree Protocol
Root ID    Priority 8192, Address 0001.e86d.1c5c
Root Bridge hello time 2, max age 20, forward delay 15, max hops 19
Bridge ID    Priority 32768, Address 0001.e8d6.2a37
Configured hello time 2, max age 20, forward delay 15, max hops 20 

Interface                                        Designated                  
 Name      PortID   Prio Cost    Sts Cost        Bridge ID        PortID
---------- -------- ---- ------- --- ------- -------------------- --------
Po 1       128.2    128  2000    FWD 2000    8192  0001.e86d.1c5c 128.3   
Po 2       128.3    128  180000  FWD 2000    32768 0001.e8d6.2a37 128.3   
Po 3       128.4    128  18000   FWD 2000    32768 0001.e8d6.2a37 128.4   
Gi 0/1     128.130  128  200000  FWD 2000    32768 0001.e8d6.2a37 128.130 
Gi 0/2     128.131  128  200000  FWD 2000    32768 0001.e8d6.2a37 128.131 
Gi 0/3     128.132  128  200000  FWD 2000    32768 0001.e8d6.2a37 128.132 
Gi 0/4     128.133  128  200000  FWD 2000    32768 0001.e8d6.2a37 128.133 
Gi 0/5     128.134  128  200000  FWD 2000    32768 0001.e8d6.2a37 128.134 
Gi 0/6     128.135  128  200000  FWD 2000    32768 0001.e8d6.2a37 128.135 
Gi 0/7     128.136  128  200000  FWD 2000    32768 0001.e8d6.2a37 128.136 
Gi 0/8     128.137  128  20000   DIS 2000    32768 0001.e8d6.2a37 128.137 
Gi 0/10    128.139  128  20000   DIS 2000    32768 0001.e8d6.2a37 128.139 
Gi 0/12    128.141  128  20000   DIS 2000    32768 0001.e8d6.2a37 128.141 
Gi 0/14    128.143  128  20000   DIS 2000    32768 0001.e8d6.2a37 128.143 
Gi 0/16    128.145  128  20000   DIS 2000    32768 0001.e8d6.2a37 128.145 
Gi 0/18    128.147  128  20000   DIS 2000    32768 0001.e8d6.2a37 128.147 
Gi 0/20    128.149  128  20000   DIS 2000    32768 0001.e8d6.2a37 128.149 

Interface
 Name      Role   PortID   Prio Cost    Sts Cost    Link-type Edge Boundary
---------- ------ -------- ---- ------- --- ------- --------- ---- --------
Po 1       Root   128.2    128  2000    FWD 2000    P2P       No   No      
Po 2       Desg   128.3    128  180000  FWD 2000    P2P       No   No      
Po 3       Desg   128.4    128  18000   FWD 2000    P2P       No   No      
Gi 0/1     Desg   128.130  128  200000  FWD 2000    P2P       Yes  No      
Gi 0/2     Desg   128.131  128  200000  FWD 2000    P2P       Yes  No      
Gi 0/3     Desg   128.132  128  200000  FWD 2000    P2P       Yes  No      
Gi 0/4     Desg   128.133  128  200000  FWD 2000    P2P       Yes  No      
Gi 0/5     Desg   128.134  128  200000  FWD 2000    P2P       Yes  No      
Gi 0/6     Desg   128.135  128  200000  FWD 2000    P2P       Yes  No      
Gi 0/7     Desg   128.136  128  200000  FWD 2000    P2P       Yes  No      
Gi 0/8     Dis    128.137  128  20000   DIS 2000    P2P       Yes  No      
Gi 0/10    Dis    128.139  128  20000   DIS 2000    P2P       Yes  No      
Gi 0/12    Dis    128.141  128  20000   DIS 2000    P2P       Yes  No      
Gi 0/14    Dis    128.143  128  20000   DIS 2000    P2P       Yes  No      
Gi 0/16    Dis    128.145  128  20000   DIS 2000    P2P       Yes  No      
Gi 0/18    Dis    128.147  128  20000   DIS 2000    P2P       Yes  No      
Gi 0/20    Dis    128.149  128  20000   DIS 2000    P2P       Yes  No      """,
}
    snmp_get={}
    snmp_getnext={}
