vom: Fix the error handling for already existing itf 44/11444/1
authorMohsin Kazmi <sykazmi@cisco.com>
Wed, 28 Mar 2018 15:25:23 +0000 (17:25 +0200)
committerMohsin Kazmi <sykazmi@cisco.com>
Wed, 28 Mar 2018 15:25:23 +0000 (17:25 +0200)
Change-Id: I5695d51dd4f6daff472877fe1cce3ddcb924b187
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
src/vpp-api/vom/types.cpp

index 82f0aec..44e0dd0 100644 (file)
@@ -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);
   }