From: Neale Ranns Date: Wed, 15 Nov 2017 10:52:13 +0000 (-0800) Subject: VOM: interface's handle() retreives from singular instance X-Git-Tag: v18.04-rc0~241 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=263f955e81033b41336fbd49a087f82d3b7b80a7;hp=352ea0c4931b54012ce8d55634e3dd3f6ee6802b;p=vpp.git VOM: interface's handle() retreives from singular instance Change-Id: I262f2113f5805c0f89b615a0383efa8520184dd1 Signed-off-by: Neale Ranns --- diff --git a/src/vpp-api/vom/interface.cpp b/src/vpp-api/vom/interface.cpp index 1c9f20d2a5d..1c90a31bb32 100644 --- a/src/vpp-api/vom/interface.cpp +++ b/src/vpp-api/vom/interface.cpp @@ -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()); } diff --git a/src/vpp-api/vom/interface.hpp b/src/vpp-api/vom/interface.hpp index f11e3591a44..181e76dad69 100644 --- a/src/vpp-api/vom/interface.hpp +++ b/src/vpp-api/vom/interface.hpp @@ -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() */