Skip to content

Commit

Permalink
Remove max-flow-rate from VirtualNetworkType
Browse files Browse the repository at this point in the history
Add new property MaxFlowsType, minimum value 0 and
max as (max value of 32 bit integer).

Add new max-flows attribute to VirtualNetworkType
and VirtualMachineInterfacePropertiesType.

Partial-Bug: #1779665

Change-Id: Ib9cb36aadfeb383c148caf2677f3d401fffe4cec
  • Loading branch information
krharsh committed Nov 2, 2018
1 parent bbb1e7e commit 67b9464
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions schema/vnc_cfg.xsd
Expand Up @@ -1465,6 +1465,13 @@ targetNamespace="http://www.contrailsystems.com/2012/VNC-CONFIG/0">
</xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name="MaxFlowsType">
<xsd:restriction base="xsd:integer">
<xsd:minInclusive value="0"/>
<xsd:maxInclusive value="4294967296"/>
</xsd:restriction>
</xsd:simpleType>

<xsd:complexType name='VirtualNetworkType'>
<xsd:all>
<xsd:element name='allow-transit' type="xsd:boolean" required='optional'
Expand All @@ -1487,8 +1494,8 @@ targetNamespace="http://www.contrailsystems.com/2012/VNC-CONFIG/0">
<!-- Enable or disable Mirroring for virtual-network -->
<xsd:element name='mirror-destination' type="xsd:boolean" default="false" required='optional'
description='Flag to mark the virtual network as mirror destination network'/>
<xsd:element name='max-flows' type='xsd:integer' required='optional' description='Maximum number of flows permitted on each VMI of the VN'/>
<xsd:element name='max-flow-rate' type='xsd:integer' required='optional' description='Maximum flow rate in flows per second to be permitted on each VMI of the VN' />
<xsd:element name='max-flows' type='MaxFlowsType' default='0' required='optional'
description='Maximum number of flows permitted on each VMI of the VN'/>
</xsd:all>
</xsd:complexType>

Expand Down Expand Up @@ -1863,6 +1870,8 @@ targetNamespace="http://www.contrailsystems.com/2012/VNC-CONFIG/0">
description='BGP route local preference for routes representing this interface, higher value is higher preference'/>
<xsd:element name="sub-interface-vlan-tag" type="xsd:integer" required='optional'
description='802.1Q VLAN tag to be used if this interface is sub-interface for some other interface.'/>
<xsd:element name='max-flows' type='MaxFlowsType' default='0' required='optional'
description='Maximum number of flows permitted on VMI'/>
</xsd:all>
</xsd:complexType>

Expand Down

0 comments on commit 67b9464

Please sign in to comment.