Skip to content

Commit

Permalink
Merge branch 'develop' into dcnm-vrf-fix-issue-351
Browse files Browse the repository at this point in the history
  • Loading branch information
allenrobel committed Dec 20, 2024
2 parents baa756b + f77ab26 commit 7e41d5d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions plugins/modules/dcnm_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -1887,8 +1887,12 @@ def dcnm_intf_get_if_name(self, name, if_type):
port_id = re.findall(r"\d+", name)
return ("vPC" + str(port_id[0]), port_id[0])
if "sub_int" == if_type:
port_id = re.findall(r"\d+\/\d+.\d+", name)
return ("Ethernet" + str(port_id[0]), port_id[0])
if re.findall(r"\d+\/\d+.\d+", name):
port_id = re.findall(r"\d+\/\d+.\d+", name)
return ("Ethernet" + str(port_id[0]), port_id[0])
if re.findall(r"\d+.\d+", name):
port_id = re.findall(r"\d+\.\d+", name)
return ("Port-channel" + str(port_id[0]), port_id[0])
if "lo" == if_type:
port_id = re.findall(r"\d+", name)
return ("Loopback" + str(port_id[0]), port_id[0])
Expand Down

0 comments on commit 7e41d5d

Please sign in to comment.