MCPcopy Create free account
hub / github.com/SNAS/openbmp / getAFiSafiKeyString

Method getAFiSafiKeyString

Server/src/bgp/AddPathDataContainer.cpp:61–66  ·  view source on GitHub ↗

* Generates unique string from AFI and SAFI combination * * \param [in] afi Afi code from RFC * \param [in] safi Safi code form RFC * * \return string unique for AFI and SAFI combination */

Source from the content-addressed store, hash-verified

59 * \return string unique for AFI and SAFI combination
60 */
61std::string AddPathDataContainer::getAFiSafiKeyString(int afi, int safi) {
62 std::string result = std::to_string(static_cast<long long>(afi));
63 result.append("_");
64 result.append(std::to_string(static_cast<long long>(safi)));
65 return result;
66}
67
68/**
69 * Is add path capability enabled for such AFI and SAFI

Callers 2

addAddPathMethod · 0.95
isAddPathEnabledMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected