BD:unify bridge domain creation code
Change-Id: I29082e7a0c556069180a157e55b3698cf8cd38c7
Signed-off-by: Eyal Bari <ebari@cisco.com>
diff --git a/src/vnet/api_errno.h b/src/vnet/api_errno.h
index e939404..0d5b222 100644
--- a/src/vnet/api_errno.h
+++ b/src/vnet/api_errno.h
@@ -107,7 +107,9 @@
_(SESSION_CONNECT_FAIL, -115, "Session failed to connect") \
_(ENTRY_ALREADY_EXISTS, -116, "Entry already exists") \
_(SVM_SEGMENT_CREATE_FAIL, -117, "svm segment create fail") \
-_(APPLICATION_NOT_ATTACHED, -118, "application not attached")
+_(APPLICATION_NOT_ATTACHED, -118, "application not attached") \
+_(BD_ALREADY_EXISTS, -119, "Bridge domain already exists") \
+_(BD_IN_USE, -120, "Bridge domain has member interfaces")
typedef enum
{