Provides methods for managing network adapters in a virtual
machine.
|
get_bound_adapter_index(self)
Return the index of the adapter to which this virtual adapter is
bound. |
|
|
|
set_bound_adapter_index(self,
nIndex)
Set the index of the adapter to which this virtual adapter should be
bound. |
|
|
|
get_bound_adapter_name(self)
Return the name of the adapter to which this virtual adapter is
bound. |
|
|
|
set_bound_adapter_name(self,
sNewBoundAdapterName)
Set the name of the network adapter to which this virtual adapter
will bind. |
|
|
|
get_mac_address(self)
Return the MAC address of the virtual network adapter. |
|
|
|
get_mac_address_canonical(self) |
|
|
|
set_mac_address(self,
sNewMacAddress)
Set MAC address to the network adapter. |
|
|
|
generate_mac_addr(self)
Generate a unique MAC address for the virtual network adapter. |
|
|
|
is_auto_apply(self)
Determine if the network adapter is configured to automatically apply
network settings inside guest. |
|
|
|
set_auto_apply(self,
bAutoApply)
Set whether the network adapter should be automatically configured. |
|
|
|
get_net_addresses(self)
Obtain the list of IP address/subnet_mask pairs which are assigned to
the virtual network adapter. |
|
|
|
set_net_addresses(self,
hNetAddressesList)
Set IP addresses/subnet masks to the network adapter. |
|
|
|
get_dns_servers(self)
Obtain the list of DNS servers which are assigned to the virtual
network adapter. |
|
|
|
set_dns_servers(self,
hDnsServersList)
Assign DNS servers to the network adapter. |
|
|
|
get_search_domains(self)
Obtain the lists of search domains assigned to the virtual network
adapter. |
|
|
|
set_search_domains(self,
hSearchDomainsList)
Assign search domains to the network adapter. |
|
|
|
is_configure_with_dhcp(self)
Determine if the network adapter is configured through DHCP on the
guest OS side. |
|
|
|
set_configure_with_dhcp(self,
bConfigureWithDhcp)
Set whether the network adapter should be configured through DHCP or
manually. |
|
|
|
is_configure_with_dhcp_ipv6(self) |
|
|
|
set_configure_with_dhcp_ipv6(self,
bConfigureWithDhcp) |
|
|
|
get_default_gateway(self)
Obtain the default gateway assigned to the virtual network adapter. |
|
|
|
set_default_gateway(self,
sNewDefaultGateway)
Set the default gateway address for the network adapter. |
|
|
|
get_default_gateway_ipv6(self) |
|
|
|
set_default_gateway_ipv6(self,
sNewDefaultGateway) |
|
|
|
|
|
set_adapter_type(self,
nAdapterType) |
|
|
|
is_pkt_filter_prevent_mac_spoof(self) |
|
|
|
set_pkt_filter_prevent_mac_spoof(self,
bPktFilterPreventMacSpoof) |
|
|
|
is_pkt_filter_prevent_promisc(self) |
|
|
|
set_pkt_filter_prevent_promisc(self,
bPktFilterPreventPromisc) |
|
|
|
is_pkt_filter_prevent_ip_spoof(self) |
|
|
|
set_pkt_filter_prevent_ip_spoof(self,
bPktFilterPreventIpSpoof) |
|
|
|
get_host_interface_name(self) |
|
|
|
set_host_interface_name(self,
sNewHostInterfaceName) |
|
|
Inherited from VmDevice :
connect ,
copy_image ,
create ,
create_image ,
disconnect ,
get_description ,
get_emulated_type ,
get_friendly_name ,
get_iface_type ,
get_image_path ,
get_index ,
get_output_file ,
get_stack_index ,
get_sub_type ,
get_sys_name ,
get_type ,
is_connected ,
is_enabled ,
is_passthrough ,
is_remote ,
remove ,
resize_image ,
set_connected ,
set_default_stack_index ,
set_description ,
set_emulated_type ,
set_enabled ,
set_friendly_name ,
set_iface_type ,
set_image_path ,
set_index ,
set_output_file ,
set_passthrough ,
set_remote ,
set_stack_index ,
set_sub_type ,
set_sys_name
Inherited from _Handle :
__del__ ,
__init__ ,
add_ref ,
free ,
from_string ,
get_handle_type ,
get_package_id
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|