Skip to content

cisco_nxos_show_interface fails on OTV Overlay interfaces #2348

Description

@Mikeg2881

Device
cisco Nexus7700 C7706 (6 Slot) Chassis ("Supervisor Module-2")
version 8.4(6a)

--I cant take credit for the below. Cursor generated this and fixed it. I tested it and it appears to work.--

Error

State Error raised. Rule Line: 143. Input Line:       0 bytes  0 bits/sec  86 packets/sec
Rule 143 is the catch-all ^. -> Error. 

Config Lines

Overlay1 is up
    Description: overlay-interface
    MTU 1400 bytes, BW 1000000 Kbit
    Encapsulation OTV
    Last link flapped 2y16w
    Load-Interval is 5 minute (300 seconds)
    RX
      6160295128114 unicast packets  0 multicast packets
      0 bytes  0 bits/sec  86 packets/sec
    TX
      3439642551394 unicast packets  0 multicast packets
      2741972988123429 bytes  0 bits/sec  0 packets/sec

Description, MTU, Encapsulation, Last link flapped, Load-Interval, RX/TX, and the unicast/multicast line already match. The only missing line is:
bytes bits/sec packets/sec
Physical interfaces use 30 seconds input rate bits/sec, packets/sec, which the template already handles. Overlay does not print that format.

Fix: Add this unmatched rule above ^. -> Error:

^\s+\d+\s+bytes\s+\d+\s+bits/sec\s+\d+\s+packets/sec\s*$$

That lets parsing continue. It does not populate BANDWIDTH_INPUT_RATE / PACKET_INPUT_RATE / BANDWIDTH_OUTPUT_RATE / PACKET_OUTPUT_RATE. The same line appears under both RX and TX, so capturing both would need RX/TX states. Overlay still parses INTERFACE, LINK_STATUS, DESCRIPTION, MTU, ENCAPSULATION, and LAST_LINK_FLAPPED.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions