Skip to content

Commit

Permalink
Fix hp_comware_display_ip_interface with production outputs (#1341)
Browse files Browse the repository at this point in the history
* Fix hp_comware_display_ip_interface with production outputs
  • Loading branch information
dainok authored Mar 29, 2023
1 parent b141411 commit 0a6de06
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Value INTF (\S+)
Value LINE_STATUS (UP|DOWN|Administratively DOWN)
Value PROTOCOL_STATUS (UP(\(spoofing\))?|DOWN)
Value ROUTE_MAP (\S+)
Value List IPADDR (\S+)
Value MTU (\d+)

Expand All @@ -18,6 +19,7 @@ Interface
^Internet\s+Address\s+is\s+${IPADDR}\s+Sub
^Broadcast\s+address\s*:\s*\S+
^The\s+Maximum\s+Transmit\s+Unit\s*:\s*${MTU}\s+bytes
^Policy\s+routing\s+is\s+enabled,\s+using\s+route\s+map\s+${ROUTE_MAP}
^input\spackets\s*:\s*\d+,\sbytes\s*:\s*\d+,\smulticasts\s*:\s*\d+
^output\spackets\s*:\s*\d+,\sbytes\s*:\s*\d+,\smulticasts\s*:\s*\d+
^TTL\sinvalid\spacket\snumber\s*:\s*\d+
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,31 @@ parsed_sample:
mtu: "1536"
line_status: "UP"
protocol_status: "UP(spoofing)"
route_map: ""
- intf: "M-GigabitEthernet0/0/0"
ipaddr: []
mtu: ""
line_status: "Administratively DOWN"
protocol_status: "DOWN"
route_map: ""
- intf: "Vlan-interface66"
ipaddr:
- "172.18.69.101/24"
mtu: "1500"
line_status: "UP"
protocol_status: "UP"
route_map: ""
- intf: "Vlan-interface89"
ipaddr:
- "172.18.89.3/24"
mtu: "1500"
line_status: "UP"
protocol_status: "UP"
route_map: ""
- intf: "Vlan-interface206"
ipaddr:
- "172.18.41.22/24"
mtu: "1500"
line_status: "UP"
protocol_status: "UP"
route_map: ""
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ parsed_sample:
mtu: ""
line_status: "UP"
protocol_status: "DOWN"
route_map: ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Route-Aggregation1.4 current state :UP
Line protocol current state :UP
Internet Address is 10.1.1.1/24 Primary
Broadcast address : 10.1.1.255
The Maximum Transmit Unit : 1500 bytes
input packets : 519880114, bytes : 2114446514, multicasts : 1523365
output packets : 892477481, bytes : 2635360909, multicasts : 1513360
ARP packet input number: 4648
Request packet: 9
Reply packet: 4639
Unknown packet: 0
TTL invalid packet number: 1067079
ICMP packet input number: 27
Echo reply: 15
Unreachable: 0
Source quench: 0
Routing redirect: 0
Echo request: 0
Router advert: 0
Router solicit: 0
Time exceed: 12
IP header bad: 0
Timestamp request: 0
Timestamp reply: 0
Information request: 0
Information reply: 0
Netmask request: 0
Netmask reply: 0
Unknown type: 0
Policy routing is enabled, using route map TO_INTERNET
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
parsed_sample:
- intf: "Route-Aggregation1.4"
ipaddr:
- "10.1.1.1/24"
mtu: "1500"
line_status: "UP"
protocol_status: "UP"
route_map: "TO_INTERNET"

0 comments on commit 0a6de06

Please sign in to comment.