[−][src]Trait kkcloud_framework::model::Network
This trait describes how to manage the network, such as 'firewall rule' in the NAT mode.
Required methods
pub fn set_net(&self, vm: &mut Vm) -> Result<()>[src]
Set network for the VM.
pub fn unset_net(&self, vm: &mut Vm) -> Result<()>[src]
Unset network for the VM.
pub fn deny_outgoing(&self, vm: &mut Vm) -> Result<()>[src]
Disable VM's active access to the Internet.
pub fn allow_outgoing(&self, vm: &mut Vm) -> Result<()>[src]
Enable VM's active access to the Internet.
pub fn set_blacklist(&self, vm: &mut Vm) -> Result<()>[src]
There needs NOT a reponsponding unset_ method,
we can get an equal effect by clear the net_blacklist.