/
xmpp_enet.xsd
111 lines (95 loc) · 3.78 KB
/
xmpp_enet.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!--
Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
-->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ct="http://www.contrailsystems.com/xmpp-enet-cfg.xsd"
xsd:targetNamespace="http://www.contrailsystems.com/xmpp-enet-cfg.xsd">
<!-- iq from agent to control-node -->
<xsd:simpleType name="EnetTunnelEncapsulationType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="gre"/>
<xsd:enumeration value="udp"/>
<xsd:enumeration value="vxlan"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="EnetTunnelEncapsulationListType">
<xsd:element name="tunnel-encapsulation" type="EnetTunnelEncapsulationType" maxOccurs="unbounded"/>
</xsd:complexType>
<xsd:complexType name="EnetNextHopType">
<xsd:element name="af" type="xsd:integer"/>
<xsd:element name="address" type="xsd:string"/>
<xsd:element name="label" type="xsd:integer"/>
<xsd:element name="tunnel-encapsulation-list" type="EnetTunnelEncapsulationListType"/>
</xsd:complexType>
<xsd:complexType name="EnetOlistType">
<xsd:element name="next-hop" type="EnetNextHopType" maxOccurs="unbounded"/>
</xsd:complexType>
<xsd:complexType name="EnetNextHopListType">
<xsd:element name="next-hop" type="EnetNextHopType" maxOccurs="unbounded"/>
</xsd:complexType>
<xsd:complexType name="EnetAddressType">
<xsd:element name="af" type="xsd:integer"/>
<xsd:element name="safi" type="xsd:integer"/>
<xsd:element name="ethernet-tag" type="xsd:integer"/>
<xsd:element name="mac" type="xsd:string"/>
<xsd:element name="address" type="xsd:string"/>
</xsd:complexType>
<xsd:complexType name="EnetSecurityGroupListType">
<xsd:element name="security-group" type="xsd:integer" maxOccurs="unbounded"/>
</xsd:complexType>
<xsd:complexType name="EnetEntryType">
<xsd:all>
<xsd:element name="nlri" type="EnetAddressType"/>
<xsd:element name="next-hops" type="EnetNextHopListType"/>
<xsd:element name="olist" type="EnetOlistType"/>
<xsd:element name="virtual-network" type="xsd:string"/>
<xsd:element name="sequence-number" type="xsd:integer"/>
<xsd:element name="sticky" type="xsd:boolean" default="false"/>
<xsd:element name="security-group-list" type="EnetSecurityGroupListType"/>
<xsd:element name="local-preference" type="xsd:integer"/>
<xsd:element name="med" type="xsd:integer"/>
<xsd:element name="edge-replication-not-supported" type="xsd:boolean"/>
<xsd:element name="assisted-replication-supported" type="xsd:boolean"/>
<xsd:element name="leaf-olist" type="EnetOlistType"/>
<xsd:element name="replicator-address" type="xsd:string"/>
<xsd:element name="etree-leaf" type="xsd:boolean"/>
</xsd:all>
</xsd:complexType>
<xsd:complexType name="EnetItemType">
<xsd:element name="entry" type="EnetEntryType"/>
</xsd:complexType>
<xsd:complexType name="EnetItemsType">
<xsd:all>
<xsd:element name="item" type="EnetItemType" maxOccurs="unbounded"/>
</xsd:all>
</xsd:complexType>
<xsd:element name="items" type="EnetItemsType"/>
</xsd:schema>
<!--
<iq type='set'
from='agent@domain.org'
to='network-control.domain.org'
id='request1'>
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
<publish node='25/242/01:02:03:04:05:06,10.1.1.1>
<item>
<entry xmlns='http://ietf.org/protocol/bgpvpn'>
<nlri>
<af>25</af>
<safi>242</safi>
<mac>01:02:03:04:05:06</mac>
<address>10.1.1.1</address>
</nlri>
<next-hops>
<next-hop>
<af>1</af>
<address>192.168.1.1</address>
<label>32</label>
</next-hop>
</next-hops>
</entry>
</item>
</publish>
</pubsub>
</iq>
-->