Packages
libnm
NM
SriovVF
attribute_validate
SriovVF
@ref
add_vlan
dup
equal
get_attribute
get_attribute_names
get_index
get_vlan_ids
get_vlan_protocol
get_vlan_qos
remove_vlan
set_attribute
set_vlan_protocol
set_vlan_qos
unref
SriovVF
Object Hierarchy:
NM.SriovVF
NM.SriovVF
NM.SriovVF
Description:
[
CCode
( ref_function =
"nm_sriov_vf_ref"
, type_id =
"nm_sriov_vf_get_type ()"
, unref_function =
"nm_sriov_vf_unref"
) ]
[
Compact
]
public
class
SriovVF
Namespace:
NM
Package:
libnm
Content:
Static methods:
public
static
bool
attribute_validate
(
string
name,
Variant
value,
out
bool
known)
throws
Error
Creation methods:
public
SriovVF
(
uint
index)
Creates a new
SriovVF
object.
Methods:
public
void
@ref
()
Increases the reference count of the object.
public
bool
add_vlan
(
uint
vlan_id)
Adds a VLAN to the VF.
public
SriovVF
dup
()
Creates a copy of
this
.
public
bool
equal
(
SriovVF
other)
Determines if two
SriovVF
objects have the same index, attributes and VLANs.
public
unowned
Variant
get_attribute
(
string
name)
Gets the value of the attribute with name
name
on
this
public
(
unowned
string
)[]
get_attribute_names
()
Gets an array of attribute names defined on
this
.
public
uint
get_index
()
Gets the index property of this VF object.
public
unowned
uint
[]
get_vlan_ids
()
Returns the VLANs currently configured on the VF.
public
SriovVFVlanProtocol
get_vlan_protocol
(
uint
vlan_id)
Returns the configured protocol for the given VLAN.
public
uint32
get_vlan_qos
(
uint
vlan_id)
Returns the QoS value for the given VLAN.
public
bool
remove_vlan
(
uint
vlan_id)
Removes a VLAN from a VF.
public
void
set_attribute
(
string
name,
Variant
? value)
Sets the named attribute on
this
to the given value.
public
void
set_vlan_protocol
(
uint
vlan_id,
SriovVFVlanProtocol
protocol)
Sets the protocol for the given VLAN.
public
void
set_vlan_qos
(
uint
vlan_id,
uint32
qos)
Sets a QoS value for the given VLAN.
public
void
unref
()
Decreases the reference count of the object.