Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions ansible/roles/test/files/acstests/everflow_policer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,12 @@ def checkMirroredFlow(self):
masked_exp_pkt.set_do_not_care(38*8, len(payload)*8) # don't match payload, payload will be matched by match_payload(pkt)

def match_payload(pkt):
pkt = scapy.Ether(pkt).load
if self.asic_type in ["mellanox"]:
pkt = scapy.Ether(pkt).load
pkt = pkt[22:] # Mask the Mellanox specific inner header
pkt = scapy.Ether(pkt)
pkt = scapy.Ether(pkt)
else:
pkt = scapy.Ether(pkt)[scapy.GRE].payload

return dataplane.match_exp_pkt(payload_mask, pkt)

Expand Down
31 changes: 3 additions & 28 deletions ansible/roles/test/tasks/everflow_testbed.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,4 @@
- name: Get switch capabilities
include_tasks: "roles/test/tasks/everflow_testbed/get_capabilities_info.yml"

- name: Get general port information
include_tasks: "roles/test/tasks/everflow_testbed/get_general_port_info.yml"

- include_tasks: "roles/test/tasks/everflow_testbed/everflow_main.yml"
- name: run test
include_tasks: roles/test/tasks/pytest_runner.yml
vars:
mirror_stage: "ingress"
acl_stage: "ingress"
when: test_ingress_mirror_on_ingress_acl == true

- include_tasks: "roles/test/tasks/everflow_testbed/everflow_main.yml"
vars:
mirror_stage: "egress"
acl_stage: "ingress"
when: test_egress_mirror_on_ingress_acl == true

- include_tasks: "roles/test/tasks/everflow_testbed/everflow_main.yml"
vars:
mirror_stage: "ingress"
acl_stage: "egress"
when: test_ingress_mirror_on_egress_acl == true

- include_tasks: "roles/test/tasks/everflow_testbed/everflow_main.yml"
vars:
mirror_stage: "egress"
acl_stage: "egress"
when: test_egress_mirror_on_egress_acl == true
test_node: test_everflow_testbed.py
1 change: 1 addition & 0 deletions tests/acstests
1 change: 1 addition & 0 deletions tests/templates/acl_rule_persistent-del.json
1 change: 1 addition & 0 deletions tests/templates/acl_rule_persistent.json.j2
Loading