|
|
By default the mapping is the protocol name itself unless an entry has been explicitly added. This class is used to map user configuration directives regarding protocols to the actual name of the XORP process for that protocol.
ProtocolMap ()
| ProtocolMap |
const string& xrl_target (const string& protocol)
| xrl_target |
Determine the XRL target for a protocol.
Parameters:
protocol | the protocol for which the XRL target is wanted. |
Returns: the XRL target for the protocol.
void set_xrl_target (const string& protocol, const string& target)
| set_xrl_target |
Set the XRL target for a protocol.
Parameters:
protocol | the protocol for which the XRL target needs to be set. |
target | the XRL target for the protocol. |
const string& protocol (const string& target)
| protocol |
Return internal protocol name based on XRL target.
Parameters:
target | the XRL target for the protocol. |
Returns: protocol name.