Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve cisco_ios show_standby #1091

Merged
merged 1 commit into from
Feb 26, 2022

Conversation

lamiskin
Copy link
Contributor

ISSUE TYPE
  • Additional Testing
COMPONENT

ntc_templates/templates/cisco_ios_show_standby.textfsm
cisco_ios
show standby

SUMMARY

Newly captured fields:

  • INTERFACE
  • STATE_CHANGES
  • STATE_LAST_CHANGE
  • SECONDARY_IPS - List of IPs
  • FLAGS
  • TRACK_ITEM
  • TRACK_TYPE - Can be interface or object depending on config.
  • TRACK_STATE
  • TRACK_DECREMENT_TIME

Updated ACTIVE_ROUTER and STANDBY_ROUTER to allow unknown as a value.

Added new tests for the new fields.
Updated existing test with newly captured fields.

Example of some of the new fields.

  - interface: "GigabitEthernet0/1.2951"
    group: "1"
    version: "2"
    state: "Active"
    state_changes: "2"
    state_last_change: "3y37w"
    virtual_ip: "111.222.230.17"
    secondary_ips: []
    active_virtual_mac: "0000.0c9f.f001"
    local_virtual_mac: "0000.0c9f.f001"
    hello_time: "3"
    hold_time: "10"
    authentication: ""
    preemption: "enabled"
    active_router: "local"
    active_router_priority: ""
    active_router_mac: ""
    standby_router: "unknown"
    standby_router_priority: ""
    priority: "255"
    group_name: "hsrp-Gi0/1.2951-1"
    flags: ""
    track_item: "1"
    track_type: "object"
    track_state: ""
    track_decrement_time: ""

@jvanderaa jvanderaa merged commit d1f202d into networktocode:master Feb 26, 2022
@lamiskin lamiskin deleted the ios_show_standby branch July 20, 2022 05:02
guillaume-mbali pushed a commit to unyc-io/ntc-templates that referenced this pull request Apr 12, 2023
cppmonkey pushed a commit to cppmonkey/ntc-templates that referenced this pull request Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants