Commit c6337a0e authored by Jonathon Duerig's avatar Jonathon Duerig

Add delay node schema to build system.

parent ebcd65ce
......@@ -58,7 +58,7 @@ PipeContents =
attribute linterm { xsd:int }? &
# Lambda in EWMA for determining average queue size [Default: 0.002]
attribute q_weight { xsd:float }? &
attribute q_weight { xsd:float }?
# Both of the above are start elements.
start = SliverType
<?xml version="1.0" encoding="UTF-8"?>
Extension for the "delay" type in RSpecV2
Version 1
<xs:schema xmlns:xs="" elementFormDefault="qualified" targetNamespace="" xmlns:delay="">
<!-- Extend SliverType with shaping information -->
<xs:element name="sliver_type_shaping">
<xs:element minOccurs="0" maxOccurs="unbounded" ref="delay:pipe"/>
<xs:element name="pipe">
<xs:attributeGroup ref="delay:PipeContents"/>
To specify bridging without traffic shaping, a pipe should omit the
capacity, latency, and packet_loss attributes.
Pipes are uni-directional.
<xs:attributeGroup name="PipeContents">
<xs:attribute name="source" use="required"/>
<xs:attribute name="dest" use="required"/>
<xs:attribute name="capacity" type="xs:int"/>
<xs:attribute name="latency" type="xs:int"/>
<xs:attribute name="packet_loss" type="xs:float"/>
<xs:attribute name="gentle" type="xs:boolean"/>
<xs:attribute name="red" type="xs:boolean"/>
<xs:attribute name="queue_in_bytes" type="xs:boolean"/>
<xs:attribute name="limit" type="xs:int"/>
<xs:attribute name="maxthresh" type="xs:int"/>
<xs:attribute name="thresh" type="xs:int"/>
<xs:attribute name="linterm" type="xs:int"/>
<xs:attribute name="q_weight" type="xs:float"/>
<!-- Both of the above are start elements. -->
......@@ -61,6 +61,15 @@ for path in ext/emulab/1/; do
for path in ext/delay/1/; do
for schema in request; do
if [ -e ${path}/${schema}.rnc ]; then
$TRANGCMD ${path}/${schema}.rnc ${path}/${schema}.xsd
sudo scp ${path}/${schema}.xsd ${path}/${schema}.rnc${path}/
cd ../security
for path in ext/policy/1; do
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