Commit d8109b8b authored by Tarun Prabhu's avatar Tarun Prabhu

Normalized the error message for excessive link properties and corrected the...

Normalized the error message for excessive link properties and corrected the behaviour of the parser when no link properties are specified.
parent 3ed3abe9
......@@ -485,7 +485,7 @@ bool populate_link (DOMElement* elt,
return false;
}
else if (count > 2) {
cout << "Too many link properties found on " << virtualId
cout << "*** Too many link properties found on " << virtualId
<< ". Max. allowed: 2" << endl;
return false;
}
......
......@@ -96,7 +96,7 @@ rspec_parser_v2 :: readLinkCharacteristics (const DOMElement* link,
DOMNodeList* properties = link->getElementsByTagName(XStr("property").x());
string strBw = "", strLat = "", strLoss = "";
int bandwidth = 0, latency = 0;
int bandwidth = defaultBandwidth, latency = 0;
float packetLoss = 0.0;
bool isOk = false;
......
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