OpenSDN source code
agent_route_resync.cc
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
3  * Copyright Contributors to the OpenSDN project
4  */
5 #include <cmn/agent_cmn.h>
6 #include <route/route.h>
7 
8 #include <vnc_cfg_types.h>
9 #include <agent_types.h>
10 
11 #include <cmn/agent_db.h>
12 
15 #include <oper/vrf.h>
16 #include <oper/agent_route.h>
17 #include <oper/agent_path.h>
18 
19 AgentRouteResync::AgentRouteResync(const std::string &name, Agent *agent) :
20  AgentRouteWalker(name, agent) {
21 }
22 
24 }
25 
27  DBEntryBase *e) {
28  AgentRoute *route = static_cast<AgentRoute *>(e);
29  route->EnqueueRouteResync();
30  return true;
31 }
32 
34  StartVrfWalk();
35 }
36 
38  StartRouteWalk(vrf);
39 }
AgentRouteResync(const std::string &name, Agent *agent)
virtual bool RouteWalkNotify(DBTablePartBase *partition, DBEntryBase *e)
void UpdateRoutesInVrf(VrfEntry *vrf)
void StartRouteWalk(VrfEntry *vrf)
Base class for all Route entries in agent.
Definition: agent_route.h:225
void EnqueueRouteResync() const
Definition: agent_route.cc:915
Definition: agent.h:361
Definition: vrf.h:90