

@with_protocol
def test_access_vlan_that_doesnt_exist_prints_a_warning_and_config_is_unchanged(self, t):
    enable(t)
    configure(t)
    t.write('interface ethernet 1/g1')
    t.readln('')
    t.read('my_switch(config-if-1/g1)#')
    t.write('switchport access vlan 1200')
    t.readln('Warning: The use of large numbers of VLANs or interfaces may cause significant')
    t.readln('delays in applying the configuration.')
    t.readln('')
    t.readln('')
    t.readln('VLAN ID not found.')
    t.readln('')
    t.read('my_switch(config-if-1/g1)#')
    t.write('exit')
    t.readln('')
    t.read('my_switch(config)#')
    t.write('exit')
    t.readln('')
    t.read('my_switch#')
    assert_interface_configuration(t, 'ethernet 1/g1', [''])

dataset/ETHPy150Open internap/fake-switches/tests/dell/test_configure_interface.py DellConfigureInterfaceTest.test_access_vlan_that_doesnt_exist_prints_a_warning_and_config_is_unchanged/original