Changing the IP table for an interface is an error if the interface already has an...
[vpp.git] / test / test_dhcp.py
index fbfb8a0..a09c9bd 100644 (file)
@@ -58,6 +58,13 @@ class TestDHCP(VppTestCase):
             i.set_table_ip6(table_id)
             table_id += 1
 
+    def tearDown(self):
+        super(TestDHCP, self).tearDown()
+        for i in self.pg_interfaces:
+            i.unconfig_ip4()
+            i.unconfig_ip6()
+            i.admin_down()
+
     def send_and_assert_no_replies(self, intf, pkts, remark):
         intf.add_stream(pkts)
         self.pg_enable_capture(self.pg_interfaces)
@@ -293,7 +300,7 @@ class TestDHCP(VppTestCase):
         #
         # Inject a response from the server
         #  dropped, because there is no IP addrees on the
-        #  clinet interfce to fill in the option.
+        #  client interfce to fill in the option.
         #
         p = (Ether(dst=self.pg0.local_mac, src=self.pg0.remote_mac) /
              IP(src=self.pg0.remote_ip4, dst=self.pg0.local_ip4) /