Skip to content

Run agents/daemons in a specific VRF #53

@denysaleksandrov

Description

@denysaleksandrov

Is it possible to run an agent in a specific VRF?

I sync data with an external aggregator via HTTP, and it works pretty well on switches where that external resource is reachable via default netns/vrf. But on devices where we use MGMT netns/vrf and the default routing table is just empty, my agent fails with the following errors:

===== Output from /mnt/flash/IntfCounters.py [] (PID=23289) started Mar  9 20:31:07.581556 ===
Using EOS SDK 2.6.0
2020-03-09 20:31:08.231676 Using external Socket tbl://sysdb/+n
2020-03-09 20:31:08.231840 Using externally set fd: 6
Init.
Current timeout 10.0 called
Exception reached onNotificationException: Swig::DirectorMethodException("SWIG director method error. Error detected when calling 'TimeoutHandler.on_timeout'")

I suppose it fails when it tries to open a socket to an IP address, which is not reachable from the default netns/vrf.

Metadata

Metadata

Assignees

No one assigned

    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