Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
VOM: support for pipes
[vpp.git]
/
extras
/
vom
/
vom
/
interface.hpp
diff --git
a/extras/vom/vom/interface.hpp
b/extras/vom/vom/interface.hpp
index
92e14a7
..
a46b114
100644
(file)
--- a/
extras/vom/vom/interface.hpp
+++ b/
extras/vom/vom/interface.hpp
@@
-114,6
+114,16
@@
public:
*/
const static type_t BOND;
*/
const static type_t BOND;
+ /**
+ * pipe-parent type
+ */
+ const static type_t PIPE;
+
+ /**
+ * pipe-end type
+ */
+ const static type_t PIPE_END;
+
/**
* Convert VPP's name of the interface to a type
*/
/**
* Convert VPP's name of the interface to a type
*/
@@
-271,11
+281,11
@@
public:
* A base class for interface Create commands
*/
template <typename MSG>
* A base class for interface Create commands
*/
template <typename MSG>
- class create_cmd : public rpc_cmd<HW::item<handle_t>,
HW::item<handle_t>,
MSG>
+ class create_cmd : public rpc_cmd<HW::item<handle_t>, MSG>
{
public:
create_cmd(HW::item<handle_t>& item, const std::string& name)
{
public:
create_cmd(HW::item<handle_t>& item, const std::string& name)
- : rpc_cmd<HW::item<handle_t>,
HW::item<handle_t>,
MSG>(item)
+ : rpc_cmd<HW::item<handle_t>, MSG>(item)
, m_name(name)
{
}
, m_name(name)
{
}
@@
-298,7
+308,7
@@
public:
*/
void succeeded()
{
*/
void succeeded()
{
- rpc_cmd<HW::item<handle_t>,
HW::item<handle_t>,
MSG>::succeeded();
+ rpc_cmd<HW::item<handle_t>, MSG>::succeeded();
interface::add(m_name, this->item());
}
interface::add(m_name, this->item());
}
@@
-321,9
+331,7
@@
public:
handle = sw_if_index;
}
handle = sw_if_index;
}
- HW::item<handle_t> res(handle, rc);
-
- this->fulfill(res);
+ this->fulfill(HW::item<handle_t>(handle, rc));
return (VAPI_OK);
}
return (VAPI_OK);
}
@@
-339,17
+347,17
@@
public:
* Base class for intterface Delete commands
*/
template <typename MSG>
* Base class for intterface Delete commands
*/
template <typename MSG>
- class delete_cmd : public rpc_cmd<HW::item<handle_t>,
HW::item<handle_t>,
MSG>
+ class delete_cmd : public rpc_cmd<HW::item<handle_t>, MSG>
{
public:
delete_cmd(HW::item<handle_t>& item, const std::string& name)
{
public:
delete_cmd(HW::item<handle_t>& item, const std::string& name)
- : rpc_cmd<HW::item<handle_t>,
HW::item<handle_t>,
MSG>(item)
+ : rpc_cmd<HW::item<handle_t>, MSG>(item)
, m_name(name)
{
}
delete_cmd(HW::item<handle_t>& item)
, m_name(name)
{
}
delete_cmd(HW::item<handle_t>& item)
- : rpc_cmd<HW::item<handle_t>,
HW::item<handle_t>,
MSG>(item)
+ : rpc_cmd<HW::item<handle_t>, MSG>(item)
, m_name()
{
}
, m_name()
{
}
@@
-471,6
+479,7
@@
protected:
*/
void set(const handle_t& handle);
friend class interface_factory;
*/
void set(const handle_t& handle);
friend class interface_factory;
+ friend class pipe;
/**
* The SW interface handle VPP has asigned to the interface
/**
* The SW interface handle VPP has asigned to the interface