-
Notifications
You must be signed in to change notification settings - Fork 741
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle trailing space after mode in HP Comware display interface (#1955)
- Loading branch information
Showing
3 changed files
with
51 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
tests/hp_comware/display_interface/hp_comware_display_interface_mgmt.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
M-GigabitEthernet0/0/0 | ||
Current state: UP | ||
Line protocol state: UP | ||
Description: SanitizedDescription | ||
Bandwidth: 1000000 kbps | ||
Maximum transmission unit: 1500 | ||
Internet address: A.B.C.D/XY (Primary) | ||
IP packet frame type: Ethernet II, hardware address: 5477-8aee-2818 | ||
IPv6 packet frame type: Ethernet II, hardware address: 5477-8aee-2818 | ||
Last link flapping: 45 weeks 2 days 4 hours 17 minutes | ||
Last clearing of counters: Never | ||
Current system time:2024-12-30 13:12:50 EST-05:00:00 | ||
Last time when physical state changed to up:2000-12-31 19:05:41 EST-05:00:00 | ||
Last time when physical state changed to down:2001-01-01 00:05:02 EST-05:00:00 | ||
Media type is twisted pair, loopback not set | ||
Port hardware type is 1000_BASE_T | ||
1000Mbps-speed mode , full-duplex mode | ||
Link speed type is autonegotiation , Link duplex type is autonegotiation | ||
input: 57670968 packets, 348067745 bytes | ||
22020401 broadcasts,18647198 multicasts | ||
input: - input errors,- runts,- giants,- throttles,0 CRC | ||
- frame,- overruns,- aborts,- ignored,- parity errors | ||
output: 21389206 packets, 3225503833 bytes | ||
18 broadcasts,913477 multicasts | ||
output: - output errors,- underruns,- buffer failures | ||
- aborts,- deferred,0 collisions,0 late collisions | ||
- lost carrier,- no carrier |
21 changes: 21 additions & 0 deletions
21
tests/hp_comware/display_interface/hp_comware_display_interface_mgmt.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
parsed_sample: | ||
- bandwidth: "1000000 kbps" | ||
description: "SanitizedDescription" | ||
duplex: "full-duplex" | ||
hw_address: | ||
- "5477-8aee-2818" | ||
- "5477-8aee-2818" | ||
interface: "M-GigabitEthernet0/0/0" | ||
ip_address: | ||
- "A.B.C.D/XY" | ||
l2mtu: "" | ||
line_status: "UP" | ||
mtu: "1500" | ||
port_link_type: "" | ||
protocol_status: "UP" | ||
speed: "1000Mbps-speed" | ||
untagged_vlan_id: "" | ||
vlan_native: "" | ||
vlan_passing: [] | ||
vlan_permitted: [] |