Skip to content

Commit

Permalink
Comments have been added to the definition of rib types, the unused t…
Browse files Browse the repository at this point in the history
…ype removed
  • Loading branch information
stal76 committed Sep 19, 2024
1 parent 5cb351b commit a46efd4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion common/type.h
Original file line number Diff line number Diff line change
Expand Up @@ -2845,7 +2845,7 @@ using nexthop_stuff_t = std::tuple<ip_address_t, ///< nexthop
uint32_t ///< local_preference
>;

using nexthop_map_t = std::unordered_map<uint32_t,
using nexthop_map_t = std::unordered_map<uint32_t, ///< pptn_index -> protocol, peer, table_name
std::unordered_map<std::string, ///< path_info
const rib::nexthop_stuff_t*>>;

Expand Down
8 changes: 3 additions & 5 deletions controlplane/rib.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
namespace rib
{

using nexthop_t = common::rib::nexthop_t;

using vrf_priority_t = common::rib::vrf_priority_t;

using pptn_t = common::rib::pptn_t;
Expand Down Expand Up @@ -92,8 +90,8 @@ class rib_t : public cModule
std::string, ///< protocol
ip_address_t, ///< peer
std::string>, ///< table_name
std::tuple<common::uint64,
common::uint64,
common::uint8>>
std::tuple<common::uint64, ///< prefixes
common::uint64, ///< paths
common::uint8>> ///< eor
summary;
};

0 comments on commit a46efd4

Please sign in to comment.