|
| 1 | +#include "copporch.h" |
| 2 | +#include "flowcounterrouteorch.h" |
| 3 | + |
| 4 | +extern size_t gMaxBulkSize; |
| 5 | +extern sai_route_api_t *sai_route_api; |
| 6 | + |
| 7 | +#define ROUTE_FLOW_COUNTER_POLLING_INTERVAL_MS 10000 |
| 8 | + |
| 9 | +FlowCounterRouteOrch::FlowCounterRouteOrch(swss::DBConnector *db, const std::vector<std::string> &tableNames) |
| 10 | + : Orch(db, tableNames), mRouteFlowCounterMgr(ROUTE_FLOW_COUNTER_FLEX_COUNTER_GROUP, StatsMode::READ, |
| 11 | + ROUTE_FLOW_COUNTER_POLLING_INTERVAL_MS, false), |
| 12 | + gRouteBulker(sai_route_api, gMaxBulkSize) |
| 13 | +{ |
| 14 | +} |
| 15 | + |
| 16 | +FlowCounterRouteOrch::~FlowCounterRouteOrch(void) |
| 17 | +{ |
| 18 | +} |
| 19 | + |
| 20 | +void FlowCounterRouteOrch::generateRouteFlowStats() |
| 21 | +{ |
| 22 | +} |
| 23 | + |
| 24 | +void FlowCounterRouteOrch::clearRouteFlowStats() |
| 25 | +{ |
| 26 | +} |
| 27 | + |
| 28 | +void FlowCounterRouteOrch::addRoutePattern(const std::string &pattern, size_t) |
| 29 | +{ |
| 30 | +} |
| 31 | + |
| 32 | +void FlowCounterRouteOrch::removeRoutePattern(const std::string &pattern) |
| 33 | +{ |
| 34 | +} |
| 35 | + |
| 36 | +void FlowCounterRouteOrch::onAddMiscRouteEntry(sai_object_id_t vrf_id, const IpPrefix &ip_prefix, bool add_to_cache) |
| 37 | +{ |
| 38 | +} |
| 39 | + |
| 40 | +void FlowCounterRouteOrch::onAddMiscRouteEntry(sai_object_id_t vrf_id, const sai_ip_prefix_t &ip_pfx, bool add_to_cache) |
| 41 | +{ |
| 42 | +} |
| 43 | + |
| 44 | +void FlowCounterRouteOrch::onRemoveMiscRouteEntry(sai_object_id_t vrf_id, const IpPrefix &ip_prefix, |
| 45 | + bool remove_from_cache) |
| 46 | +{ |
| 47 | +} |
| 48 | + |
| 49 | +void FlowCounterRouteOrch::onRemoveMiscRouteEntry(sai_object_id_t vrf_id, const sai_ip_prefix_t &ip_pfx, |
| 50 | + bool remove_from_cache) |
| 51 | +{ |
| 52 | +} |
| 53 | + |
| 54 | +void FlowCounterRouteOrch::onAddVR(sai_object_id_t vrf_id) |
| 55 | +{ |
| 56 | +} |
| 57 | + |
| 58 | +void FlowCounterRouteOrch::onRemoveVR(sai_object_id_t vrf_id) |
| 59 | +{ |
| 60 | +} |
| 61 | + |
| 62 | +void FlowCounterRouteOrch::handleRouteAdd(sai_object_id_t vrf_id, const IpPrefix &ip_prefix) |
| 63 | +{ |
| 64 | +} |
| 65 | + |
| 66 | +void FlowCounterRouteOrch::handleRouteRemove(sai_object_id_t vrf_id, const IpPrefix &ip_prefix) |
| 67 | +{ |
| 68 | +} |
| 69 | + |
| 70 | +void FlowCounterRouteOrch::processRouteFlowCounterBinding() |
| 71 | +{ |
| 72 | +} |
| 73 | + |
| 74 | +void FlowCounterRouteOrch::doTask(Consumer &consumer) |
| 75 | +{ |
| 76 | +} |
| 77 | + |
| 78 | +void FlowCounterRouteOrch::doTask(SelectableTimer &timer) |
| 79 | +{ |
| 80 | +} |
| 81 | + |
| 82 | +void FlowCounterRouteOrch::initRouteFlowCounterCapability() |
| 83 | +{ |
| 84 | +} |
| 85 | + |
| 86 | +void FlowCounterRouteOrch::removeRoutePattern(const RoutePattern &route_pattern) |
| 87 | +{ |
| 88 | +} |
| 89 | + |
| 90 | +void FlowCounterRouteOrch::removeRouteFlowCounterFromDB(sai_object_id_t vrf_id, const IpPrefix &ip_prefix, |
| 91 | + sai_object_id_t counter_oid) |
| 92 | +{ |
| 93 | +} |
| 94 | + |
| 95 | +bool FlowCounterRouteOrch::bindFlowCounter(const RoutePattern &route_pattern, sai_object_id_t vrf_id, |
| 96 | + const IpPrefix &ip_prefix) |
| 97 | +{ |
| 98 | + return true; |
| 99 | +} |
| 100 | + |
| 101 | +void FlowCounterRouteOrch::unbindFlowCounter(const RoutePattern &route_pattern, sai_object_id_t vrf_id, |
| 102 | + const IpPrefix &ip_prefix, sai_object_id_t counter_oid) |
| 103 | +{ |
| 104 | +} |
| 105 | + |
| 106 | +void FlowCounterRouteOrch::pendingUpdateFlexDb(const RoutePattern &route_pattern, const IpPrefix &ip_prefix, |
| 107 | + sai_object_id_t counter_oid) |
| 108 | +{ |
| 109 | +} |
| 110 | + |
| 111 | +void FlowCounterRouteOrch::updateRouterFlowCounterCache(const RoutePattern &route_pattern, const IpPrefix &ip_prefix, |
| 112 | + sai_object_id_t counter_oid, RouterFlowCounterCache &cache) |
| 113 | +{ |
| 114 | +} |
| 115 | + |
| 116 | +bool FlowCounterRouteOrch::validateRoutePattern(const RoutePattern &route_pattern) const |
| 117 | +{ |
| 118 | + return true; |
| 119 | +} |
| 120 | + |
| 121 | +void FlowCounterRouteOrch::onRoutePatternMaxMatchCountChange(RoutePattern &route_pattern, size_t new_max_match_count) |
| 122 | +{ |
| 123 | +} |
| 124 | + |
| 125 | +bool FlowCounterRouteOrch::isRouteAlreadyBound(const RoutePattern &route_pattern, const IpPrefix &ip_prefix) const |
| 126 | +{ |
| 127 | + return true; |
| 128 | +} |
| 129 | + |
| 130 | +void FlowCounterRouteOrch::createRouteFlowCounterByPattern(const RoutePattern &route_pattern, size_t currentBoundCount) |
| 131 | +{ |
| 132 | +} |
| 133 | + |
| 134 | +bool FlowCounterRouteOrch::removeRouteFlowCounter(const RoutePattern &route_pattern, sai_object_id_t vrf_id, |
| 135 | + const IpPrefix &ip_prefix) |
| 136 | +{ |
| 137 | + return true; |
| 138 | +} |
| 139 | + |
| 140 | +void FlowCounterRouteOrch::createRouteFlowCounterFromVnetRoutes(const RoutePattern &route_pattern, |
| 141 | + size_t ¤t_bound_count) |
| 142 | +{ |
| 143 | +} |
| 144 | + |
| 145 | +void FlowCounterRouteOrch::reapRouteFlowCounterByPattern(const RoutePattern &route_pattern, size_t currentBoundCount) |
| 146 | +{ |
| 147 | +} |
| 148 | + |
| 149 | +bool FlowCounterRouteOrch::isRouteFlowCounterEnabled() const |
| 150 | +{ |
| 151 | + return true; |
| 152 | +} |
| 153 | + |
| 154 | +void FlowCounterRouteOrch::getRouteFlowCounterNameMapKey(sai_object_id_t vrf_id, const IpPrefix &ip_prefix, |
| 155 | + std::string &key) |
| 156 | +{ |
| 157 | +} |
| 158 | + |
| 159 | +size_t FlowCounterRouteOrch::getRouteFlowCounterSizeByPattern(const RoutePattern &route_pattern) const |
| 160 | +{ |
| 161 | + return 0; |
| 162 | +} |
| 163 | + |
| 164 | +bool FlowCounterRouteOrch::parseRouteKeyForRoutePattern(const std::string &key, char sep, sai_object_id_t &vrf_id, |
| 165 | + IpPrefix &ip_prefix, std::string &vrf_name) |
| 166 | +{ |
| 167 | + return true; |
| 168 | +} |
| 169 | + |
| 170 | +bool FlowCounterRouteOrch::getVrfIdByVnetName(const std::string &vnet_name, sai_object_id_t &vrf_id) |
| 171 | +{ |
| 172 | + return true; |
| 173 | +} |
| 174 | + |
| 175 | +bool FlowCounterRouteOrch::getVnetNameByVrfId(sai_object_id_t vrf_id, std::string &vnet_name) |
| 176 | +{ |
| 177 | + return true; |
| 178 | +} |
0 commit comments