

@with_protocol
def test_switchport_add_trunk_trunk_vlans_special_cases(self, t):
    enable(t)
    configuring_vlan(t, 1201)
    t.write('configure')
    t.readln('')
    t.read('my_switch(config)#')
    t.write('interface ethernet 1/g1')
    t.readln('')
    t.read('my_switch(config-if-1/g1)#')
    t.write('switchport trunk allowed vlan add 1200')
    t.readln('Interface not in Trunk Mode.')
    t.readln('')
    t.read('my_switch(config-if-1/g1)#')
    t.write('switchport mode trunk')
    t.readln('')
    t.read('my_switch(config-if-1/g1)#')
    t.write('switchport trunk allowed vlan add 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('          Failure Information')
    t.readln('---------------------------------------')
    t.readln('   VLANs failed to be configured : 1')
    t.readln('---------------------------------------')
    t.readln('   VLAN             Error')
    t.readln('---------------------------------------')
    t.readln('VLAN      1200 ERROR: This VLAN does not exist.')
    t.read('my_switch(config-if-1/g1)#')
    t.write('switchport trunk allowed vlan add 1200-1202')
    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('          Failure Information')
    t.readln('---------------------------------------')
    t.readln('   VLANs failed to be configured : 2')
    t.readln('---------------------------------------')
    t.readln('   VLAN             Error')
    t.readln('---------------------------------------')
    t.readln('VLAN      1200 ERROR: This VLAN does not exist.')
    t.readln('VLAN      1202 ERROR: This VLAN does not exist.')
    t.read('my_switch(config-if-1/g1)#')
    t.write('switchport trunk allowed vlan remove 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('          Failure Information')
    t.readln('---------------------------------------')
    t.readln('   VLANs failed to be configured : 1')
    t.readln('---------------------------------------')
    t.readln('   VLAN             Error')
    t.readln('---------------------------------------')
    t.readln('VLAN      1200 ERROR: This VLAN does not exist.')
    t.read('my_switch(config-if-1/g1)#')
    t.write('switchport trunk allowed vlan remove 1200-1202')
    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('          Failure Information')
    t.readln('---------------------------------------')
    t.readln('   VLANs failed to be configured : 2')
    t.readln('---------------------------------------')
    t.readln('   VLAN             Error')
    t.readln('---------------------------------------')
    t.readln('VLAN      1200 ERROR: This VLAN does not exist.')
    t.readln('VLAN      1202 ERROR: This VLAN does not exist.')
    t.read('my_switch(config-if-1/g1)#')
    t.write('switchport trunk allowed vlan add 1202-1201')
    t.readln("VLAN range - separate non-consecutive IDs with ',' and no spaces.  Use '-' for range.")
    t.readln('')
    t.read('my_switch(config-if-1/g1)#')
    t.write('switchport trunk allowed vlan add 1202 1201')
    t.readln('                                                                 ^')
    t.readln("% Invalid input detected at '^' marker.")
    t.readln('')
    t.read('my_switch(config-if-1/g1)#')
    t.write('switchport mode access')
    t.readln('')
    t.read('my_switch(config-if-1/g1)#')
    t.write('exit')
    t.readln('')
    t.read('my_switch(config)#')
    self.write('exit')
    t.readln('')
    t.read('my_switch#')
    unconfigure_vlan(t, 1201)

dataset/ETHPy150Open internap/fake-switches/tests/dell/test_configure_interface.py DellConfigureInterfaceTest.test_switchport_add_trunk_trunk_vlans_special_cases/VarMisuse@601/1437 `t`->`self`