Skip to content

Commit

Permalink
[202111] [portchannel] Added ACL/PBH binding checks to the port befor…
Browse files Browse the repository at this point in the history
…e getting added to portchannel (sonic-net#2186)

- What I did
Backport sonic-net#2151 to 202111
The change to handle it in oA is already added.

When this check is not performed when adding the config, the portchannel configuration will be inconsistent b/w Kernel and ASIC

- How I did it
Utilize the match infra to implement methods to check for ACL/PBH bindings to a port

- How to verify it
Unit tests

Signed-off-by: Vivek Reddy Karri <vkarri@nvidia.com>
  • Loading branch information
vivekrnv authored and dbarashinvd committed Jul 10, 2022
1 parent d235bc8 commit 8b7fe6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@
from utilities_common.intf_filter import parse_interface_in_filter
from utilities_common import bgp_util
import utilities_common.cli as clicommon
from utilities_common.general import load_db_config
from utilities_common.helper import get_port_pbh_binding, get_port_acl_binding
from utilities_common.general import load_db_config, load_module_from_source
import utilities_common.multi_asic as multi_asic_util

from .utils import log

Expand Down
2 changes: 1 addition & 1 deletion dump/match_infra.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def clear(self, namespace=None):

def fill(self, ns, conn, connected_to):
""" Update internal cache """
self.cache[ns] = {CONN: conn, CONN_TO: set(connected_to)}
self.cache[ns] = {'conn': conn, 'connected_to': set(connected_to)}


class MatchEngine:
Expand Down

0 comments on commit 8b7fe6a

Please sign in to comment.