nat: add/del ed_ext_ports only if the table is instantiated 75/26675/1
authorDave Barach <dave@barachs.net>
Thu, 23 Apr 2020 20:56:15 +0000 (16:56 -0400)
committerDave Barach <dave@barachs.net>
Thu, 23 Apr 2020 20:56:51 +0000 (16:56 -0400)
commita90ba644b2c5463b89a91d019b3c22780242acc3
treec5159f64b36fa7e1d052a6e76bb4917c0e65343d
parent843ea7c3e356b6e9353f9f275976f2fee23beeac
nat: add/del ed_ext_ports only if the table is instantiated

Add a suitable ASSERT in the bihash template in case this happens again.

Type: fix

Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: Ib370d4238f6bae2995bc30fd17fad5c41053c3d1
src/plugins/nat/nat.c
src/vppinfra/bihash_template.c