Renamed the 'id' attribute of the 'network' element to 'name',
for compatibility with the PlanetLab RSpec.
rspecValidator = ET.RelaxNG(schemaXML)
rspecXML = ET.XML(xml)
for network in rspecXML.iterfind("./network"):
- if network.get('id') != cloud['name']:
+ if network.get('name') != cloud['name']:
# Throw away everything except my own RSpec
# sfa_logger().error("CreateSliver: deleting %s from rspec"%network.get('id'))
network.getparent().remove(network)
network
}
network = element network {
- attribute id { xsd:NMTOKEN },
+ attribute name { xsd:NMTOKEN },
user_info?,
ipv4,
bundles,
</define>
<define name="network">
<element name="network">
- <attribute name="id">
+ <attribute name="name">
<data type="NMTOKEN"/>
</attribute>
<optional>