nfd::rib::HostToGatewayReadvertisePolicy Class Reference

A policy to readvertise routes registered by local applications into remote gateway. More...

#include <daemon/rib/readvertise/host-to-gateway-readvertise-policy.hpp>

+ Inheritance diagram for nfd::rib::HostToGatewayReadvertisePolicy:
+ Collaboration diagram for nfd::rib::HostToGatewayReadvertisePolicy:

Public Member Functions

 HostToGatewayReadvertisePolicy (const ndn::KeyChain &keyChain, const ConfigSection &section)
 
time::milliseconds getRefreshInterval () const override
 
std::optional< ReadvertiseActionhandleNewRoute (const RibRouteRef &ribRoute) const override
 Decide whether to readvertise a route, and what prefix to readvertise. More...
 

Detailed Description

A policy to readvertise routes registered by local applications into remote gateway.

Definition at line 38 of file host-to-gateway-readvertise-policy.hpp.

Constructor & Destructor Documentation

◆ HostToGatewayReadvertisePolicy()

nfd::rib::HostToGatewayReadvertisePolicy::HostToGatewayReadvertisePolicy ( const ndn::KeyChain &  keyChain,
const ConfigSection section 
)

Definition at line 38 of file host-to-gateway-readvertise-policy.cpp.

Member Function Documentation

◆ getRefreshInterval()

time::milliseconds nfd::rib::HostToGatewayReadvertisePolicy::getRefreshInterval ( ) const
overridevirtual
Returns
how often readvertisements made by this policy should be refreshed.

Implements nfd::rib::ReadvertisePolicy.

Definition at line 82 of file host-to-gateway-readvertise-policy.cpp.

◆ handleNewRoute()

std::optional< ReadvertiseAction > nfd::rib::HostToGatewayReadvertisePolicy::handleNewRoute ( const RibRouteRef ribRoute) const
overridevirtual

Decide whether to readvertise a route, and what prefix to readvertise.

Implements nfd::rib::ReadvertisePolicy.

Definition at line 47 of file host-to-gateway-readvertise-policy.cpp.