Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dpapp] Initial dpapp implementation being a vpp plugin #609

Merged
merged 11 commits into from
Dec 4, 2024
Prev Previous commit
Next Next commit
Raise assert error with message
jimmyzhai committed Nov 23, 2024
commit 542f59bce8fde01d6865242acb8db4558e72b02f
6 changes: 3 additions & 3 deletions test/test-cases/functional/ptf/p4_dash_utils.py
Original file line number Diff line number Diff line change
@@ -267,7 +267,7 @@ def verify_flow(eni_mac, vnet_id, packet, existed = True):
sport = packet['UDP'].sport
dport = packet['UDP'].dport
else: # TODO: later for other ip proto
assert(False)
assert False, "Not TCP/UDP packet"

flow_table = P4FlowTable()
flow = flow_table.get_flow_entry(eni_mac, vnet_id,
@@ -277,9 +277,9 @@ def verify_flow(eni_mac, vnet_id, packet, existed = True):
dport,
packet['IP'].proto)
if existed:
assert(flow)
assert flow, "flow not found"
else:
assert(not flow)
assert not flow, "flow still found"


def verify_no_flow(eni_mac, vnet_id, packet):