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-09-07 02:14:47 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          17 : AgentRouteResync::AgentRouteResync(const std::string &name, Agent *agent) :
      19          17 :     AgentRouteWalker(name, agent) {
      20          17 : }
      21             : 
      22          34 : AgentRouteResync::~AgentRouteResync() {
      23          34 : }
      24             : 
      25          82 : bool AgentRouteResync::RouteWalkNotify(DBTablePartBase *partition,
      26             :                                       DBEntryBase *e) {
      27          82 :     AgentRoute *route = static_cast<AgentRoute *>(e);
      28          82 :     route->EnqueueRouteResync();
      29          82 :     return true;
      30             : }
      31             : 
      32           2 : void AgentRouteResync::Update() {
      33           2 :     StartVrfWalk();
      34           2 : }
      35             : 
      36           6 : void AgentRouteResync::UpdateRoutesInVrf(VrfEntry *vrf) {
      37           6 :     StartRouteWalk(vrf);
      38           6 : }

Generated by: LCOV version 1.14