Route Constrain policies
[bgpcep.git] / bgp / extensions / route-target / src / test / resources / initial / routing-policy-config.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
4   ~
5   ~ This program and the accompanying materials are made available under the
6   ~ terms of the Eclipse Public License v1.0 which accompanies this distribution,
7   ~ and is available at http://www.eclipse.org/legal/epl-v10.html
8   -->
9 <!-- vi: set et smarttab sw=4 tabstop=4: -->
10 <routing-policy xmlns="http://openconfig.net/yang/routing-policy">
11     <policy-definitions>
12         <policy-definition>
13             <name>basic-statements-test</name>
14             <statements>
15                 <statement>
16                     <name>client-attribute-append-test</name>
17                     <conditions>
18                         <bgp-conditions xmlns="http://openconfig.net/yang/bgp-policy">
19                             <match-role-set xmlns="urn:opendaylight:params:xml:ns:yang:odl:bgp:default:policy">
20                                 <from-role>
21                                     <role-set>/rpol:routing-policy/rpol:defined-sets/bgppol:bgp-defined-sets/role-sets/role-set[role-set-name="all"]</role-set>
22                                 </from-role>
23                             </match-role-set>
24                         </bgp-conditions>
25                     </conditions>
26                     <actions>
27                         <bgp-actions xmlns="http://openconfig.net/yang/bgp-policy">
28                             <client-attribute-prepend xmlns="urn:opendaylight:params:xml:ns:yang:bgp:route:target:constrain"/>
29                         </bgp-actions>
30                     </actions>
31                 </statement>
32             </statements>
33         </policy-definition>
34     </policy-definitions>
35 </routing-policy>