ptop.xsd 1.58 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
<?xml version="1.0" encoding="UTF-8"?>
<!--
  
  EMULAB-COPYRIGHT
  Copyright (c) 2007 University of Utah and the Flux Group.
  All rights reserved.
  
-->
<!--
  
  Description of a physical topology
  
-->
14 15
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://emulab.net/resources/ptop/0.1" xmlns:ptop="http://emulab.net/resources/ptop/0.1">
  <xs:include schemaLocation="top.xsd"/>
16 17 18
  <xs:element name="type_limit">
    <xs:complexType>
      <xs:sequence>
19 20 21 22 23
        <xs:element name="type_name" type="xs:string">
          <xs:annotation>
            <xs:documentation>Name of the type we are limiting</xs:documentation>
          </xs:annotation>
        </xs:element>
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
        <xs:element name="type_limit">
          <xs:annotation>
            <xs:documentation>Limit as to the number of nodes of this type the experiment can use</xs:documentation>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="xs:integer">
              <xs:minInclusive value="0"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="ptop">
    <xs:complexType>
      <xs:sequence>
40 41 42 43
        <xs:choice minOccurs="0" maxOccurs="unbounded">
          <xs:element ref="ptop:node"/>
          <xs:element ref="ptop:link"/>
        </xs:choice>
44 45 46 47 48 49
        <xs:element minOccurs="0" maxOccurs="unbounded" ref="ptop:type_limit"/>
      </xs:sequence>
      <xs:attribute name="testbed" use="required"/>
    </xs:complexType>
  </xs:element>
</xs:schema>