Skip to content

Commit

Permalink
Require that a dash is not used as an interface number separator
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenning committed Oct 13, 2023
1 parent 44a3be4 commit 7805a89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ciscoconfparse/ccp_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -2974,7 +2974,7 @@ def __init__(self, interface_name=None):
_intf_all = groupdict["all"].strip()

# Handle non-subinterface / non-channel interfaces...
mm = re.search(r"^(?P<all>(?P<slot>\d+)(?P<sep1>[^\:^\.])?(?P<card>\d+)?(?P<sep2>[^\:^\.])?(?P<port>\d+)?)", _intf_all)
mm = re.search(r"^(?P<all>(?P<slot>\d+)(?P<sep1>[^\:^\.^\-])?(?P<card>\d+)?(?P<sep2>[^\:^\.^\-])?(?P<port>\d+)?)", _intf_all)
nn = re.search(r"^(?P<all>(?P<port>\d+))", _intf_all)
if mm is not None:

Expand Down

0 comments on commit 7805a89

Please sign in to comment.