The VRF handler.
This class provides handler APIs to react to a VRF’s operational state change.
Public Functions
Called when a VRF’s state changes. When a VRF:
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 VRFs on the system, yielding a vrf_t for each VRF.
Returns the named VRF, or a default VRF object if it does not exist.
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:
Not a valid vrf type.
VRF being initialized.
VRF is active.
VRF is being deleted.
VRF is configured.
This data structure is used to describe an VRF on a switch.
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.
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.