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)
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

index ce92bcc3f01b040472a0c72b1d525e3d348db5e4..7e55a5312e22d0799a1a7a70d626928d6e6fac86 100644 (file)
@@ -514,6 +514,11 @@ module openconfig-bgp {
       description
         "Configuration parameters relating to the global BGP router";
       uses bgp-global_config;
+      /* 
+      Presence is added as a workaround for BUG-6069 and it lacks
+      of presence meaning therefore is left empty.
+      */
+      presence "";
     }
     container state {
       config false;