Skip to content

Commit

Permalink
Allow interfaces with only digit names
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenning committed Oct 13, 2023
1 parent a29233a commit fe20a08
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 @@ -2952,7 +2952,7 @@ def __init__(self, interface_name=None):
self._subinterface = None
self._channel = None

mm = re.search(r"^(?P<prefix>[a-zA-Z]+\s*)(?P<all>\d\S*)$", interface_name.strip())
mm = re.search(r"^(?P<prefix>[a-zA-Z]*\s*)(?P<all>\d\S*)$", interface_name.strip())
if mm is not None:
groupdict = mm.groupdict()
self._prefix = groupdict.get("prefix", '').strip()
Expand Down

0 comments on commit fe20a08

Please sign in to comment.