fib: fib api updates
[vpp.git] / extras / vom / vom / route_domain.hpp
index 19a3c18..78db63b 100644 (file)
@@ -22,8 +22,6 @@
 #include "vom/prefix.hpp"
 #include "vom/singular_db.hpp"
 
-#include <vapi/ip.api.vapi.hpp>
-
 namespace VOM {
 /**
  * A route-domain is a VRF.
@@ -38,6 +36,15 @@ public:
    */
   typedef route::table_id_t key_t;
 
+  /**
+   * The iterator type
+   */
+  typedef singular_db<const key_t, route_domain>::const_iterator
+    const_iterator_t;
+
+  static const_iterator_t cbegin();
+  static const_iterator_t cend();
+
   /**
    * Construct a new object matching the desried state
    */