BGPCEP-754: Openconfig Routing Policy Service
[bgpcep.git] / bgp / openconfig-rp-impl / 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
10 <!-- vi: set et smarttab sw=4 tabstop=4: -->
11
12 <routing-policy xmlns="http://openconfig.net/yang/routing-policy">
13     <policy-definitions>
14         <policy-definition>
15             <name>default-odl-import-policy</name>
16             <statements>
17                 <statement>
18                     <name>from-external</name>
19                     <conditions>
20                         <bgp-conditions xmlns="http://openconfig.net/yang/bgp-policy">
21                             <match-role-set xmlns="urn:opendaylight:params:xml:ns:yang:odl:bgp:default:policy">
22                                 <role-set>/rpol:routing-policy/rpol:defined-sets/bgppol:bgp-defined-sets/role-sets/role-set[role-set-name="only-ebgp"</role-set>
23                             </match-role-set>
24                         </bgp-conditions>
25                     </conditions>
26                     <actions>
27                         <bgp-actions xmlns="http://openconfig.net/yang/bgp-policy">
28                             <non-transitive-attributes-filter xmlns="urn:opendaylight:params:xml:ns:yang:odl:bgp:default:policy"/>
29                         </bgp-actions>
30                     </actions>
31                 </statement>
32             </statements>
33         </policy-definition>
34     </policy-definitions>
35     <defined-sets>
36         <bgp-defined-sets xmlns="http://openconfig.net/yang/bgp-policy">
37             <roles-sets xmlns="urn:opendaylight:params:xml:ns:yang:odl:bgp:default:policy">
38                 <role-sets>
39                     <role-set-name>ebgp-only</role-set-name>
40                     <role>ebgp</role>
41                 </role-sets>
42             </roles-sets>
43         </bgp-defined-sets>
44         <prefix-sets>
45             <prefix-set>
46                 <prefix-set-name>prefix-set</prefix-set-name>
47                 <prefix>
48                     <ip-prefix>192.168.0.0/16</ip-prefix>
49                     <masklength-range>21..24</masklength-range>
50                 </prefix>
51             </prefix-set>
52         </prefix-sets>
53         <neighbor-sets>
54             <neighbor-set>
55                 <neighbor-set-name>neighbor-set</neighbor-set-name>
56                 <neighbor>
57                     <address>123.42.13.8</address>
58                 </neighbor>
59             </neighbor-set>
60         </neighbor-sets>
61         <tag-sets>
62             <tag-set>
63                 <tag-set-name>tag-name</tag-set-name>
64                 <tag>
65                     <value>2</value>
66                 </tag>
67             </tag-set>
68         </tag-sets>
69     </defined-sets>
70 </routing-policy>