def test_assigning_a_secondary_ip_as_the_primary_removes_it_from_secondary_and_removes_the_primary(self, t):
        enable(t)

        create_interface_vlan(t, "4000")
        configuring_interface_vlan(t, "4000", do="ip address 2.2.2.2 255.255.255.0")
        configuring_interface_vlan(t, "4000", do="ip address 4.2.2.2 255.255.255.0 secondary")
        configuring_interface_vlan(t, "4000", do="ip address 3.2.2.2 255.255.255.0 secondary")
        configuring_interface_vlan(t, "4000", do="ip address 3.2.2.2 255.255.255.128")

        assert_interface_configuration(t, "Vlan4000", [
            "interface Vlan4000",
            " ip address 4.2.2.2 255.255.255.0 secondary",
            " ip address 3.2.2.2 255.255.255.128",
            "end"])

        configuring(t, do="no interface vlan 4000")