aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/VppRouteManager.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/VppRouteManager.hpp')
-rw-r--r--src/include/VppRouteManager.hpp51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/include/VppRouteManager.hpp b/src/include/VppRouteManager.hpp
new file mode 100644
index 0000000..eadc3d8
--- /dev/null
+++ b/src/include/VppRouteManager.hpp
@@ -0,0 +1,51 @@
+/* -*- C++ -*-; c-basic-offset: 4; indent-tabs-mode: nil */
+/*
+ * Copyright (c) 2018 Cisco Systems, Inc. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+
+#ifndef __VPP_ROUTE_MANAGER_H__
+#define __VPP_ROUTE_MANAGER_H__
+
+#include <opflexagent/Agent.h>
+
+#include <modelgbp/gbp/L3ExternalDomain.hpp>
+
+#include <vom/route_domain.hpp>
+
+#include "VppRuntime.hpp"
+
+namespace VPP
+{
+class RouteManager
+{
+ public:
+ RouteManager(Runtime &runtime);
+
+ void handle_domain_update(const opflex::modb::URI &uri);
+ void handle_route_update(const opflex::modb::URI &uri);
+
+ static void
+ mk_ext_nets(Runtime &runtime,
+ route_domain &rd,
+ const opflex::modb::URI &uri,
+ std::shared_ptr<modelgbp::gbp::L3ExternalDomain> ext_dom);
+
+ private:
+ /**
+ * Reference to the runtime data
+ */
+ Runtime &m_runtime;
+};
+}; // namespace VPP
+
+/*
+ * Local Variables:
+ * eval: (c-set-style "llvm.org")
+ * End:
+ */
+
+#endif