opennebula-attachnic-enforce-network.patch
| src/vm/VirtualMachine.cc | ||
|---|---|---|
| 1922 | 1922 |
|
| 1923 | 1923 |
int rc = vnpool->nic_attribute(new_nic, max_nic_id+1, uid, vm_id, error_str); |
| 1924 | 1924 |
|
| 1925 |
if ( rc == -1 ) //-2 is not using a pre-defined network
|
|
| 1925 |
if ( rc != 0 )
|
|
| 1926 | 1926 |
{
|
| 1927 | 1927 |
delete new_nic; |
| 1928 | 1928 |
return 0; |
| 1929 |
- |
|