22 const route::itf_flags_t&
31 vapi_enum_mfib_itf_flags
50 payload.sw_if_index = ~0;
58 payload.table_id = p.
rd()->table_id();
61 payload.sw_if_index = p.
itf()->handle().value();
73 payload.weight = p.
weight();
86 std::to_string(p.sw_if_index));
89 p.weight, p.preference));
95 return (
route::path(address, *itf, p.weight, p.preference));
101 std::to_string(p.table_id));
103 return (
route::path(*rd, address, p.weight, p.preference));
129 return static_cast<vapi_enum_ip_dscp
>((int)d);
static const ip_dscp_t DSCP_AF21
static const ip_dscp_t DSCP_CS4
static std::shared_ptr< route_domain > find(const key_t &temp)
Find the instnace of the route domain in the OM.
static const ip_dscp_t DSCP_AF11
static const special_t STANDARD
A standard path type.
static const itf_flags_t ACCEPT
Path is accepting multicast traffic.
static std::shared_ptr< interface > find(const handle_t &h)
The the singular instance of the interface in the DB by handle.
std::shared_ptr< route_domain > rd() const
A path for IP or MPLS routes.
static const ip_dscp_t DSCP_AF33
static const ip_dscp_t DSCP_AF12
const boost::asio::ip::address & nh() const
static const itf_flags_t FORWARD
A local/for-us/recieve.
vapi_enum_ip_neighbor_flags to_api(const neighbour::flags_t &f)
static const special_t LOCAL
A local/for-us/recieve.
static const special_t DROP
drop path
static const ip_dscp_t DSCP_AF13
static const ip_dscp_t DSCP_CS2
static const ip_dscp_t DSCP_AF32
static const ip_dscp_t DSCP_CS5
static const special_t UNREACH
a path will return ICMP unreachables
static const ip_dscp_t DSCP_CS7
special_t type() const
Getters.
uint8_t preference() const
static const ip_dscp_t DSCP_CS6
static const ip_dscp_t DSCP_AF41
static const special_t PROHIBIT
a path will return ICMP prohibit
static const ip_dscp_t DSCP_AF43
static const flags_t DVR
A path that resolves via a DVR next-hop.
static const ip_dscp_t DSCP_CS1
static const ip_dscp_t DSCP_AF22
static const ip_dscp_t DSCP_AF23
static const ip_dscp_t DSCP_EF
manual_print typedef address
static const ip_dscp_t DSCP_AF42
nh_proto_t nh_proto() const
static const ip_dscp_t DSCP_AF31
The VPP Object Model (VOM) library.
static const ip_dscp_t DSCP_CS0
const neighbour::flags_t from_api(vapi_enum_ip_neighbor_flags f)
static const ip_dscp_t DSCP_CS3
std::shared_ptr< interface > itf() const