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 : }