VRF management
This module manages Virtual Routing & Forwarding instances, known commonly as VRFs. VRFs let you partition your switch’s routing tables so you can have unique IP domains.
VRFs are keyed by a unique name across the system, and can be used in other modules to configure routes and nexthops in different domains. If a route is not programmed in a specific VRF, it belongs to the VRF named “default”.
The VRF handler.
This class provides handler APIs to react to a VRF’s operational state change.
Public Functions
Register to receive notifications when any VRF on the system changes state.
Register to receive notifications when the specified VRF on the system changes state.
Called when a VRF’s operational state changes.
An iterator that yields a vrf_t for each VRF on the system.
Private Functions
Friends
The manager for VRF, this is the main entry point for applications to use EosSdk VRF APIs.
Public Functions
Iterates through all configured VRFs on the system, yielding a vrf_t for each VRF.
Returns true if the VRF is currently configured.
Returns the configured route distinguisher associated with this VRF.
If no VRF matches the given name, this returns 0.
Returns the operational status of this VRF.
If the given VRF name does not have a current status (e.g. a newly configured VRF), or if it does not match any VRFs on the system, this returns VRF_STATE_NULL.
Opens a socket inside a VRF specified by ‘vrf_name’.
A communication domain, same as in socket().
The communication semantics, such as SOCK_STREAM, same as in socket().
The protocol to be used with the socket, same as in socket().
The name of the vrf_name in which the socket will be created.
Protected Functions
Private Members
Friends
Enums
VRF state.
Values:
VRF does not exist.
VRF is being initialized.
VRF is active.
VRF is being deleted.
Public Functions
Getter for ‘name’: the name of the VRF.
Getter for ‘state’: the state of this VRF.
Getter for ‘rd’: the route distinguisher of the VRF.
The hash function for type vrf_t.
Returns a string representation of the current object’s values.
Private Members
Friends
A utility stream operator that adds a string representation of vrf_t to the ostream.