From 352ea0c4931b54012ce8d55634e3dd3f6ee6802b Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Tue, 14 Nov 2017 11:04:28 -0800 Subject: VOM: interface RD update reconfigures L3 bindings Change-Id: I273e1ea28c3c146e4a88d031c790c1cc56dccf00 Signed-off-by: Neale Ranns --- src/vpp-api/vom/l3_binding.hpp | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) (limited to 'src/vpp-api/vom/l3_binding.hpp') diff --git a/src/vpp-api/vom/l3_binding.hpp b/src/vpp-api/vom/l3_binding.hpp index d94ff696b23..4403760180e 100644 --- a/src/vpp-api/vom/l3_binding.hpp +++ b/src/vpp-api/vom/l3_binding.hpp @@ -45,6 +45,19 @@ public: */ ~l3_binding(); + /** + * The key type for l3_bindings + */ + typedef std::pair key_type_t; + + /** + * The iterator type + */ + typedef singular_db::const_iterator const_iterator_t; + + static const_iterator_t cbegin(); + static const_iterator_t cend(); + /** * Return the 'singular instance' of the L3-Config that matches this * object @@ -57,19 +70,19 @@ public: std::string to_string() const; /** - * Return the prefix associated with this L3config + * Return the prefix associated with this L3 binding */ const route::prefix_t& prefix() const; /** - * Dump all l3_bindings into the stream provided + * Return the interface associated with this L3 binding */ - static void dump(std::ostream& os); + const interface& itf() const; /** - * The key type for l3_bindings + * Dump all l3_bindings into the stream provided */ - typedef std::pair key_type_t; + static void dump(std::ostream& os); /** * Find an singular instance in the DB for the interface passed @@ -142,6 +155,8 @@ private: */ void replay(void); + friend class interface; + /** * A reference counting pointer the interface that this L3 layer * represents. By holding the reference here, we can guarantee that -- cgit 1.2.3-korg