#NEWLINE# @ with_protocol #NEWLINE# def test_access_vlan_that_doesnt_exist_prints_a_warning_and_config_is_unchanged( self , t ) : #NEWLINE# #INDENT# enable ( t ) #NEWLINE# t . write ( 'configure' ) #NEWLINE# t . readln ( '' ) #NEWLINE# t . read ( 'my_switch(config)#' ) #NEWLINE# t . write ( 'interface tengigabitethernet 0/0/1' ) #NEWLINE# t . readln ( '' ) #NEWLINE# t . read ( 'my_switch(config-if-Te0/0/1)#' ) #NEWLINE# t . write ( 'switchport access vlan 1200' ) #NEWLINE# t . readln ( '' ) #NEWLINE# t . readln ( 'VLAN ID not found.' ) #NEWLINE# t . readln ( '' ) #NEWLINE# t . read ( 'my_switch(config-if-Te0/0/1)#' ) #NEWLINE# t . write ( 'exit' ) #NEWLINE# t . readln ( '' ) #NEWLINE# t . read ( 'my_switch(config)#' ) #NEWLINE# t . write ( 'exit' ) #NEWLINE# t . readln ( '' ) #NEWLINE# t . read ( 'my_switch#' ) #NEWLINE# assert_interface_configuration ( t , 'tengigabitethernet 0/0/1' , [ '' ] )