Skip to content

Commit

Permalink
Fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
prgeor committed Feb 24, 2024
1 parent bd7bc90 commit 1192b5f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_port.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def get_port_flapcount(dvs):
break
return fcount

def port_change_admin_status(dvs, status):
dvs.servers[0].runcmd("ip link set {} dev eth0".format(status)) == 0
def port_change_admin_status(dvs, op_status):
dvs.servers[0].runcmd("ip link set {} dev eth0".format(op_status)) == 0
time.sleep(1)

db = swsscommon.DBConnector(0, dvs.redis_sock, 0)
Expand All @@ -87,8 +87,8 @@ def port_change_admin_status(dvs, status):
oper_status = v[1]
break

assert oper_status == status
assert oper_status == op_status

dvs.port_admin_set("Ethernet0", "up")
dvs.interface_ip_add("Ethernet0", "10.0.0.0/31")
dvs.port_admin_set("Ethernet4", "up")
Expand Down

0 comments on commit 1192b5f

Please sign in to comment.