Skip to content

Commit

Permalink
closes-bug:1351172 While printing Agent config introspect not process…
Browse files Browse the repository at this point in the history
…ing the Delete Marked node adjacencies and printing this node as Delete Marked Config

Change-Id: Ic6deb10873c4347034766d05e0cd16f3378beeae
  • Loading branch information
divakardhar authored and haripk committed Jan 22, 2015
1 parent fcc8a85 commit 776328a
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 776328a

Please sign in to comment.