From: Mohsin Kazmi Date: Wed, 28 Mar 2018 15:25:23 +0000 (+0200) Subject: vom: Fix the error handling for already existing itf X-Git-Tag: v18.04-rc1~29 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=691abf6f332a6bee6ee4a3be2b68ff5b28de75fc;p=vpp.git vom: Fix the error handling for already existing itf Change-Id: I5695d51dd4f6daff472877fe1cce3ddcb924b187 Signed-off-by: Mohsin Kazmi --- 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); }