OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
test_xml.cc File Reference
#include "base/os.h"
#include <iostream>
#include <fstream>
#include <pugixml/pugixml.hpp>
#include <boost/filesystem.hpp>
#include <boost/uuid/uuid.hpp>
#include <test/test_cmn_util.h>
#include <pkt/test/test_pkt_util.h>
#include <pkt/flow_mgmt.h>
#include <oper/global_vrouter.h>
#include "test_xml.h"
#include "test_xml_validate.h"
#include "test_xml_packet.h"
Include dependency graph for test_xml.cc:

Go to the source code of this file.

Namespaces

 AgentUtXmlUtils
 

Functions

bool AgentUtXmlUtils::GetStringAttribute (const xml_node &node, const string &name, string *value)
 
bool AgentUtXmlUtils::GetUintAttribute (const xml_node &node, const string &name, uint16_t *value)
 
bool AgentUtXmlUtils::GetIntAttribute (const xml_node &node, const string &name, int *value)
 
bool AgentUtXmlUtils::GetBoolAttribute (const xml_node &node, const string &name, bool *value)
 
void AgentUtXmlUtils::NovaIntfAdd (bool op_delete, const uuid &id, const Ip4Address &ip, const uuid &vm_uuid, const uuid vn_uuid, const string &name, const string &mac, const string vm_name)
 
void AgentUtXmlUtils::LinkXmlNode (xml_node *parent, const string &ltype, const string lname, const string &rtype, const string rname)
 
xml_node AgentUtXmlUtils::AddXmlNodeWithAttr (xml_node *parent, const char *attr)
 
xml_node AgentUtXmlUtils::AddXmlNodeWithValue (xml_node *parent, const char *name, const string &value)
 
xml_node AgentUtXmlUtils::AddXmlNodeWithIntValue (xml_node *parent, const char *name, int val)
 
static bool CheckConfigNode (const string &node_name, const xml_node &node, uuid *id, string *name)
 
static void AddPermissions (xml_node *parent)
 
static void AddUuid (xml_node *parent, const uuid &id)
 

Function Documentation

static void AddPermissions ( xml_node *  parent)
static

Definition at line 620 of file test_xml.cc.

Here is the call graph for this function:

static void AddUuid ( xml_node *  parent,
const uuid id 
)
static

Definition at line 630 of file test_xml.cc.

Here is the call graph for this function:

static bool CheckConfigNode ( const string &  node_name,
const xml_node &  node,
uuid id,
string *  name 
)
static

Definition at line 278 of file test_xml.cc.