

@with_protocol
def test_switchport_add_remove_trunk_trunk_vlans(self, t):
    enable(t)
    configuring_vlan(t, 1200)
    configuring_vlan(t, 1201)
    configuring_vlan(t, 1202)
    configuring_vlan(t, 1203)
    configuring_vlan(t, 1205)
    configuring_interface(t, 'ethernet 1/g1', do='switchport mode trunk')
    configuring_a_vlan_on_interface(t, 'ethernet 1/g1', do='switchport trunk allowed vlan add 1200')
    assert_interface_configuration(t, 'ethernet 1/g1', ['switchport mode trunk', 'switchport trunk allowed vlan add 1200'])
    configuring_a_vlan_on_interface(t, 'ethernet 1/g1', do='switchport trunk allowed vlan add 1200,1201')
    assert_interface_configuration(t, 'ethernet 1/g1', ['switchport mode trunk', 'switchport trunk allowed vlan add 1200-1201'])
    configuring_a_vlan_on_interface(t, 'ethernet 1/g1', do='switchport trunk allowed vlan add 1201-1203,1205')
    assert_interface_configuration(t, 'ethernet 1/g1', ['switchport mode trunk', 'switchport trunk allowed vlan add 1200-1203,1205'])
    configuring_a_vlan_on_interface(t, 'ethernet 1/g1', do='switchport trunk allowed vlan remove 1202')
    assert_interface_configuration(t, 'ethernet 1/g1', ['switchport mode trunk', 'switchport trunk allowed vlan add 1200-1201,1203,1205'])
    configuring_a_vlan_on_interface(self, 'ethernet 1/g1', do='switchport trunk allowed vlan remove 1203,1205')
    assert_interface_configuration(t, 'ethernet 1/g1', ['switchport mode trunk', 'switchport trunk allowed vlan add 1200-1201'])
    configuring_a_vlan_on_interface(t, 'ethernet 1/g1', do='switchport trunk allowed vlan remove 1200-1203')
    assert_interface_configuration(t, 'ethernet 1/g1', ['switchport mode trunk'])
    configuring_interface(t, 'ethernet 1/g1', do='switchport mode access')
    unconfigure_vlan(t, 1200)
    unconfigure_vlan(t, 1201)
    unconfigure_vlan(t, 1202)
    unconfigure_vlan(t, 1203)
    unconfigure_vlan(t, 1205)

dataset/ETHPy150Open internap/fake-switches/tests/dell/test_configure_interface.py DellConfigureInterfaceTest.test_switchport_add_remove_trunk_trunk_vlans/VarMisuse@164/452 `t`->`self`