-
Notifications
You must be signed in to change notification settings - Fork 390
/
routing_policy.xsd
79 lines (67 loc) · 2.71 KB
/
routing_policy.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!--
Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
-->
<xsd:schema
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:smi="urn:ietf:params:xml:ns:opsawg:smi:base:1.0">
<xsd:element name='routing-policy' type='ifmap::IdentityType'/>
<xsd:element name='routing-policy-entries' type='PolicyStatement'/>
<!--#IFMAP-SEMANTICS-IDL
Property('routing-policy-entries', 'routing-policy') -->
<xsd:complexType name='PolicyStatement'>
<xsd:element name='term' type='PolicyTerm' maxOccurs='unbounded'/>
</xsd:complexType>
<xsd:simpleType name='ActionType'>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="reject"/>
<xsd:enumeration value="accept"/>
<xsd:enumeration value="next"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name='CommunityListType'>
<xsd:element name='community' type='xsd:string' maxOccurs='unbounded'/>
</xsd:complexType>
<xsd:complexType name="ActionCommunity">
<xsd:element name='add' type='CommunityListType'/>
<xsd:element name='remove' type='CommunityListType'/>
<xsd:element name='set' type='CommunityListType'/>
</xsd:complexType>
<xsd:complexType name="ActionUpdate">
<xsd:element name="community" type="ActionCommunity"/>
<xsd:element name="local-pref" type="xsd:integer"/>
<xsd:element name="med" type="xsd:integer"/>
</xsd:complexType>
<xsd:complexType name='PolicyAction'>
<xsd:element name='update' type='ActionUpdate'/>
<xsd:element name='action' type='ActionType'/>
</xsd:complexType>
<xsd:simpleType name='PrefixMatchType'>
<xsd:restriction base="xsd:string" default="exact">
<xsd:enumeration value="exact"/>
<xsd:enumeration value="longer"/>
<xsd:enumeration value="orlonger"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name='PathSourceType'>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="bgp"/>
<xsd:enumeration value="xmpp"/>
<xsd:enumeration value="static"/>
<xsd:enumeration value="service-chain"/>
<xsd:enumeration value="aggregate"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="PrefixMatch">
<xsd:element name="prefix" type="xsd:string"/>
<xsd:element name="type" type="PrefixMatchType"/>
</xsd:complexType>
<xsd:complexType name="PolicyMatch">
<xsd:element name="protocol" type="PathSourceType" maxOccurs="unbounded"/>
<xsd:element name="community" type="xsd:string"/>
<xsd:element name="prefix" type="PrefixMatch" maxOccurs="unbounded"/>
</xsd:complexType>
<xsd:complexType name='PolicyTerm'>
<xsd:element name='from' type='PolicyMatch'/>
<xsd:element name='then' type='PolicyAction'/>
</xsd:complexType>
</xsd:schema>