FD.io VPP  v19.01.3-6-g70449b9b9
Vector Packet Processing
VOM::ra_prefix Class Reference

A representation of RA prefix configuration on given interface. More...

Public Member Functions

 ra_prefix (const route::prefix_t &pfx, uint8_t use_default, uint8_t no_advertise, uint32_t val_lifetime, uint32_t pref_lifetime)
 Construct a new object matching the desried state. More...
 
 ra_prefix (const ra_prefix &o)=default
 Copy Constructor. More...
 
 ~ra_prefix ()=default
 Destructor. More...
 
std::string to_string () const
 convert to string format for debug purposes More...
 
const route::prefix_tprefix () const
 Return the prefix associated with this ra prefix. More...
 
bool operator== (const ra_prefix &ra_prefix) const
 Comparison operator - only used for UT. More...
 
void to_vpp (vapi_payload_sw_interface_ip6nd_ra_prefix &ra_prefix) const
 Convert the ra prefix configuration to Vpp Api. More...
 

Detailed Description

A representation of RA prefix configuration on given interface.

Definition at line 27 of file ra_prefix.hpp.

Constructor & Destructor Documentation

◆ ra_prefix() [1/2]

VOM::ra_prefix::ra_prefix ( const route::prefix_t pfx,
uint8_t  use_default,
uint8_t  no_advertise,
uint32_t  val_lifetime,
uint32_t  pref_lifetime 
)

Construct a new object matching the desried state.

Definition at line 21 of file ra_prefix.cpp.

◆ ra_prefix() [2/2]

VOM::ra_prefix::ra_prefix ( const ra_prefix o)
default

Copy Constructor.

◆ ~ra_prefix()

VOM::ra_prefix::~ra_prefix ( )
default

Destructor.

Member Function Documentation

◆ operator==()

bool VOM::ra_prefix::operator== ( const ra_prefix ra_prefix) const

Comparison operator - only used for UT.

Definition at line 54 of file ra_prefix.cpp.

◆ prefix()

const route::prefix_t & VOM::ra_prefix::prefix ( ) const

Return the prefix associated with this ra prefix.

Definition at line 76 of file ra_prefix.cpp.

◆ to_string()

std::string VOM::ra_prefix::to_string ( void  ) const

convert to string format for debug purposes

Definition at line 63 of file ra_prefix.cpp.

+ Here is the call graph for this function:

◆ to_vpp()

void VOM::ra_prefix::to_vpp ( vapi_payload_sw_interface_ip6nd_ra_prefix &  ra_prefix) const

Convert the ra prefix configuration to Vpp Api.

Definition at line 38 of file ra_prefix.cpp.

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: