Skip to content

Commit

Permalink
Fix UT
Browse files Browse the repository at this point in the history
  • Loading branch information
bingwang-ms committed Jan 20, 2023
1 parent 85a8466 commit b10bf97
Show file tree
Hide file tree
Showing 4 changed files with 982 additions and 25 deletions.
4 changes: 3 additions & 1 deletion src/sonic-config-engine/minigraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,9 @@ def parse_dpg(dpg, hname):
# There are both port alias and port name, then port alias is preferred to keep the behavior not changed
else:
use_port_alias = True
print("Warning: The given port name for ACL " + aclname + " is inconsistent. It must be either port name or alias ", file=sys.stderr)
# For CTRLPLANE ACL, both counters are 0
if (port_alias_count != 0) and (port_name_count != 0):
print("Warning: The given port name for ACL " + aclname + " is inconsistent. It must be either port name or alias ", file=sys.stderr)

# TODO: Ensure that acl_intfs will only ever contain front-panel interfaces (e.g.,
# maybe we should explicity ignore management and loopback interfaces?) because we
Expand Down
Loading

0 comments on commit b10bf97

Please sign in to comment.