All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit 8baf38c6 authored by Gary Wong's avatar Gary Wong

Modify the rspec request parser to expect "exclusive" as an attribute,

not an element.
parent b4348256
......@@ -8,7 +8,7 @@
* XML Parser for RSpec ptop files
*/
static const char rcsid[] = "$Id: parse_request_rspec.cc,v 1.6 2009-07-16 22:37:31 gtw Exp $";
static const char rcsid[] = "$Id: parse_request_rspec.cc,v 1.7 2009-07-17 16:46:17 gtw Exp $";
#ifdef WITH_XML
......@@ -379,8 +379,9 @@ bool populate_nodes_rspec(DOMElement *root, tb_vgraph &vg) {
if (subnode_of_name != NULL)
v -> subnode_of_name = (*subnode_of_name).c();
if( hasChildTag( elt, "exclusive" ) ) {
XStr exclusive( getChildValue( elt, "exclusive" ) );
if( elt->hasAttribute( XStr( "exclusive" ).x() ) ) {
XStr exclusive( elt->getAttribute( XStr(
"exclusive" ).x() ) );
fstring desirename( "shared" );
if( !strcmp( exclusive, "false" ) ) {
......
......@@ -36,6 +36,7 @@
<xs:attribute name="component_uuid"/>
<xs:attribute name="colocate"/>
<xs:attribute name="virtualization_subtype"/>
<xs:attribute name="exclusive"/>
</xs:complexType>
<xs:element name="interface">
<xs:complexType>
......
......@@ -18,7 +18,8 @@ NodeContents &=
ComponentName? &
attribute colocate { text }? &
# TODO: Remove and replace with something more exensible
attribute virtualization_subtype { text }?
attribute virtualization_subtype { text }? &
attribute exclusive { text }?
# The LinkMapping will only be available after an assignment
LinkContents &=
......
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