LCOV - code coverage report
Current view: top level - vnsw/agent/oper - agent_route_resync.cc (source / functions) Hit Total Coverage
Test: OpenSDN C/C++ coverage (all TARGET_SET jobs) Lines: 15 15 100.0 %
Date: 2026-08-03 02:19:58 Functions: 6 6 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
       3             :  */
       4             : #include <cmn/agent_cmn.h>
       5             : #include <route/route.h>
       6             : 
       7             : #include <vnc_cfg_types.h>
       8             : #include <agent_types.h>
       9             : 
      10             : #include <cmn/agent_db.h>
      11             : 
      12             : #include <oper/agent_route_walker.h>
      13             : #include <oper/agent_route_resync.h>
      14             : #include <oper/vrf.h>
      15             : #include <oper/agent_route.h>
      16             : #include <oper/agent_path.h>
      17             : 
      18          21 : AgentRouteResync::AgentRouteResync(const std::string &name, Agent *agent) :
      19          21 :     AgentRouteWalker(name, agent) {
      20          21 : }
      21             : 
      22          42 : AgentRouteResync::~AgentRouteResync() {
      23          42 : }
      24             : 
      25         137 : bool AgentRouteResync::RouteWalkNotify(DBTablePartBase *partition,
      26             :                                       DBEntryBase *e) {
      27         137 :     AgentRoute *route = static_cast<AgentRoute *>(e);
      28         137 :     route->EnqueueRouteResync();
      29         137 :     return true;
      30             : }
      31             : 
      32           6 : void AgentRouteResync::Update() {
      33           6 :     StartVrfWalk();
      34           6 : }
      35             : 
      36           6 : void AgentRouteResync::UpdateRoutesInVrf(VrfEntry *vrf) {
      37           6 :     StartRouteWalk(vrf);
      38           6 : }

Generated by: LCOV version 1.14