# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## DLink.DxS.get_vlans test
## Auto-generated by manage.py debug-script at 2011-03-29 12:16:54
##----------------------------------------------------------------------
## Copyright (C) 2007-2011 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
from noc.lib.test import ScriptTestCase
class DLink_DxS_get_vlans_Test(ScriptTestCase):
    script="DLink.DxS.get_vlans"
    vendor="DLink"
    platform='DGS-3120-24TC'
    version='1.01.B033'
    input={}
    result=[{'name': 'default', 'vlan_id': 1},
 {'name': 'srv_ext', 'vlan_id': 2},
 {'name': 'srv_int', 'vlan_id': 3},
 {'name': 'bm18_swlink', 'vlan_id': 9}]
    motd='**********\n\n'
    cli={
## 'disable clipaging'
'disable clipaging': """disable clipaging
Command: disable clipaging

Success.                                                          
""", 
## 'show vlan'
'show vlan': """show vlan
Command: show vlan


VLAN Trunk State\t: Disabled
VLAN Trunk Member Ports\t: 


VID             : 1               VLAN Name     : default
VLAN Type       : Static          Advertisement : Enabled
Member Ports    :                     
Static Ports    :                     
Current Tagged Ports  :                     
Current Untagged Ports:                     
Static Tagged Ports   :                     
Static Untagged Ports :                     
Forbidden Ports       :                     

VID             : 2               VLAN Name     : srv_ext
VLAN Type       : Static          Advertisement : Disabled
Member Ports    : 1:1,1:3-1:10,1:24   
Static Ports    : 1:1,1:3-1:10,1:24   
Current Tagged Ports  : 1:1,1:6,1:9,1:24    
Current Untagged Ports: 1:3-1:5,1:7-1:8,1:10
Static Tagged Ports   : 1:1,1:6,1:9,1:24    
Static Untagged Ports : 1:3-1:5,1:7-1:8,1:10
Forbidden Ports       :                     

VID             : 3               VLAN Name     : srv_int
VLAN Type       : Static          Advertisement : Disabled
Member Ports    : 1:2,1:6             
Static Ports    : 1:2,1:6             
Current Tagged Ports  : 1:2,1:6             
Current Untagged Ports:                     
Static Tagged Ports   : 1:2,1:6             
Static Untagged Ports :                     
Forbidden Ports       :                     

VID             : 9               VLAN Name     : bm18_swlink
VLAN Type       : Static          Advertisement : Disabled
Member Ports    : 1:2,1:6             
Static Ports    : 1:2,1:6             
Current Tagged Ports  : 1:2,1:6             
Current Untagged Ports:                     
Static Tagged Ports   : 1:2,1:6             
Static Untagged Ports :                     
Forbidden Ports       :                     
 
Total Static VLAN Entries: 4 
Total GVRP VLAN Entries: 0 

""", 
}
    snmp_get={}
    snmp_getnext={}
