#NEWLINE# @ with_protocol #NEWLINE# def test_switchport_add_remove_general_trunk_vlans( self , t ) : #NEWLINE# #INDENT# enable ( t ) #NEWLINE# add_vlan ( t , 1200 ) #NEWLINE# add_vlan ( t , 1201 ) #NEWLINE# add_vlan ( t , 1202 ) #NEWLINE# add_vlan ( t , 1203 ) #NEWLINE# add_vlan ( t , 1205 ) #NEWLINE# configuring_interface ( t , 'tengigabitethernet 0/0/1' , do = 'switchport mode general' ) #NEWLINE# configuring_interface ( t , 'tengigabitethernet 0/0/1' , do = 'switchport general allowed vlan add 1200' ) #NEWLINE# assert_interface_configuration ( t , 'tengigabitethernet 0/0/1' , [ 'switchport mode general' , 'switchport general allowed vlan add 1200' ] ) #NEWLINE# configuring_interface ( t , 'tengigabitethernet 0/0/1' , do = 'switchport general allowed vlan add 1200,1201' ) #NEWLINE# assert_interface_configuration ( t , 'tengigabitethernet 0/0/1' , [ 'switchport mode general' , 'switchport general allowed vlan add 1200-1201' ] ) #NEWLINE# configuring_interface ( t , 'tengigabitethernet 0/0/1' , do = 'switchport general allowed vlan add 1201-1203,1205' ) #NEWLINE# assert_interface_configuration ( t , 'tengigabitethernet 0/0/1' , [ 'switchport mode general' , 'switchport general allowed vlan add 1200-1203,1205' ] ) #NEWLINE# configuring_interface ( t , 'tengigabitethernet 0/0/1' , do = 'switchport general allowed vlan remove 1202' ) #NEWLINE# assert_interface_configuration ( t , 'tengigabitethernet 0/0/1' , [ 'switchport mode general' , 'switchport general allowed vlan add 1200-1201,1203,1205' ] ) #NEWLINE# configuring_interface ( t , 'tengigabitethernet 0/0/1' , do = 'switchport general allowed vlan remove 1203,1205' ) #NEWLINE# assert_interface_configuration ( t , 'tengigabitethernet 0/0/1' , [ 'switchport mode general' , 'switchport general allowed vlan add 1200-1201' ] ) #NEWLINE# configuring_interface ( t , 'tengigabitethernet 0/0/1' , do = 'switchport general allowed vlan remove 1200-1203' ) #NEWLINE# assert_interface_configuration ( self , 'tengigabitethernet 0/0/1' , [ 'switchport mode general' ] ) #NEWLINE# configuring_interface ( t , 'tengigabitethernet 0/0/1' , do = 'switchport mode access' ) #NEWLINE# configuring ( t , do = 'no vlan 1200' ) #NEWLINE# configuring ( t , do = 'no vlan 1201' ) #NEWLINE# configuring ( t , do = 'no vlan 1202' ) #NEWLINE# configuring ( t , do = 'no vlan 1203' ) #NEWLINE# configuring ( t , do = 'no vlan 1205' )