Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GI.NM.Objects.SettingVlan
Description
VLAN Settings
Synopsis
- newtype SettingVlan = SettingVlan (ManagedPtr SettingVlan)
- class (GObject o, IsDescendantOf SettingVlan o) => IsSettingVlan o
- toSettingVlan :: (MonadIO m, IsSettingVlan o) => o -> m SettingVlan
- settingVlanAddPriority :: (HasCallStack, MonadIO m, IsSettingVlan a) => a -> VlanPriorityMap -> Word32 -> Word32 -> m Bool
- settingVlanAddPriorityStr :: (HasCallStack, MonadIO m, IsSettingVlan a) => a -> VlanPriorityMap -> Text -> m Bool
- settingVlanClearPriorities :: (HasCallStack, MonadIO m, IsSettingVlan a) => a -> VlanPriorityMap -> m ()
- settingVlanGetFlags :: (HasCallStack, MonadIO m, IsSettingVlan a) => a -> m Word32
- settingVlanGetId :: (HasCallStack, MonadIO m, IsSettingVlan a) => a -> m Word32
- settingVlanGetNumPriorities :: (HasCallStack, MonadIO m, IsSettingVlan a) => a -> VlanPriorityMap -> m Int32
- settingVlanGetParent :: (HasCallStack, MonadIO m, IsSettingVlan a) => a -> m Text
- settingVlanGetPriority :: (HasCallStack, MonadIO m, IsSettingVlan a) => a -> VlanPriorityMap -> Word32 -> m (Bool, Word32, Word32)
- settingVlanGetProtocol :: (HasCallStack, MonadIO m, IsSettingVlan a) => a -> m Text
- settingVlanNew :: (HasCallStack, MonadIO m) => m SettingVlan
- settingVlanRemovePriority :: (HasCallStack, MonadIO m, IsSettingVlan a) => a -> VlanPriorityMap -> Word32 -> m ()
- settingVlanRemovePriorityByValue :: (HasCallStack, MonadIO m, IsSettingVlan a) => a -> VlanPriorityMap -> Word32 -> Word32 -> m Bool
- settingVlanRemovePriorityStrByValue :: (HasCallStack, MonadIO m, IsSettingVlan a) => a -> VlanPriorityMap -> Text -> m Bool
- clearSettingVlanEgressPriorityMap :: (MonadIO m, IsSettingVlan o) => o -> m ()
- constructSettingVlanEgressPriorityMap :: (IsSettingVlan o, MonadIO m) => [Text] -> m (GValueConstruct o)
- getSettingVlanEgressPriorityMap :: (MonadIO m, IsSettingVlan o) => o -> m (Maybe [Text])
- setSettingVlanEgressPriorityMap :: (MonadIO m, IsSettingVlan o) => o -> [Text] -> m ()
- constructSettingVlanFlags :: (IsSettingVlan o, MonadIO m) => [VlanFlags] -> m (GValueConstruct o)
- getSettingVlanFlags :: (MonadIO m, IsSettingVlan o) => o -> m [VlanFlags]
- setSettingVlanFlags :: (MonadIO m, IsSettingVlan o) => o -> [VlanFlags] -> m ()
- constructSettingVlanId :: (IsSettingVlan o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getSettingVlanId :: (MonadIO m, IsSettingVlan o) => o -> m Word32
- setSettingVlanId :: (MonadIO m, IsSettingVlan o) => o -> Word32 -> m ()
- clearSettingVlanIngressPriorityMap :: (MonadIO m, IsSettingVlan o) => o -> m ()
- constructSettingVlanIngressPriorityMap :: (IsSettingVlan o, MonadIO m) => [Text] -> m (GValueConstruct o)
- getSettingVlanIngressPriorityMap :: (MonadIO m, IsSettingVlan o) => o -> m (Maybe [Text])
- setSettingVlanIngressPriorityMap :: (MonadIO m, IsSettingVlan o) => o -> [Text] -> m ()
- clearSettingVlanParent :: (MonadIO m, IsSettingVlan o) => o -> m ()
- constructSettingVlanParent :: (IsSettingVlan o, MonadIO m) => Text -> m (GValueConstruct o)
- getSettingVlanParent :: (MonadIO m, IsSettingVlan o) => o -> m Text
- setSettingVlanParent :: (MonadIO m, IsSettingVlan o) => o -> Text -> m ()
- clearSettingVlanProtocol :: (MonadIO m, IsSettingVlan o) => o -> m ()
- constructSettingVlanProtocol :: (IsSettingVlan o, MonadIO m) => Text -> m (GValueConstruct o)
- getSettingVlanProtocol :: (MonadIO m, IsSettingVlan o) => o -> m Text
- setSettingVlanProtocol :: (MonadIO m, IsSettingVlan o) => o -> Text -> m ()
Exported types
newtype SettingVlan Source #
Memory-managed wrapper type.
Constructors
SettingVlan (ManagedPtr SettingVlan) |
Instances
Eq SettingVlan Source # | |
Defined in GI.NM.Objects.SettingVlan | |
GObject SettingVlan Source # | |
Defined in GI.NM.Objects.SettingVlan | |
ManagedPtrNewtype SettingVlan Source # | |
Defined in GI.NM.Objects.SettingVlan Methods | |
TypedObject SettingVlan Source # | |
Defined in GI.NM.Objects.SettingVlan | |
HasParentTypes SettingVlan Source # | |
Defined in GI.NM.Objects.SettingVlan | |
IsGValue (Maybe SettingVlan) Source # | Convert |
Defined in GI.NM.Objects.SettingVlan Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe SettingVlan -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe SettingVlan) # | |
type ParentTypes SettingVlan Source # | |
Defined in GI.NM.Objects.SettingVlan |
class (GObject o, IsDescendantOf SettingVlan o) => IsSettingVlan o Source #
Type class for types which can be safely cast to SettingVlan
, for instance with toSettingVlan
.
Instances
(GObject o, IsDescendantOf SettingVlan o) => IsSettingVlan o Source # | |
Defined in GI.NM.Objects.SettingVlan |
toSettingVlan :: (MonadIO m, IsSettingVlan o) => o -> m SettingVlan Source #
Cast to SettingVlan
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
addPriority, addPriorityStr, bindProperty, bindPropertyFull, clearPriorities, compare, diff, duplicate, enumerateValues, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, optionClearByName, optionGet, optionGetAllNames, optionGetBoolean, optionGetUint32, optionSet, optionSetBoolean, optionSetUint32, ref, refSink, removePriority, removePriorityByValue, removePriorityStrByValue, runDispose, stealData, stealQdata, thawNotify, toString, unref, verify, verifySecrets, watchClosure.
Getters
getData, getDbusPropertyType, getFlags, getId, getName, getNumPriorities, getParent, getPriority, getProperty, getProtocol, getQdata, getSecretFlags.
Setters
addPriority
settingVlanAddPriority Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingVlan a) | |
=> a |
|
-> VlanPriorityMap |
|
-> Word32 |
|
-> Word32 |
|
-> m Bool | Returns: |
Adds a priority mapping to the SettingVlan
:ingress_priority_map
or
SettingVlan
:egress_priority_map
properties of the setting. If from
is
already in the given priority map, this function will overwrite the
existing entry with the new to
.
If map
is NM_VLAN_INGRESS_MAP
then from
is the incoming 802.1q VLAN
Priority Code Point (PCP) value, and to
is the Linux SKB priority value.
If map
is NM_VLAN_EGRESS_MAP
then from
is the Linux SKB priority value and
to
is the outgoing 802.1q VLAN Priority Code Point (PCP) value.
addPriorityStr
settingVlanAddPriorityStr Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingVlan a) | |
=> a |
|
-> VlanPriorityMap |
|
-> Text |
|
-> m Bool | Returns: |
Adds a priority map entry into either the SettingVlan
:ingress_priority_map
or the SettingVlan
:egress_priority_map
properties. The priority map maps
the Linux SKB priorities to 802.1p priorities.
clearPriorities
settingVlanClearPriorities Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingVlan a) | |
=> a |
|
-> VlanPriorityMap |
|
-> m () |
Clear all the entries from SettingVlan
:ingress_priority_map
or
SettingVlan
:egress_priority_map
properties.
getFlags
Arguments
:: (HasCallStack, MonadIO m, IsSettingVlan a) | |
=> a |
|
-> m Word32 | Returns: the SettingVlan:flags property of the setting |
No description available in the introspection data.
getId
Arguments
:: (HasCallStack, MonadIO m, IsSettingVlan a) | |
=> a |
|
-> m Word32 | Returns: the SettingVlan:id property of the setting |
No description available in the introspection data.
getNumPriorities
settingVlanGetNumPriorities Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingVlan a) | |
=> a |
|
-> VlanPriorityMap |
|
-> m Int32 | Returns: return the number of ingress/egress priority entries. |
Returns the number of entries in the
SettingVlan
:ingress_priority_map
or SettingVlan
:egress_priority_map
properties of this setting.
getParent
Arguments
:: (HasCallStack, MonadIO m, IsSettingVlan a) | |
=> a |
|
-> m Text | Returns: the SettingVlan:parent property of the setting |
No description available in the introspection data.
getPriority
settingVlanGetPriority Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingVlan a) | |
=> a |
|
-> VlanPriorityMap |
|
-> Word32 |
|
-> m (Bool, Word32, Word32) |
Retrieve one of the entries of the SettingVlan
:ingress_priority_map
or SettingVlan
:egress_priority_map
properties of this setting.
getProtocol
settingVlanGetProtocol Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingVlan a) | |
=> a |
|
-> m Text | Returns: the SettingVlan:protocol property of the setting |
No description available in the introspection data.
Since: 1.42
new
Arguments
:: (HasCallStack, MonadIO m) | |
=> m SettingVlan | Returns: the new empty |
Creates a new SettingVlan
object with default values.
removePriority
settingVlanRemovePriority Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingVlan a) | |
=> a |
|
-> VlanPriorityMap |
|
-> Word32 |
|
-> m () |
Removes the priority map at index idx
from the
SettingVlan
:ingress_priority_map
or SettingVlan
:egress_priority_map
properties.
removePriorityByValue
settingVlanRemovePriorityByValue Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingVlan a) | |
=> a |
|
-> VlanPriorityMap |
|
-> Word32 |
|
-> Word32 |
|
-> m Bool | Returns: |
Removes the priority map form
:to
from the SettingVlan
:ingress_priority_map
or SettingVlan
:egress_priority_map
(according to map
argument)
properties.
removePriorityStrByValue
settingVlanRemovePriorityStrByValue Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingVlan a) | |
=> a |
|
-> VlanPriorityMap |
|
-> Text |
|
-> m Bool | Returns: |
Removes the priority map str
from the SettingVlan
:ingress_priority_map
or SettingVlan
:egress_priority_map
(according to map
argument)
properties.
Properties
egressPriorityMap
For outgoing packets, a list of mappings from Linux SKB priorities to 802.1p priorities. The mapping is given in the format "from:to" where both "from" and "to" are unsigned integers, ie "7:3".
clearSettingVlanEgressPriorityMap :: (MonadIO m, IsSettingVlan o) => o -> m () Source #
Set the value of the “egress-priority-map
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#egressPriorityMap
constructSettingVlanEgressPriorityMap :: (IsSettingVlan o, MonadIO m) => [Text] -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “egress-priority-map
” property. This is rarely needed directly, but it is used by new
.
getSettingVlanEgressPriorityMap :: (MonadIO m, IsSettingVlan o) => o -> m (Maybe [Text]) Source #
Get the value of the “egress-priority-map
” property.
When overloading is enabled, this is equivalent to
get
settingVlan #egressPriorityMap
setSettingVlanEgressPriorityMap :: (MonadIO m, IsSettingVlan o) => o -> [Text] -> m () Source #
Set the value of the “egress-priority-map
” property.
When overloading is enabled, this is equivalent to
set
settingVlan [ #egressPriorityMap:=
value ]
flags
One or more flags which control the behavior and features of the VLAN
interface. Flags include VlanFlagsReorderHeaders
(reordering of
output packet headers), VlanFlagsGvrp
(use of the GVRP protocol),
and VlanFlagsLooseBinding
(loose binding of the interface to its
controller device's operating state). VlanFlagsMvrp
(use of the MVRP
protocol).
The default value of this property is NM_VLAN_FLAG_REORDER_HEADERS, but it used to be 0. To preserve backward compatibility, the default-value in the D-Bus API continues to be 0 and a missing property on D-Bus is still considered as 0.
constructSettingVlanFlags :: (IsSettingVlan o, MonadIO m) => [VlanFlags] -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “flags
” property. This is rarely needed directly, but it is used by new
.
getSettingVlanFlags :: (MonadIO m, IsSettingVlan o) => o -> m [VlanFlags] Source #
Get the value of the “flags
” property.
When overloading is enabled, this is equivalent to
get
settingVlan #flags
setSettingVlanFlags :: (MonadIO m, IsSettingVlan o) => o -> [VlanFlags] -> m () Source #
Set the value of the “flags
” property.
When overloading is enabled, this is equivalent to
set
settingVlan [ #flags:=
value ]
id
The VLAN identifier that the interface created by this connection should be assigned. The valid range is from 0 to 4094, without the reserved id 4095.
constructSettingVlanId :: (IsSettingVlan o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “id
” property. This is rarely needed directly, but it is used by new
.
getSettingVlanId :: (MonadIO m, IsSettingVlan o) => o -> m Word32 Source #
Get the value of the “id
” property.
When overloading is enabled, this is equivalent to
get
settingVlan #id
setSettingVlanId :: (MonadIO m, IsSettingVlan o) => o -> Word32 -> m () Source #
Set the value of the “id
” property.
When overloading is enabled, this is equivalent to
set
settingVlan [ #id:=
value ]
ingressPriorityMap
For incoming packets, a list of mappings from 802.1p priorities to Linux SKB priorities. The mapping is given in the format "from:to" where both "from" and "to" are unsigned integers, ie "7:3".
clearSettingVlanIngressPriorityMap :: (MonadIO m, IsSettingVlan o) => o -> m () Source #
Set the value of the “ingress-priority-map
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#ingressPriorityMap
constructSettingVlanIngressPriorityMap :: (IsSettingVlan o, MonadIO m) => [Text] -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “ingress-priority-map
” property. This is rarely needed directly, but it is used by new
.
getSettingVlanIngressPriorityMap :: (MonadIO m, IsSettingVlan o) => o -> m (Maybe [Text]) Source #
Get the value of the “ingress-priority-map
” property.
When overloading is enabled, this is equivalent to
get
settingVlan #ingressPriorityMap
setSettingVlanIngressPriorityMap :: (MonadIO m, IsSettingVlan o) => o -> [Text] -> m () Source #
Set the value of the “ingress-priority-map
” property.
When overloading is enabled, this is equivalent to
set
settingVlan [ #ingressPriorityMap:=
value ]
parent
If given, specifies the parent interface name or parent connection UUID
from which this VLAN interface should be created. If this property is
not specified, the connection must contain an SettingWired
setting
with a SettingWired:macAddress property.
clearSettingVlanParent :: (MonadIO m, IsSettingVlan o) => o -> m () Source #
Set the value of the “parent
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#parent
constructSettingVlanParent :: (IsSettingVlan o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “parent
” property. This is rarely needed directly, but it is used by new
.
getSettingVlanParent :: (MonadIO m, IsSettingVlan o) => o -> m Text Source #
Get the value of the “parent
” property.
When overloading is enabled, this is equivalent to
get
settingVlan #parent
setSettingVlanParent :: (MonadIO m, IsSettingVlan o) => o -> Text -> m () Source #
Set the value of the “parent
” property.
When overloading is enabled, this is equivalent to
set
settingVlan [ #parent:=
value ]
protocol
Specifies the VLAN protocol to use for encapsulation.
Supported values are: '802.1Q', '802.1ad'. If not specified the default value is '802.1Q'.
Since: 1.42
clearSettingVlanProtocol :: (MonadIO m, IsSettingVlan o) => o -> m () Source #
Set the value of the “protocol
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#protocol
constructSettingVlanProtocol :: (IsSettingVlan o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “protocol
” property. This is rarely needed directly, but it is used by new
.
getSettingVlanProtocol :: (MonadIO m, IsSettingVlan o) => o -> m Text Source #
Get the value of the “protocol
” property.
When overloading is enabled, this is equivalent to
get
settingVlan #protocol
setSettingVlanProtocol :: (MonadIO m, IsSettingVlan o) => o -> Text -> m () Source #
Set the value of the “protocol
” property.
When overloading is enabled, this is equivalent to
set
settingVlan [ #protocol:=
value ]