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