summaryrefslogtreecommitdiffstats
path: root/src/vpp-api/vom
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2018-03-28 17:25:23 +0200
committerMohsin Kazmi <sykazmi@cisco.com>2018-03-28 17:25:23 +0200
commit691abf6f332a6bee6ee4a3be2b68ff5b28de75fc (patch)
tree4688d84f6c82be1218de1cd1ef9a9f00f03fe91c /src/vpp-api/vom
parent23d4e8a6b5a3824ef5390061cf3dd7001ca760e8 (diff)
vom: Fix the error handling for already existing itf
Change-Id: I5695d51dd4f6daff472877fe1cce3ddcb924b187 Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vpp-api/vom')
-rw-r--r--src/vpp-api/vom/types.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/vpp-api/vom/types.cpp b/src/vpp-api/vom/types.cpp
index 82f0aec20b2..44e0dd08f98 100644
--- a/src/vpp-api/vom/types.cpp
+++ b/src/vpp-api/vom/types.cpp
@@ -39,7 +39,11 @@ rc_t::from_vpp_retval(int32_t rv)
return (rc_t::OK);
}
if (-68 == rv) {
- // interface laready exists
+ // sub interface already exists
+ return (rc_t::OK);
+ }
+ if (-79 == rv) {
+ // interface already exists
return (rc_t::OK);
}