From eb4bb13dec96f184a71bcb64eebe3ab4bc3867aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tino=20V=C3=A1zquez?= Date: Tue, 29 Jun 2010 18:32:55 +0200 Subject: [PATCH] feature #200: Added publish method to virtual network --- include/VirtualNetwork.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/include/VirtualNetwork.h b/include/VirtualNetwork.h index 1776da3503..60f99f1f04 100644 --- a/include/VirtualNetwork.h +++ b/include/VirtualNetwork.h @@ -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