Skip to content

Commit aaad403

Browse files
authored
Modify Comware disp ip int for DHCP assigned IP (#2207)
Signed-off-by: Cain,Marcus <[email protected]>
1 parent 1c83ba7 commit aaad403

File tree

3 files changed

+35
-1
lines changed

3 files changed

+35
-1
lines changed

ntc_templates/templates/hp_comware_display_ip_interface.textfsm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Interface
1515
^\S+\s+current\s+state -> Continue.Record
1616
^${INTERFACE}\s+current\s+state\s*:\s*${LINE_STATUS}
1717
^Line\s+protocol\s+current\s+state\s*:\s*${PROTOCOL_STATUS}
18-
^Internet\s+Address\s+is\s+${IP_ADDRESS}\s+(Primary|Sub|CELLULAR-Allocated)
18+
^Internet\s+Address\s+is\s+${IP_ADDRESS}\s+(Primary|Sub|CELLULAR-Allocated|DHCP-[Aa]llocated)
1919
^Broadcast\s+address\s*:\s*\S+
2020
^The\s+Maximum\s+Transmit\s+Unit\s*:\s*${MTU}\s+bytes
2121
^Policy\s+routing\s+is\s+enabled,\s+using\s+route\s+map\s+${ROUTE_MAP}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Vlan-interface1 current state: UP
2+
Line protocol current state: UP
3+
Internet Address is 11.12.13.14/24 DHCP-Allocated
4+
Broadcast address: 33.44.55.255
5+
The Maximum Transmit Unit: 1500 bytes
6+
input packets : 33792574, bytes : 1522224875, multicasts : 9702362
7+
output packets : 21273396, bytes : 330739408, multicasts : 0
8+
TTL invalid packet number: 0
9+
ICMP packet input number: 632945
10+
Echo reply: 5
11+
Unreachable: 40608
12+
Source quench: 0
13+
Routing redirect: 0
14+
Echo request: 590845
15+
Router advert: 0
16+
Router solicit: 0
17+
Time exceed: 0
18+
IP header bad: 0
19+
Timestamp request: 496
20+
Timestamp reply: 0
21+
Information request: 0
22+
Information reply: 0
23+
Netmask request: 496
24+
Netmask reply: 0
25+
Unknown type: 495
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
parsed_sample:
3+
- interface: "Vlan-interface1"
4+
ip_address:
5+
- "11.12.13.14/24"
6+
line_status: "UP"
7+
mtu: "1500"
8+
protocol_status: "UP"
9+
route_map: ""

0 commit comments

Comments
 (0)