misc: Fix python scripts shebang line
[vpp.git] / test / test_interface_crud.py
index ae30a6d..afeafa5 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """CRUD tests of APIs (Create, Read, Update, Delete) HLD:
 
 - interface up/down/add/delete - interface type:
@@ -85,7 +85,7 @@ class TestLoopbackInterfaceCRUD(VppTestCase):
         # create
         loopbacks = self.create_loopback_interfaces(20)
         for i in loopbacks:
-            i.local_ip4_prefix_len = 32
+            i.local_ip4_prefix.len = 32
             i.config_ip4()
             i.admin_up()
 
@@ -127,7 +127,7 @@ class TestLoopbackInterfaceCRUD(VppTestCase):
         # create
         loopbacks = self.create_loopback_interfaces(20)
         for i in loopbacks:
-            i.local_ip4_prefix_len = 32
+            i.local_ip4_prefix.len = 32
             i.config_ip4()
             i.admin_up()