Skip to content

Commit

Permalink
Bugfix: Media type update for cisco_ios_show_interfaces (networktocod…
Browse files Browse the repository at this point in the history
  • Loading branch information
FragmentedPacket authored Mar 9, 2021
1 parent 10570d6 commit c6cf593
Show file tree
Hide file tree
Showing 5 changed files with 889 additions and 13 deletions.
Empty file modified development_scripts.py
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion templates/cisco_ios_show_interfaces.textfsm
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Value IP_ADDRESS (\d+\.\d+\.\d+\.\d+\/\d+)
Value MTU (\d+)
Value DUPLEX (([Ff]ull|[Aa]uto|[Hh]alf|[Aa]-).*?)
Value SPEED (.*?)
Value MEDIA_TYPE (\S+)
Value MEDIA_TYPE (\S+(\s+\S+)?)
Value BANDWIDTH (\d+\s+\w+)
Value DELAY (\d+\s+\S+)
Value ENCAPSULATION (.+?)
Expand Down
24 changes: 12 additions & 12 deletions tests/cisco_ios/show_interfaces/cisco_ios_show_interfaces2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1413,9 +1413,9 @@ parsed_sample:
description: ""
ip_address: ""
mtu: "1500"
duplex: ""
speed: ""
media_type: ""
duplex: "Auto-duplex"
speed: "Auto-speed"
media_type: "Not Present"
bandwidth: "10000 Kbit"
delay: "1000 usec"
encapsulation: "ARPA"
Expand All @@ -1440,9 +1440,9 @@ parsed_sample:
description: ""
ip_address: ""
mtu: "1500"
duplex: ""
speed: ""
media_type: ""
duplex: "Auto-duplex"
speed: "Auto-speed"
media_type: "Not Present"
bandwidth: "10000 Kbit"
delay: "1000 usec"
encapsulation: "ARPA"
Expand All @@ -1467,9 +1467,9 @@ parsed_sample:
description: ""
ip_address: ""
mtu: "1500"
duplex: ""
speed: ""
media_type: ""
duplex: "Auto-duplex"
speed: "Auto-speed"
media_type: "Not Present"
bandwidth: "10000 Kbit"
delay: "1000 usec"
encapsulation: "ARPA"
Expand All @@ -1494,9 +1494,9 @@ parsed_sample:
description: ""
ip_address: ""
mtu: "1500"
duplex: ""
speed: ""
media_type: ""
duplex: "Auto-duplex"
speed: "Auto-speed"
media_type: "Not Present"
bandwidth: "10000 Kbit"
delay: "1000 usec"
encapsulation: "ARPA"
Expand Down
Loading

0 comments on commit c6cf593

Please sign in to comment.