You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Value Required INTF (\S+)
Value LINK_STATUS (.+?)
Value PROTOCOL_STATUS (.+?)
Value List IPADDR (\S+?)
Value List MASK (\d*)
Value VRF (\S+)
Value MTU (\d+)
Value List IP_HELPER (\d+\.\d+\.\d+\.\d+)
Value OUTGOING_ACL (.*?)
Value INBOUND_ACL (.*?)
Start
^\S -> Continue.Record
^${INTF}\s+is\s+${LINK_STATUS},\s+line\s+protocol\s+is\s+${PROTOCOL_STATUS}\s*$$
^\s+Internet\s+address\s+is\s+${IPADDR}/?${MASK}\s*$$
^\s+Secondary\s+address\s+${IPADDR}/?${MASK}\s*$$
^.+VPN\s+Routing/Forwarding\s+"${VRF}"
^\s+MTU\s+is\s+${MTU}\s+bytes
^\s+Helper\s+address(es|)\s(is|are)\s+${IP_HELPER}\s*$$ -> HELPERS
^\s+Outgoing\s+(?:Common\s+)?access\s+list\s+is\s+not\s+set
^\s+Outgoing\s+(?:Common\s+)?access\s+list\s+is\s+${OUTGOING_ACL}\s*$$
^\s+Inbound\s+(?:Common\s+)?access\s+list\s+is\s+not\s+set
^\s+Inbound\s+(?:Common\s+)?access\s+list\s+is\s+${INBOUND_ACL}\s*$$
^\s+Internet\s+protocol
^\s+Interface\s+is\s+unnumbered
^\s+Peer\s+address
^\s+Dialer
^\s+Broadcast
^\s+Multicast
^\s+2[2-5]\d\.
^\s+Address\s+determined
^\s+Peer
^\s+Directed
^\s+MTU
^\s+Helper
^\s+Directed
^\s+Outgoing
^\s+Inbound
^\s+.*Proxy
^\s+Security
^\s+Split
^\s+ICMP
^\s+IP\s+(?:fast|Flow|CEF|Null|multicast|route|output|access)
^\s+Downstream
^\s+Associated
^\s+Topology
^\s+Router
^\s+TCP
^\s+RTP
^\s+Probe
^\s+Policy
^\s+Network\s+address\s+
^\s+BGP
^\s+Sampled\s+Netflow
^\s+IP\s+(Routed|Bridged)\s+Flow
^\s+(Input|Output|Post)\s+.*features
^\s+(IPv4\s+)?WCCP
^\s*$$
# Capture time-stamp if vty line has command time-stamping turned on
^Load\s+for\s+
^Time\s+source\s+is
^. -> Error
HELPERS
^\s+${IP_HELPER}\s*$$
^\s+Directed -> Start
^.* -> Error
SAMPLE COMMAND OUTPUT
Tunnel500 is up, line protocol is down
Internet address will be negotiated using IKEv2 Modeconfig
Broadcast address is 255.255.255.255
MTU is 1456 bytes
SUMMARY
When parsing show ip interfaces on a device with a tunnel configured with ip address negotiated the config fails to parse using the ntc-template for this command.
STEPS TO REPRODUCE
Configure tunnel:
interface Tunnel100
ip address negotiated
end
Get show ip interface output using ntc-templates with TextFSM parsing
I would expect either the IP address for this would be returned with a special value (e.g. something like "negotiated") or would not be returned. Possibly returning null value for IP would make the most sense in this case?
ACTUAL RESULTS
TextFSM raises an exception since its unable to parse the output correctly
textfsm.parser.TextFSMError: State Error raised. Rule Line: 63. Input Line: Internet address will be negotiated using IKEv2 Modeconfig
The text was updated successfully, but these errors were encountered:
ISSUE TYPE
TEMPLATE USING
SAMPLE COMMAND OUTPUT
SUMMARY
When parsing
show ip interfaces
on a device with a tunnel configured withip address negotiated
the config fails to parse using the ntc-template for this command.STEPS TO REPRODUCE
Configure tunnel:
Get show ip interface output using ntc-templates with TextFSM parsing
EXPECTED RESULTS
I would expect either the IP address for this would be returned with a special value (e.g. something like "negotiated") or would not be returned. Possibly returning null value for IP would make the most sense in this case?
ACTUAL RESULTS
TextFSM raises an exception since its unable to parse the output correctly
The text was updated successfully, but these errors were encountered: