I’ve looked further but don’t seem to be able to find a proper list of VRFs with the arista mib, I can only see the vrf names in port assignments but not a directly parse-able list.
May be it could still be possible to gather whatever is accessible.
You can try to have a look at the existing code and try to hack something out of it. We can then help you make it cleaner after.
Confirmed from arista that the only way to get the info is to parse it out of the response of ARISTA-VRF-MIB::aristaVrfRoutingStatus, which is .1.3.6.1.4.1.30065.3.18.1.1.1.2 in the arista vrf mib.
It returns for example 3.18.1.1.1.2.3.109.103.116 where the first byte after the 2 is protocol identifier (I think) so 3 in dec is ipv4 and 9 in dec is ipv6. The rest are ascii codes in dec so in this case the vrf name would be ‘mgt’ (109 103 116).
Unfortunately I have no clue how this could be implemented to get the vrfs for arista switches
We can do that, we have functions in the snmp libs to parse this kind of structure. I cannot have a look at that in the near future but this can definitly be done.