Skip to content

Added function for removing ACL table in sub-ports TC#5543

Merged
ZhaohuiS merged 1 commit intosonic-net:masterfrom
OleksandrKozodoi:add_removing_acl_table_sub_ports
Jul 7, 2022
Merged

Added function for removing ACL table in sub-ports TC#5543
ZhaohuiS merged 1 commit intosonic-net:masterfrom
OleksandrKozodoi:add_removing_acl_table_sub_ports

Conversation

@OleksandrKozodoi
Copy link
Contributor

Signed-off-by: Oleksandr Kozodoi [email protected]

Description of PR

Summary:
#2165 PR of sonic-swss repo caused errors in sub-port interfaces on LAG TC. Before moving ports to LAG, user should disable active ACL binding. So was added approach for unbinding those ports from ACL tables.

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911
  • 202012

Approach

What is the motivation for this PR?

Update sub_port_interfaces TC according to changes from #2165 PR of sonic-swss

How did you do it?

Added function for removing ACL table when ingress/egress ACL binding is configured on LAG members.

How did you verify/test it?

PASSED sub_port_interfaces/test_sub_port_interfaces.py::TestSubPorts::test_packet_routed_with_valid_vlan[port_in_lag]
PASSED sub_port_interfaces/test_sub_port_interfaces.py::TestSubPorts::test_packet_routed_with_invalid_vlan[port_in_lag]
PASSED sub_port_interfaces/test_sub_port_interfaces.py::TestSubPorts::test_admin_status_down_disables_forwarding[port_in_lag]
PASSED sub_port_interfaces/test_sub_port_interfaces.py::TestSubPorts::test_max_numbers_of_sub_ports[port_in_lag]
PASSED sub_port_interfaces/test_sub_port_interfaces.py::TestSubPorts::test_mtu_inherited_from_parent_port[port_in_lag]
PASSED sub_port_interfaces/test_sub_port_interfaces.py::TestSubPorts::test_vlan_config_impact[port_in_lag]
PASSED sub_port_interfaces/test_sub_port_interfaces.py::TestSubPorts::test_routing_between_sub_ports[same-port_in_lag-TCP-UDP-ICMP]
PASSED sub_port_interfaces/test_sub_port_interfaces.py::TestSubPorts::test_routing_between_sub_ports[different-port_in_lag-TCP-UDP-ICMP]
PASSED sub_port_interfaces/test_sub_port_interfaces.py::TestSubPorts::test_routing_between_sub_ports_and_port[svi-port_in_lag-TCP-UDP-ICMP]
PASSED sub_port_interfaces/test_sub_port_interfaces.py::TestSubPorts::test_routing_between_sub_ports_and_port[l3-port_in_lag-TCP-UDP-ICMP]
PASSED sub_port_interfaces/test_sub_port_interfaces.py::TestSubPorts::test_tunneling_between_sub_ports[same-port_in_lag]
PASSED sub_port_interfaces/test_sub_port_interfaces.py::TestSubPorts::test_tunneling_between_sub_ports[different-port_in_lag]
PASSED sub_port_interfaces/test_sub_port_interfaces.py::TestSubPorts::test_balancing_sub_ports[port_in_lag]

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

@OleksandrKozodoi OleksandrKozodoi requested a review from a team as a code owner April 20, 2022 15:35
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this configuration change need to be restored after testing is done?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SavchukRomanLv
Copy link

@wangxin could you please take a look? @OleksandrKozodoi left comments

@OleksandrKozodoi
Copy link
Contributor Author

@wangxin Can this be merged? Thank you in advance.

Copy link
Contributor

@ZhaohuiS ZhaohuiS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ZhaohuiS ZhaohuiS merged commit 4234525 into sonic-net:master Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants