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

        t.write("configure terminal")
        t.readln("Enter configuration commands, one per line.  End with CNTL/Z.")
        t.read("my_switch(config)#")
        t.write("interface vlan2999")
        t.read("my_switch(config-if)#")
        t.write("ip address 1.1.1.1 255.255.255.0")
        t.read("my_switch(config-if)#")
        t.write("ip address 2.2.2.2 255.255.255.0 secondary")
        t.read("my_switch(config-if)#")
        t.write("no ip address 1.1.1.1 255.255.255.0")
        t.readln("Must delete secondary before deleting primary")
        t.read("my_switch(config-if)#")
        t.write("no ip address 2.2.2.2 255.255.255.0 secondary")
        t.read("my_switch(config-if)#")
        t.write("no ip address 1.1.1.1 255.255.255.0")
        t.read("my_switch(config-if)#")
        t.write("exit")
        t.read("my_switch(config)#")
        t.write("exit")
        t.read("my_switch#")

        assert_interface_configuration(t, "Vlan2999", [
            "interface Vlan2999",
            " no ip address",
            "end"])

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