Commit d8e27145 authored by Jonathon Duerig's avatar Jonathon Duerig

Added a bgp_prefix top level entity to deal with this global resource...

Added a bgp_prefix top level entity to deal with this global resource temporarily. We should talk at some point about a permanent solution.
parent 3b61ce12
......@@ -161,8 +161,11 @@
<xs:element name="rspec" type="rspec:RSpecContents"/>
<xs:complexType name="RSpecContents">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="rspec:node"/>
<xs:element ref="rspec:link"/>
<xs:choice>
<xs:element ref="rspec:node"/>
<xs:element ref="rspec:link"/>
</xs:choice>
<xs:element ref="rspec:bgp_prefix"/>
</xs:choice>
<xs:attribute name="generated" type="xs:dateTime"/>
<xs:attribute name="valid_until" type="xs:dateTime"/>
......
......@@ -43,6 +43,12 @@ InterfaceRef &=
ComponentInterfaceRefName
RSpecContents &=
attribute type { "advertisement" }
attribute type { "advertisement" } &
BgpPrefix*
BgpPrefix = element bgp_prefix {
attribute address { text } &
attribute netmask { text }
}
start = RSpec
......@@ -13,4 +13,10 @@
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://www.protogeni.net/resources/rspec/0.1" xmlns:rspec="http://www.protogeni.net/resources/rspec/0.1">
<xs:include schemaLocation="rspec-ad-common.xsd"/>
<xs:element name="bgp_prefix">
<xs:complexType>
<xs:attribute name="address" use="required"/>
<xs:attribute name="netmask" use="required"/>
</xs:complexType>
</xs:element>
</xs:schema>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment