question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VRRP module not getting the VRID information from an interface

See original GitHub issue

Hello,

I am using the vrrp.get(<interface>).get(vrid) method to collect VRRP group information but it seems it is not retrieving any data. Below I am pasting what I am receiving along with the configuration on the switch:

Swtich configuration

interface Vlan177
   load-interval 5
   ip address 10.177.0.68/28
   vrrp 70 priority 200
   vrrp 70 ip 10.177.0.70
   vrrp 70 track ETH46 shutdown
   vrrp 71 priority 200
   vrrp 71 ip 10.177.0.71
   vrrp 71 shutdown
   vrrp 72 priority 200
   vrrp 72 ip 10.177.0.72
   vrrp 72 shutdown

Python Example

vrrp = node.api('vrrp')
>>> pprint(vrrp.get('Vlan177').get(71))
{'bfd_ip': '',
 'delay_reload': None,
 'description': '',
 'enable': True,
 'ip_version': None,
 'mac_addr_adv_interval': 30,
 'preempt': True,
 'preempt_delay_min': 0,
 'preempt_delay_reload': 0,
 'primary_ip': None,
 'priority': None,
 'secondary_ip': [],
 'timers_advertise': None,
 'track': []}
>>> pprint(vrrp.get('Vlan177').get(70))
{'bfd_ip': '',
 'delay_reload': None,
 'description': '',
 'enable': True,
 'ip_version': None,
 'mac_addr_adv_interval': 30,
 'preempt': True,
 'preempt_delay_min': 0,
 'preempt_delay_reload': 0,
 'primary_ip': None,
 'priority': None,
 'secondary_ip': [],
 'timers_advertise': None,
 'track': []}

You can see from the collected data that the priority = None, when the configuration is stated as 200, and even though the vrrp 71 shutdown it returns it as enabled = True.

Was this working before? should I use another method?

Thanks,

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
Alexanderiscommented, Mar 6, 2019

Thanks for the details. Let me dig into this and will let you know once I have more info.

0reactions
davidban77commented, Mar 19, 2019

Thanks for the update Alex, I can workaround using operational commands for the moment.

So I’ll close this one now.

Cheers, David

Read more comments on GitHub >

github_iconTop Results From Across the Web

VRRP Commands - Cisco
This document describes the Cisco IOS XR software commands used to configure and monitor the Virtual Router Redundancy Protocol (VRRP) on Cisco ASR...
Read more >
vrrp vrid track interface - Command Reference - Huawei Support
You can run the vrrp vrid track interface command to associate a VRRP group with a device interface not in the VRRP group....
Read more >
12.1 VRRP Commands
Review SEFOS command descriptions, syntax, and examples for the switch.
Read more >
vrrp - Aruba Networks
tracking interface {fastethernet <slot>/<module>/<port>|gigabitethernet ... After you configure the VRID, the command platform enters VRRP mode.
Read more >
RFC 8347 - A YANG Data Model for the Virtual Router ...
Standards Track [Page 2] RFC 8347 YANG VRRP March 2018 The following terms are defined in [RFC7950] and are not redefined here: o...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found