# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## HP.ProCurve9xxx.get_portchannel test
## Auto-generated by manage.py debug-script at 2011-01-17 11:16:47
##----------------------------------------------------------------------
## Copyright (C) 2007-2011 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
from noc.lib.test import ScriptTestCase
class HP_ProCurve9xxx_get_portchannel_Test(ScriptTestCase):
    script="HP.ProCurve9xxx.get_portchannel"
    vendor="HP"
    platform='9304m'
    version='07.8.03T53'
    input={}
    result=[{'interface': '1', 'members': ['1/1', '1/2'], 'type': 'Switch'},
 {'interface': '2', 'members': ['1/3', '1/4'], 'type': 'Switch'},
 {'interface': '33', 'members': ['2/1', '2/2'], 'type': 'Switch'}]
    motd=' \n'
    cli={
'terminal length 1000':  'terminal length 1000\n',
## 'show trunk'
'show trunk': """show trunk
Max number of server trunks: 32; available: 32
Number of hash buckets per server trunk: 256
Configured number of hash buckets per server trunk: 256

Configured trunks:

Trunk ID: 1
Type: Switch
Ports_Configured: 2
Primary Port Monitored: Jointly

Ports         1/1     1/2     
Port Names    none    none    
Port_Status   enable  enable  
Monitor       off     off     
Mirror Port   N/A     N/A     
Monitor Dir   N/A     N/A     

Trunk ID: 2
Type: Switch
Ports_Configured: 2
Primary Port Monitored: Jointly

Ports         1/3     1/4     
Port Names    none    none    
Port_Status   enable  enable  
Monitor       off     off     
Mirror Port   N/A     N/A     
Monitor Dir   N/A     N/A     

Trunk ID: 33
Type: Switch
Ports_Configured: 2
Primary Port Monitored: Jointly

Ports         2/1     2/2     
Port Names    none    none    
Port_Status   enable  enable  
Monitor       off     off     
Mirror Port   N/A     N/A     
Monitor Dir   N/A     N/A     

Operational trunks:

Trunk ID: 1
Type: Switch
Duplex: Full
Speed: 1G
Tag: Yes
Priority: level0
Active Ports: 2


Ports         1/1        1/2        
Link_Status   active     active     
port_state    Forward    Forward    
Load Sharing
 Mac Address  113     113     
 IP           301     300     
 IPX          0       0       
 Apple Talk   0       0       
 Multicast    6124    6123    

Trunk ID: 2
Type: Switch
Duplex: None
Speed: None
Tag: Yes
Priority: level0
Active Ports: 0


Ports         1/3        1/4        
Link_Status   down       down       
port_state    Blocked    Blocked    
Load Sharing
 Mac Address  0       0       
 IP           0       0       
 IPX          0       0       
 Apple Talk   0       0       
 Multicast    0       0       

Trunk ID: 33
Type: Switch
Duplex: Full
Speed: 1G
Tag: Yes
Priority: level0
Active Ports: 2


Ports         2/1        2/2        
Link_Status   active     active     
port_state    Forward    Forward    
Load Sharing
 Mac Address  13      13      
 IP           18920   18919   
 IPX          0       0       
 Apple Talk   0       0       
 Multicast    0       0       
""",
}
    snmp_get={}
    snmp_getnext={}
