BUG-6069: Fix IAE when POSTing an openconfig neighbor 99/42299/7
authorClaudio <cgaspari@cisco.com>
Fri, 22 Jul 2016 10:31:16 +0000 (12:31 +0200)
committerMilos Fabian <milfabia@cisco.com>
Mon, 1 Aug 2016 12:32:12 +0000 (12:32 +0000)
commit60815019e17aba49cf31c28aaa655cd0dfcc60f2
treef72b67ecd48237769944af4918f0c9adfdcaf6dd
parent21d0e868d92ba34cffd7d4b7b2513368de08a92e
BUG-6069: Fix IAE when POSTing an openconfig neighbor

Try to insert a neighbor will cause an IAE, thrown by
ensureParentsByMerge method. Which force us to write the whole
three since its not able to create mandatory leaf.
As a workaround and for keep functionallity, we set "presence"
statement to config container.

Change-Id: I40ab0b5245bc975db0d56178f879f82e5c5af0dd
Signed-off-by: Claudio <cgaspari@cisco.com>
bgp/openconfig-api/src/main/yang/openconfig-bgp.yang