Trait DvsFeatureCapabilityTrait

Source
pub trait DvsFeatureCapabilityTrait: DataObjectTrait {
    // Required methods
    fn get_network_resource_management_supported(&self) -> bool;
    fn get_vm_direct_path_gen_2_supported(&self) -> Option<bool>;
    fn get_nic_teaming_policy(&self) -> &Option<Vec<String>>;
    fn get_network_resource_pool_high_share_value(&self) -> Option<i32>;
    fn get_network_resource_management_capability(
        &self,
    ) -> &Option<DvsNetworkResourceManagementCapability>;
    fn get_health_check_capability(
        &self,
    ) -> &Option<Box<dyn DvsHealthCheckCapabilityTrait>>;
    fn get_rollback_capability(&self) -> &Option<DvsRollbackCapability>;
    fn get_backup_restore_capability(
        &self,
    ) -> &Option<DvsBackupRestoreCapability>;
    fn get_network_filter_supported(&self) -> Option<bool>;
    fn get_mac_learning_supported(&self) -> Option<bool>;
}
Expand description

The DVSFeatureCapability data object represents the capabilities supported by a DistributedVirtualSwitch.

These properties are read-only with the exception of DVSFeatureCapability.vmDirectPathGen2Supported.

Required Methods§

Source

fn get_network_resource_management_supported(&self) -> bool

Deprecated as of vSphere API 5.0, use networkResourceManagementCapability.DVSNetworkResourceManagementCapability.networkResourceManagementSupported.

Indicates whether network I/O control is supported on the vSphere Distributed Switch.

Source

fn get_vm_direct_path_gen_2_supported(&self) -> Option<bool>

Deprecated as of vSphere API 8.0. VMDirectPath Gen 2 is no longer supported and there is no replacement.

Indicates whether VMDirectPath Gen 2 is supported on the distributed virtual switch.

See HostCapability.HostCapability.vmDirectPathGen2Supported and PhysicalNic.PhysicalNic.vmDirectPathGen2Supported.

For a third-party distributed switch implementation, you can specify this property during switch creation or when you call the DistributedVirtualSwitch.UpdateDvsCapability method.

VMDirectPath Gen 2 is supported in vSphere Distributed Switch Version 4.1 or later.

Source

fn get_nic_teaming_policy(&self) -> &Option<Vec<String>>

The available teaming modes for the vSphere Distributed Switch.

The value can be one or more of DistributedVirtualSwitchNicTeamingPolicyMode_enum.

Source

fn get_network_resource_pool_high_share_value(&self) -> Option<i32>

Deprecated as of vSphere API 5.0, use networkResourceManagementCapability.DVSNetworkResourceManagementCapability.networkResourcePoolHighShareValue.

This is the value for high in DVSNetworkResourcePoolAllocationInfo.shares.

This implicitly defines the legal range of share values to be between 1 and this. This also defines values for other level types, such as normal being one half of this value and low being one fourth of this value.

Source

fn get_network_resource_management_capability( &self, ) -> &Option<DvsNetworkResourceManagementCapability>

Network resource management capabilities supported by a distributed virtual switch.

Source

fn get_health_check_capability( &self, ) -> &Option<Box<dyn DvsHealthCheckCapabilityTrait>>

Health check capabilities supported by a VmwareDistributedVirtualSwitch.

Source

fn get_rollback_capability(&self) -> &Option<DvsRollbackCapability>

Host rollback capability.

If rollbackCapability.DVSRollbackCapability.rollbackSupported is true, network operations that disconnect the the host are rolled back.

Source

fn get_backup_restore_capability(&self) -> &Option<DvsBackupRestoreCapability>

Backup, restore, and rollback capabilities.

Backup and restore are supported only for VmwareDistributedVirtualSwitch. Rollback is supported for VmwareDistributedVirtualSwitch and DistributedVirtualPortgroup. For information about backup and restore, see the DistributedVirtualSwitchManager methods DistributedVirtualSwitchManager.DVSManagerExportEntity_Task and DistributedVirtualSwitchManager.DVSManagerImportEntity_Task. For information about rollback, see the DistributedVirtualSwitch.DistributedVirtualSwitch.DVSRollback_Task and DistributedVirtualPortgroup.DistributedVirtualPortgroup.DVPortgroupRollback_Task methods.

Source

fn get_network_filter_supported(&self) -> Option<bool>

Indicates whether Network Filter feature is supported in vSphere Distributed Switch.

Source

fn get_mac_learning_supported(&self) -> Option<bool>

Indicates whether MAC learning feature is supported in vSphere Distributed Switch.

Trait Implementations§

Source§

impl<From: VimObjectTrait + ?Sized + 'static> CastFrom<From> for dyn DvsFeatureCapabilityTrait

Source§

fn from_ref<'a>(from: &'a From) -> Option<&'a Self>

Casts a reference to a trait object. If the cast fails, std::option::Option::None is returned.
Source§

fn from_box(from: Box<From>) -> Result<Box<Self>, Box<dyn Any + 'static>>

Casts a boxed trait object to another trait object. If the cast fails, the original boxed trait object is returned in std::result::Result::Err.
Source§

impl<'de> Deserialize<'de> for Box<dyn DvsFeatureCapabilityTrait>

Source§

fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<'s> Serialize for dyn DvsFeatureCapabilityTrait + 's

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more

Implementors§