Prevent Bridge Domain operations on BD 0. 61/6561/2
authorJon Loeliger <jdl@netgate.com>
Tue, 2 May 2017 16:06:23 +0000 (11:06 -0500)
committerJohn Lo <loj@cisco.com>
Tue, 2 May 2017 23:26:33 +0000 (23:26 +0000)
commit1c7d4858369881ac4cc287c4fa16eff2e9890c1c
tree7d1698af41ef0a75eff7d1b424a4bb2dc8dbca8a
parent41da54f501338072ec9543db2e07e2c046e3964e
Prevent Bridge Domain operations on BD 0.

The default bridge domain, 0, is created automatically
with static features.  It should be modified by neither
the CLI nor the API.  So add tests for, and reject any
operation on BD 0.  The new API error message BD_NOT_MODIFIABLE
is returned in such cases.

Change-Id: Iaf3dd80c4f43cf41689ca55756a0a3525420cd12
Signed-off-by: Jon Loeliger <jdl@netgate.com>
src/vnet/api_errno.h
src/vnet/l2/l2_api.c
src/vnet/l2/l2_bd.c
src/vpp/api/api.c