Forbid delete of default NAT instance 43/11943/1
authorMarek Gradzki <[email protected]>
Fri, 20 Apr 2018 05:02:03 +0000 (07:02 +0200)
committerMarek Gradzki <[email protected]>
Fri, 20 Apr 2018 06:12:16 +0000 (08:12 +0200)
commit4b1fcde5c085c8704a1c3274029e35d1e72625c8
tree3df64e80db09761d7d56547bfe95870f8af4594f
parent48566d84cd9f4047d96541540cdfc9ef4936acf8
Forbid delete of default NAT instance

NAT instances are mapped to VPP's VRFs.
Default NAT instance (id=0) is mapped to default VRF,
which is allways present in VPP.

This patch forbids deleteion of default instance
to be consistent with VPP behaviour
and NAT instance reader implementation.

Change-Id: I71aa6986395e4ba67baaa75d90905b450434aca4
Signed-off-by: Marek Gradzki <[email protected]>
nat/nat2vpp/src/main/java/io/fd/hc2vpp/nat/write/NatInstaceCustomizer.java