#NEWLINE# @ with_protocol #NEWLINE# def test_switchport_mode( self , t ) : #NEWLINE# #INDENT# enable ( t ) #NEWLINE# add_vlan ( t , 1264 ) #NEWLINE# add_vlan ( t , 1265 ) #NEWLINE# assert_interface_configuration ( t , 'tengigabitethernet 0/0/1' , [ '' ] ) #NEWLINE# configuring_interface ( t , 'tengigabitethernet 0/0/1' , do = 'switchport mode access' ) #NEWLINE# assert_interface_configuration ( t , 'tengigabitethernet 0/0/1' , [ '' ] ) #NEWLINE# configuring_interface ( t , 'tengigabitethernet 0/0/1' , do = 'switchport access vlan 1264' ) #NEWLINE# assert_interface_configuration ( t , 'tengigabitethernet 0/0/1' , [ 'switchport access vlan 1264' ] ) #NEWLINE# configuring_interface ( t , 'tengigabitethernet 0/0/1' , do = 'switchport mode access' ) #NEWLINE# assert_interface_configuration ( t , 'tengigabitethernet 0/0/1' , [ 'switchport access vlan 1264' ] ) #NEWLINE# configuring_interface ( t , 'tengigabitethernet 0/0/1' , do = 'switchport mode general' ) #NEWLINE# assert_interface_configuration ( t , 'tengigabitethernet 0/0/1' , [ 'switchport mode general' , 'switchport access vlan 1264' ] ) #NEWLINE# configuring_interface ( t , 'tengigabitethernet 0/0/1' , do = 'switchport general pvid 1264' ) #NEWLINE# assert_interface_configuration ( t , 'tengigabitethernet 0/0/1' , [ 'switchport mode general' , 'switchport access vlan 1264' , 'switchport general pvid 1264' ] ) #NEWLINE# configuring_interface ( t , 'tengigabitethernet 0/0/1' , do = 'no switchport access vlan' ) #NEWLINE# configuring_interface ( t , 'tengigabitethernet 0/0/1' , do = 'switchport general allowed vlan add 1265' ) #NEWLINE# assert_interface_configuration ( t , 'tengigabitethernet 0/0/1' , [ 'switchport mode general' , 'switchport general pvid 1264' , 'switchport general allowed vlan add 1265' ] ) #NEWLINE# configuring_interface ( t , 'tengigabitethernet 0/0/1' , do = 'no switchport general pvid' ) #NEWLINE# configuring_interface ( t , 'tengigabitethernet 0/0/1' , do = 'no switchport general allowed vlan' ) #NEWLINE# configuring_interface ( t , 'tengigabitethernet 0/0/1' , do = 'switchport mode trunk' ) #NEWLINE# assert_interface_configuration ( self , 'tengigabitethernet 0/0/1' , [ 'switchport mode trunk' ] ) #NEWLINE# configuring_interface ( t , 'tengigabitethernet 0/0/1' , do = 'switchport mode access' ) #NEWLINE# assert_interface_configuration ( t , 'tengigabitethernet 0/0/1' , [ '' ] ) #NEWLINE# configuring ( t , do = 'no vlan 1265' ) #NEWLINE# configuring ( t , do = 'no vlan 1264' )