Fix routing-policy-config 13/81513/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 9 Apr 2019 17:18:55 +0000 (19:18 +0200)
committerRobert Varga <nite@hq.sk>
Wed, 10 Apr 2019 06:23:23 +0000 (06:23 +0000)
The XML contains illegal constructs, not matching the model, leading
to XML parsing exceptions. Fix that.

Change-Id: I3130f925e862ed9b58db3a32a820cac983770ff5
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 155dc841fd842635b29b8eb65cb40ecf3e1e3413)

bgp/openconfig-rp-impl/src/test/resources/initial/routing-policy-config.xml

index b3a75acce4e693ba84f834aba0bd545afc5020eb..aab707031dd91b47d02ed71ed2c8bf26bf794234 100644 (file)
     </policy-definitions>
     <defined-sets>
         <bgp-defined-sets xmlns="http://openconfig.net/yang/bgp-policy">
-            <roles-sets xmlns="urn:opendaylight:params:xml:ns:yang:odl:bgp:default:policy">
-                <role-sets>
+            <role-sets xmlns="urn:opendaylight:params:xml:ns:yang:odl:bgp:default:policy">
+                <role-set>
                     <role-set-name>ebgp-only</role-set-name>
                     <role>ebgp</role>
-                </role-sets>
-            </roles-sets>
+                </role-set>
+            </role-sets>
         </bgp-defined-sets>
         <prefix-sets>
             <prefix-set>
@@ -69,4 +69,4 @@
             </tag-set>
         </tag-sets>
     </defined-sets>
-</routing-policy>
\ No newline at end of file
+</routing-policy>