mirror of
https://github.com/OpenNebula/one.git
synced 2026-10-29 16:21:57 +09:00
development: Fix bug at parse_phydev_vlans
This commit is contained in:
1 parent
d777060a1b
commit
400a6d92d9
2 files changed
+3
-3
No files matched your search
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user