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
I am using pyroute2 to listen for netlink RTM_NEWNEIGH messages on an interface that is part of a VRF. However, no netlink messages are received for the interface under the VRF. The same code works fine for interfaces not assigned to a VRF.
Code:
with IPRoute() as ipr:
ipr.bind()
while True:
for message in ipr.get():
print(message)
if message['event'] == 'RTM_NEWNEIGH':
attrs = dict(message['attrs'])
if not attrs.get('NDA_LLADDR', None):
print(f"Null route: {attrs['NDA_DST']}")
else:
print(f"{attrs['NDA_DST']} is alive!")
time.sleep(1)
The text was updated successfully, but these errors were encountered:
I am using pyroute2 to listen for netlink RTM_NEWNEIGH messages on an interface that is part of a VRF. However, no netlink messages are received for the interface under the VRF. The same code works fine for interfaces not assigned to a VRF.
Code:
The text was updated successfully, but these errors were encountered: