Skip to content

Commit

Permalink
Merge "Schema changes for port-tuple"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Nov 8, 2015
2 parents e901c11 + 29c408c commit afcc00c
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions src/schema/vnc_cfg.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -996,6 +996,8 @@ targetNamespace="http://www.contrailsystems.com/2012/VNC-CONFIG/0">
<xsd:element name='virtual-network' type='xsd:string'/>
<xsd:element name='ip-address' type='IpAddressType'/>
<xsd:element name='static-routes' type='RouteTableType' />
<xsd:element name='allowed-address-pairs' type="AllowedAddressPairs" />
<xsd:element name='service-health-check' type='ServiceHealthCheckType' />
</xsd:all>
</xsd:complexType>

Expand Down Expand Up @@ -1079,6 +1081,9 @@ targetNamespace="http://www.contrailsystems.com/2012/VNC-CONFIG/0">
<xsd:element name="instance-ip-secondary" type="xsd:boolean" default='false'/>
<!--#IFMAP-SEMANTICS-IDL
Property('instance-ip-secondary', 'instance-ip') -->
<xsd:element name="service-instance-ip" type="xsd:boolean" default='false'/>
<!--#IFMAP-SEMANTICS-IDL
Property('service-instance-ip', 'instance-ip') -->
<xsd:element name="instance-ip-virtual-network"/>
<!--#IFMAP-SEMANTICS-IDL
Link('instance-ip-virtual-network',
Expand Down Expand Up @@ -1471,6 +1476,18 @@ targetNamespace="http://www.contrailsystems.com/2012/VNC-CONFIG/0">
Link('service-instance-interface', 'service-instance',
'virtual-machine-interface', ['ref', 'derived']) -->

<xsd:element name='port-tuple' type='ifmap:IdentityType'/>

<xsd:element name='service-instance-port-tuple'/>
<!-- #IFMAP-SEMANTICS-IDL
Link('service-instance-port-tuple', 'service-instance',
'port-tuple', ['has']) -->

<xsd:element name='port-tuple-interface'/>
<!-- #IFMAP-SEMANTICS-IDL
Link('port-tuple-interface', 'virtual-machine-interface',
'port-tuple', ['ref']) -->

<xsd:element name="virtual-DNS" type="ifmap:IdentityType"/>
<xsd:element name="domain-virtual-DNS"/>
<!--#IFMAP-SEMANTICS-IDL
Expand Down Expand Up @@ -1508,6 +1525,26 @@ targetNamespace="http://www.contrailsystems.com/2012/VNC-CONFIG/0">
</xsd:all>
</xsd:complexType>

<xsd:simpleType name="HealthCheckProtocolType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="PING"/>
<xsd:enumeration value="HTTP"/>
</xsd:restriction>
</xsd:simpleType>

<xsd:complexType name='ServiceHealthCheckType'>
<xsd:sequence>
<xsd:element name='enabled' type='xsd:boolean' default='false'/>
<xsd:element name='monitor-type' type='HealthCheckProtocolType'/>
<xsd:element name='delay' type='xsd:integer'/>
<xsd:element name='timeout' type='xsd:integer'/>
<xsd:element name='max-retries' type='xsd:integer'/>
<xsd:element name='http-method' type='xsd:string'/>
<xsd:element name='url-path' type='xsd:string'/>
<xsd:element name='expected-codes' type='xsd:string'/>
</xsd:sequence>
</xsd:complexType>

<xsd:element name="route-table" type="ifmap:IdentityType"/>
<xsd:element name="project-route-table"/>
<!--#IFMAP-SEMANTICS-IDL
Expand Down

0 comments on commit afcc00c

Please sign in to comment.