VOM: interface's handle() retreives from singular instance 24/9424/2
authorNeale Ranns <neale.ranns@cisco.com>
Wed, 15 Nov 2017 10:52:13 +0000 (02:52 -0800)
committerDamjan Marion <dmarion.lists@gmail.com>
Wed, 15 Nov 2017 13:43:29 +0000 (13:43 +0000)
Change-Id: I262f2113f5805c0f89b615a0383efa8520184dd1
Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
src/vpp-api/vom/interface.cpp
src/vpp-api/vom/interface.hpp

index 1c9f20d..1c90a31 100644 (file)
@@ -124,6 +124,12 @@ interface::type() const
 
 const handle_t&
 interface::handle() const
+{
+  return (singular()->handle_i());
+}
+
+const handle_t&
+interface::handle_i() const
 {
   return (m_hdl.data());
 }
index f11e359..181e76d 100644 (file)
@@ -517,6 +517,11 @@ private:
    */
   void update(const interface& obj);
 
+  /*
+   * return the interface's handle in the singular instance
+   */
+  const handle_t& handle_i() const;
+
   /*
    * It's the OM class that calls singular()
    */