Skip to content

Commit

Permalink
fix handling of FourHundredGigEthernet
Browse files Browse the repository at this point in the history
  • Loading branch information
KB-perByte committed Jan 22, 2025
1 parent 91fd5d5 commit d4fab9f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/module_utils/network/ios/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,8 @@ def _get_number(name):
if_type = "TenGigabitEthernet"
elif name.lower().startswith("fa"):
if_type = "FastEthernet"
elif name.lower().startswith("fou"):
return "FourHundredGigabitEthernet"
elif name.lower().startswith("fo"):
if_type = "FortyGigabitEthernet"
elif name.lower().startswith("fiv"):
Expand Down Expand Up @@ -376,6 +378,8 @@ def get_interface_type(interface):
return "TenGigabitEthernet"
elif interface.upper().startswith("FA"):
return "FastEthernet"
elif interface.upper().startswith("FOU"):
return "FourHundredGigabitEthernet"
elif interface.upper().startswith("FO"):
return "FortyGigabitEthernet"
elif interface.upper().startswith("FI"):
Expand Down

0 comments on commit d4fab9f

Please sign in to comment.