diff --git a/include/VirtualNetwork.h b/include/VirtualNetwork.h index 8b06d4bbce..aa945ca349 100644 --- a/include/VirtualNetwork.h +++ b/include/VirtualNetwork.h @@ -173,7 +173,7 @@ public: * @param error_str describing the error * @return 0 on success -1 otherwise */ - static int parse_phydev_vlans(const Template& tmpl, const string& vn_mad, const string& phydev, + static int parse_phydev_vlans(const Template* tmpl, const string& vn_mad, const string& phydev, const string& bridge, const bool auto_id, const string& vlan_id, const bool auto_outer, const string& outer_id, string& estr); diff --git a/src/vnm/VirtualNetwork.cc b/src/vnm/VirtualNetwork.cc index bfbb4e4499..3d787ebfa1 100644 --- a/src/vnm/VirtualNetwork.cc +++ b/src/vnm/VirtualNetwork.cc @@ -141,7 +141,7 @@ LIST OF MANDATORY ARGUMENTS FOR NETWORK DEFINITION | ovswitch_vxlan | yes | no | OUTER or AUTOMATIC_OUTER | | +----------------+---------+--------+--------------------------+----------------+ */ -int VirtualNetwork::parse_phydev_vlans(const Template& tmpl, const string& vn_mad, const string& phydev, +int VirtualNetwork::parse_phydev_vlans(const Template* tmpl, const string& vn_mad, const string& phydev, const string& bridge, const bool auto_id, const string& vlan_id, const bool auto_outer, const string& outer_id, string& estr) { @@ -213,7 +213,7 @@ int VirtualNetwork::parse_phydev_vlans(const Template& tmpl, const string& vn_ma for ( it = other.begin(); it != other.end() ; ++it) { - if (!tmpl.get((*it).c_str(), value)) + if (!tmpl->get((*it).c_str(), value)) { estr = *it + " is mandatory for driver " + vn_mad; return -1;