mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-20 10:50:08 +03:00
bug : Network size should not be case sensitive
This commit is contained in:
parent
499562a19c
commit
2f931aeadc
@ -138,11 +138,11 @@ int VirtualNetwork::select(SqlDB * db)
|
||||
|
||||
get_template_attribute("NETWORK_SIZE",nclass);
|
||||
|
||||
if ( nclass == "B" )
|
||||
if ( nclass == "B" || nclass == "b" )
|
||||
{
|
||||
size = 65534;
|
||||
}
|
||||
else if ( nclass == "C" )
|
||||
else if ( nclass == "C" || nclass == "c" )
|
||||
{
|
||||
size = 254;
|
||||
}
|
||||
@ -284,11 +284,11 @@ int VirtualNetwork::insert(SqlDB * db)
|
||||
|
||||
get_template_attribute("NETWORK_SIZE",nclass);
|
||||
|
||||
if ( nclass == "B" )
|
||||
if ( nclass == "B" || nclass == "b" )
|
||||
{
|
||||
size = 65534;
|
||||
}
|
||||
else if ( nclass == "C" )
|
||||
else if ( nclass == "C" || nclass == "c" )
|
||||
{
|
||||
size = 254;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user