Skip to content

Commit

Permalink
WIP: NXOS Agent
Browse files Browse the repository at this point in the history
  • Loading branch information
sebageek committed Aug 2, 2024
1 parent 75028c4 commit 265e92d
Show file tree
Hide file tree
Showing 5 changed files with 770 additions and 64 deletions.
2 changes: 1 addition & 1 deletion networking_ccloud/common/config/config_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def only_allow_members_and_pc_id_with_lacp_enabled(cls, v):
@pydantic.root_validator
def set_portchannel_id_for_lacp(cls, values):
if values['lacp'] and not values['portchannel_id']:
m = re.match(r"^port-channel\s*(?P<pc_id>\d+)$", values['name'].lower())
m = re.match(r"^(?:port-channel|po)\s*(?P<pc_id>\d+)$", values['name'].lower())
if not m:
raise ValueError(f"No pc id given for {values['switch']}/{values['name']} and could not parse one "
f"from interface name")
Expand Down
Loading

0 comments on commit 265e92d

Please sign in to comment.