Skip to content

Commit

Permalink
Add path source as match condition
Browse files Browse the repository at this point in the history
Schema changes

Change-Id: I228aa80676d3e14b8849fa9962066cf13e32cd75
Related-bug: #1500698
  • Loading branch information
bailkeri committed Jan 29, 2016
1 parent 4eed11c commit b1b4ea3
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/schema/routing_policy.xsd
Expand Up @@ -38,10 +38,8 @@
</xsd:complexType>

<xsd:complexType name='PolicyAction'>
<xsd:all>
<xsd:element name='update' type='ActionUpdate'/>
<xsd:element name='action' type='ActionType'/>
</xsd:all>
<xsd:element name='update' type='ActionUpdate'/>
<xsd:element name='action' type='ActionType'/>
</xsd:complexType>

<xsd:simpleType name='PrefixMatchType'>
Expand All @@ -52,12 +50,23 @@
</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>
Expand Down

0 comments on commit b1b4ea3

Please sign in to comment.