Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
f28e0bae
Commit
f28e0bae
authored
Jul 20, 2009
by
Gary Wong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Checkpoint changes to assign (mostly rspec parsing stuff).
parent
cd10006d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
3 deletions
+25
-3
assign/annotate_rspec.cc
assign/annotate_rspec.cc
+11
-1
assign/parse_request_rspec.cc
assign/parse_request_rspec.cc
+14
-2
No files found.
assign/annotate_rspec.cc
View file @
f28e0bae
...
...
@@ -4,7 +4,7 @@
* All rights reserved.
*/
static
const
char
rcsid
[]
=
"$Id: annotate_rspec.cc,v 1.
4
2009-07-
19 20:47:08
gtw Exp $"
;
static
const
char
rcsid
[]
=
"$Id: annotate_rspec.cc,v 1.
5
2009-07-
20 15:36:21
gtw Exp $"
;
#ifdef WITH_XML
...
...
@@ -91,6 +91,16 @@ void annotate_rspec::annotate_element (const char* v_name, list<const char*>* li
prev_component_hop = create_component_hop (p_switch_switch_link, vlink, NEITHER, prev_component_hop);
prev_link_in_path = p_switch_switch_link;
}
#else
{
static
int
gave_apology
;
if
(
!
gave_apology
)
{
gave_apology
=
1
;
cout
<<
"Warning: unable to locate interfaces on "
"switch/switch links; omitting those
\n
"
;
}
}
#endif
create_component_hop
(
p_switch_dst_link
,
vlink
,
DESTINATION
,
prev_component_hop
);
}
...
...
assign/parse_request_rspec.cc
View file @
f28e0bae
...
...
@@ -8,7 +8,7 @@
* XML Parser for RSpec ptop files
*/
static
const
char
rcsid
[]
=
"$Id: parse_request_rspec.cc,v 1.1
1
2009-07-20
08:14:00 ricci
Exp $"
;
static
const
char
rcsid
[]
=
"$Id: parse_request_rspec.cc,v 1.1
2
2009-07-20
15:36:21 gtw
Exp $"
;
#ifdef WITH_XML
...
...
@@ -384,11 +384,23 @@ bool populate_nodes_rspec(DOMElement *root, tb_vgraph &vg) {
"exclusive"
).
x
()
)
);
fstring
desirename
(
"shared"
);
if
(
!
strcmp
(
exclusive
,
"false"
)
)
{
if
(
!
strcmp
(
exclusive
,
"false"
)
||
!
strcmp
(
exclusive
,
"0"
)
)
{
tb_node_featuredesire
node_fd
(
desirename
,
1.0
,
true
,
featuredesire
::
FD_TYPE_NORMAL
);
node_fd
.
add_desire_user
(
1.0
);
v
->
desires
.
push_front
(
node_fd
);
}
else
if
(
strcmp
(
exclusive
,
"true"
)
&&
strcmp
(
exclusive
,
"1"
)
)
{
static
int
syntax_error
;
if
(
!
syntax_error
)
{
syntax_error
=
1
;
cout
<<
"Warning: unrecognised exclusive "
"attribute
\"
"
<<
exclusive
<<
"
\"
; will "
"assume exclusive=
\"
true
\"\n
"
;
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment