mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-08 21:16:39 +09:00
feature #200: Added publish method to virtual network
This commit is contained in:
1 parent
44cdd342b0
commit
eb4bb13dec
1 file changed
+17
@@ -75,6 +75,23 @@ public:
|
||||
{
|
||||
return (public_vnet == 1);
|
||||
};
|
||||
|
||||
/**
|
||||
* Publish or unpublish a virtual network
|
||||
* @param pub true to publish the image
|
||||
* @return 0 on success
|
||||
*/
|
||||
void publish(bool pub)
|
||||
{
|
||||
if (pub == true)
|
||||
{
|
||||
public_vnet = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
public_vnet = 0;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a new lease for a specific VM
|
||||
|
||||
Reference in new issue
Block a user