Skip to content

Commit

Permalink
Merge "closes-bug:1351172 While printing Agent config introspect not …
Browse files Browse the repository at this point in the history
…processing the Delete Marked node adjacencies and printing this node as Delete Marked Config" into R2.0
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Feb 5, 2015
2 parents b2d4ea0 + ef9459d commit 9e1bbcb
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/ifmap/ifmap_agent_sandesh.cc
Expand Up @@ -144,18 +144,20 @@ void xml_parse(pugi::xml_node &node, string &s, int n) {
void ShowIFMapAgentTable::MakeNode(string &dst, DBEntryBase *src) {
IFMapNode *node = static_cast<IFMapNode *>(src);
pugi::xml_document doc;
pugi::xml_node config = doc.append_child("config");
pugi::xml_node config;

if (!node->IsDeleted()) {
config = doc.append_child("config");
} else {
config = doc.append_child("Delete Marked config");
}

node->EncodeNodeDetail(&config);
#if 0
ostringstream oss;
doc.save(oss);
dst = oss.str();
//replace(dst.begin(), dst.end(), '<', '"');
//replace(dst.begin(), dst.end(), '>', '"');
#else
xml_parse(config, dst, 1);
#endif

if (node->IsDeleted()) {
return;
}

// Display its adjacencies
dst = dst + "Adjacencies:\n";
Expand Down

0 comments on commit 9e1bbcb

Please sign in to comment.