diff options
Diffstat (limited to 'extras/vom/vom/ip_punt_redirect.hpp')
-rw-r--r-- | extras/vom/vom/ip_punt_redirect.hpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/extras/vom/vom/ip_punt_redirect.hpp b/extras/vom/vom/ip_punt_redirect.hpp index 6cda0d2b3ba..ed9cf34992c 100644 --- a/extras/vom/vom/ip_punt_redirect.hpp +++ b/extras/vom/vom/ip_punt_redirect.hpp @@ -42,6 +42,15 @@ public: const boost::asio::ip::address& addr); /** + * Construct a new object matching the desried state + * + * @param tx_itf - The interface to which traffic should be redirected. + * @param addr - The next hop ip address to redirect the traffic. + */ + ip_punt_redirect(const interface& tx_itf, + const boost::asio::ip::address& addr); + + /** * Copy Constructor */ ip_punt_redirect(const ip_punt_redirect& o); @@ -73,8 +82,13 @@ public: typedef interface::key_t key_t; /** - * Find an singular instance in the DB for the interface passed + * return the object's key */ + const key_t key() const; + + /** + * Find an singular instance in the DB for the interface passed + */ static std::shared_ptr<ip_punt_redirect> find(const interface& i); private: |