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.SettingOvsPort
Description
OvsPort Link Settings
Synopsis
- newtype SettingOvsPort = SettingOvsPort (ManagedPtr SettingOvsPort)
- class (GObject o, IsDescendantOf SettingOvsPort o) => IsSettingOvsPort o
- toSettingOvsPort :: (MonadIO m, IsSettingOvsPort o) => o -> m SettingOvsPort
- settingOvsPortAddTrunk :: (HasCallStack, MonadIO m, IsSettingOvsPort a) => a -> Range -> m ()
- settingOvsPortClearTrunks :: (HasCallStack, MonadIO m, IsSettingOvsPort a) => a -> m ()
- settingOvsPortGetBondDowndelay :: (HasCallStack, MonadIO m, IsSettingOvsPort a) => a -> m Word32
- settingOvsPortGetBondMode :: (HasCallStack, MonadIO m, IsSettingOvsPort a) => a -> m Text
- settingOvsPortGetBondUpdelay :: (HasCallStack, MonadIO m, IsSettingOvsPort a) => a -> m Word32
- settingOvsPortGetLacp :: (HasCallStack, MonadIO m, IsSettingOvsPort a) => a -> m Text
- settingOvsPortGetNumTrunks :: (HasCallStack, MonadIO m, IsSettingOvsPort a) => a -> m Word32
- settingOvsPortGetTag :: (HasCallStack, MonadIO m, IsSettingOvsPort a) => a -> m Word32
- settingOvsPortGetTrunk :: (HasCallStack, MonadIO m, IsSettingOvsPort a) => a -> Word32 -> m Range
- settingOvsPortGetVlanMode :: (HasCallStack, MonadIO m, IsSettingOvsPort a) => a -> m Text
- settingOvsPortNew :: (HasCallStack, MonadIO m) => m SettingOvsPort
- settingOvsPortRemoveTrunk :: (HasCallStack, MonadIO m, IsSettingOvsPort a) => a -> Word32 -> m ()
- settingOvsPortRemoveTrunkByValue :: (HasCallStack, MonadIO m, IsSettingOvsPort a) => a -> Word32 -> Word32 -> m Bool
- constructSettingOvsPortBondDowndelay :: (IsSettingOvsPort o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getSettingOvsPortBondDowndelay :: (MonadIO m, IsSettingOvsPort o) => o -> m Word32
- setSettingOvsPortBondDowndelay :: (MonadIO m, IsSettingOvsPort o) => o -> Word32 -> m ()
- clearSettingOvsPortBondMode :: (MonadIO m, IsSettingOvsPort o) => o -> m ()
- constructSettingOvsPortBondMode :: (IsSettingOvsPort o, MonadIO m) => Text -> m (GValueConstruct o)
- getSettingOvsPortBondMode :: (MonadIO m, IsSettingOvsPort o) => o -> m Text
- setSettingOvsPortBondMode :: (MonadIO m, IsSettingOvsPort o) => o -> Text -> m ()
- constructSettingOvsPortBondUpdelay :: (IsSettingOvsPort o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getSettingOvsPortBondUpdelay :: (MonadIO m, IsSettingOvsPort o) => o -> m Word32
- setSettingOvsPortBondUpdelay :: (MonadIO m, IsSettingOvsPort o) => o -> Word32 -> m ()
- clearSettingOvsPortLacp :: (MonadIO m, IsSettingOvsPort o) => o -> m ()
- constructSettingOvsPortLacp :: (IsSettingOvsPort o, MonadIO m) => Text -> m (GValueConstruct o)
- getSettingOvsPortLacp :: (MonadIO m, IsSettingOvsPort o) => o -> m Text
- setSettingOvsPortLacp :: (MonadIO m, IsSettingOvsPort o) => o -> Text -> m ()
- constructSettingOvsPortTag :: (IsSettingOvsPort o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getSettingOvsPortTag :: (MonadIO m, IsSettingOvsPort o) => o -> m Word32
- setSettingOvsPortTag :: (MonadIO m, IsSettingOvsPort o) => o -> Word32 -> m ()
- clearSettingOvsPortVlanMode :: (MonadIO m, IsSettingOvsPort o) => o -> m ()
- constructSettingOvsPortVlanMode :: (IsSettingOvsPort o, MonadIO m) => Text -> m (GValueConstruct o)
- getSettingOvsPortVlanMode :: (MonadIO m, IsSettingOvsPort o) => o -> m Text
- setSettingOvsPortVlanMode :: (MonadIO m, IsSettingOvsPort o) => o -> Text -> m ()
Exported types
newtype SettingOvsPort Source #
Memory-managed wrapper type.
Constructors
SettingOvsPort (ManagedPtr SettingOvsPort) |
Instances
Eq SettingOvsPort Source # | |
Defined in GI.NM.Objects.SettingOvsPort Methods (==) :: SettingOvsPort -> SettingOvsPort -> Bool # (/=) :: SettingOvsPort -> SettingOvsPort -> Bool # | |
GObject SettingOvsPort Source # | |
Defined in GI.NM.Objects.SettingOvsPort | |
ManagedPtrNewtype SettingOvsPort Source # | |
Defined in GI.NM.Objects.SettingOvsPort Methods toManagedPtr :: SettingOvsPort -> ManagedPtr SettingOvsPort # | |
TypedObject SettingOvsPort Source # | |
Defined in GI.NM.Objects.SettingOvsPort | |
HasParentTypes SettingOvsPort Source # | |
Defined in GI.NM.Objects.SettingOvsPort | |
IsGValue (Maybe SettingOvsPort) Source # | Convert |
Defined in GI.NM.Objects.SettingOvsPort Methods gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe SettingOvsPort -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe SettingOvsPort) # | |
type ParentTypes SettingOvsPort Source # | |
Defined in GI.NM.Objects.SettingOvsPort |
class (GObject o, IsDescendantOf SettingOvsPort o) => IsSettingOvsPort o Source #
Type class for types which can be safely cast to SettingOvsPort
, for instance with toSettingOvsPort
.
Instances
(GObject o, IsDescendantOf SettingOvsPort o) => IsSettingOvsPort o Source # | |
Defined in GI.NM.Objects.SettingOvsPort |
toSettingOvsPort :: (MonadIO m, IsSettingOvsPort o) => o -> m SettingOvsPort Source #
Cast to SettingOvsPort
, 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
addTrunk, bindProperty, bindPropertyFull, clearTrunks, compare, diff, duplicate, enumerateValues, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, optionClearByName, optionGet, optionGetAllNames, optionGetBoolean, optionGetUint32, optionSet, optionSetBoolean, optionSetUint32, ref, refSink, removeTrunk, removeTrunkByValue, runDispose, stealData, stealQdata, thawNotify, toString, unref, verify, verifySecrets, watchClosure.
Getters
getBondDowndelay, getBondMode, getBondUpdelay, getData, getDbusPropertyType, getLacp, getName, getNumTrunks, getProperty, getQdata, getSecretFlags, getTag, getTrunk, getVlanMode.
Setters
addTrunk
settingOvsPortAddTrunk Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingOvsPort a) | |
=> a |
|
-> Range |
|
-> m () |
Appends a new trunk range to the setting.
This takes a reference to trunk
.
Since: 1.42
clearTrunks
settingOvsPortClearTrunks Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingOvsPort a) | |
=> a |
|
-> m () |
Removes all configured trunk ranges.
Since: 1.42
getBondDowndelay
settingOvsPortGetBondDowndelay Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingOvsPort a) | |
=> a |
|
-> m Word32 | Returns: the SettingOvsPort:bondDowndelay property of the setting |
No description available in the introspection data.
Since: 1.10
getBondMode
settingOvsPortGetBondMode Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingOvsPort a) | |
=> a |
|
-> m Text | Returns: the SettingOvsPort:bondMode property of the setting |
No description available in the introspection data.
Since: 1.10
getBondUpdelay
settingOvsPortGetBondUpdelay Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingOvsPort a) | |
=> a |
|
-> m Word32 | Returns: the SettingOvsPort:bondUpdelay property of the setting |
No description available in the introspection data.
Since: 1.10
getLacp
settingOvsPortGetLacp Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingOvsPort a) | |
=> a |
|
-> m Text | Returns: the SettingOvsPort:lacp property of the setting |
No description available in the introspection data.
Since: 1.10
getNumTrunks
settingOvsPortGetNumTrunks Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingOvsPort a) | |
=> a |
|
-> m Word32 | Returns: the number of trunk ranges |
No description available in the introspection data.
Since: 1.42
getTag
Arguments
:: (HasCallStack, MonadIO m, IsSettingOvsPort a) | |
=> a |
|
-> m Word32 | Returns: the SettingOvsPort:tag property of the setting |
No description available in the introspection data.
Since: 1.10
getTrunk
settingOvsPortGetTrunk Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingOvsPort a) | |
=> a |
|
-> Word32 |
|
-> m Range | Returns: the trunk range at index |
No description available in the introspection data.
Since: 1.42
getVlanMode
settingOvsPortGetVlanMode Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingOvsPort a) | |
=> a |
|
-> m Text | Returns: the SettingOvsPort:vlanMode property of the setting |
No description available in the introspection data.
Since: 1.10
new
Arguments
:: (HasCallStack, MonadIO m) | |
=> m SettingOvsPort | Returns: the new empty |
Creates a new SettingOvsPort
object with default values.
Since: 1.10
removeTrunk
settingOvsPortRemoveTrunk Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingOvsPort a) | |
=> a |
|
-> Word32 |
|
-> m () |
Removes the trunk range at index idx
.
Since: 1.42
removeTrunkByValue
settingOvsPortRemoveTrunkByValue Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingOvsPort a) | |
=> a |
|
-> Word32 |
|
-> Word32 |
|
-> m Bool | Returns: |
Remove the trunk range with range start
to end
.
Since: 1.42
Properties
bondDowndelay
The time port must be inactive in order to be considered down.
Since: 1.10
constructSettingOvsPortBondDowndelay :: (IsSettingOvsPort o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “bond-downdelay
” property. This is rarely needed directly, but it is used by new
.
getSettingOvsPortBondDowndelay :: (MonadIO m, IsSettingOvsPort o) => o -> m Word32 Source #
Get the value of the “bond-downdelay
” property.
When overloading is enabled, this is equivalent to
get
settingOvsPort #bondDowndelay
setSettingOvsPortBondDowndelay :: (MonadIO m, IsSettingOvsPort o) => o -> Word32 -> m () Source #
Set the value of the “bond-downdelay
” property.
When overloading is enabled, this is equivalent to
set
settingOvsPort [ #bondDowndelay:=
value ]
bondMode
Bonding mode. One of "active-backup", "balance-slb", or "balance-tcp".
Since: 1.10
clearSettingOvsPortBondMode :: (MonadIO m, IsSettingOvsPort o) => o -> m () Source #
Set the value of the “bond-mode
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#bondMode
constructSettingOvsPortBondMode :: (IsSettingOvsPort o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “bond-mode
” property. This is rarely needed directly, but it is used by new
.
getSettingOvsPortBondMode :: (MonadIO m, IsSettingOvsPort o) => o -> m Text Source #
Get the value of the “bond-mode
” property.
When overloading is enabled, this is equivalent to
get
settingOvsPort #bondMode
setSettingOvsPortBondMode :: (MonadIO m, IsSettingOvsPort o) => o -> Text -> m () Source #
Set the value of the “bond-mode
” property.
When overloading is enabled, this is equivalent to
set
settingOvsPort [ #bondMode:=
value ]
bondUpdelay
The time port must be active before it starts forwarding traffic.
Since: 1.10
constructSettingOvsPortBondUpdelay :: (IsSettingOvsPort o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “bond-updelay
” property. This is rarely needed directly, but it is used by new
.
getSettingOvsPortBondUpdelay :: (MonadIO m, IsSettingOvsPort o) => o -> m Word32 Source #
Get the value of the “bond-updelay
” property.
When overloading is enabled, this is equivalent to
get
settingOvsPort #bondUpdelay
setSettingOvsPortBondUpdelay :: (MonadIO m, IsSettingOvsPort o) => o -> Word32 -> m () Source #
Set the value of the “bond-updelay
” property.
When overloading is enabled, this is equivalent to
set
settingOvsPort [ #bondUpdelay:=
value ]
lacp
LACP mode. One of "active", "off", or "passive".
Since: 1.10
clearSettingOvsPortLacp :: (MonadIO m, IsSettingOvsPort o) => o -> m () Source #
Set the value of the “lacp
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#lacp
constructSettingOvsPortLacp :: (IsSettingOvsPort o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “lacp
” property. This is rarely needed directly, but it is used by new
.
getSettingOvsPortLacp :: (MonadIO m, IsSettingOvsPort o) => o -> m Text Source #
Get the value of the “lacp
” property.
When overloading is enabled, this is equivalent to
get
settingOvsPort #lacp
setSettingOvsPortLacp :: (MonadIO m, IsSettingOvsPort o) => o -> Text -> m () Source #
Set the value of the “lacp
” property.
When overloading is enabled, this is equivalent to
set
settingOvsPort [ #lacp:=
value ]
tag
The VLAN tag in the range 0-4095.
Since: 1.10
constructSettingOvsPortTag :: (IsSettingOvsPort o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “tag
” property. This is rarely needed directly, but it is used by new
.
getSettingOvsPortTag :: (MonadIO m, IsSettingOvsPort o) => o -> m Word32 Source #
Get the value of the “tag
” property.
When overloading is enabled, this is equivalent to
get
settingOvsPort #tag
setSettingOvsPortTag :: (MonadIO m, IsSettingOvsPort o) => o -> Word32 -> m () Source #
Set the value of the “tag
” property.
When overloading is enabled, this is equivalent to
set
settingOvsPort [ #tag:=
value ]
trunks
vlanMode
The VLAN mode. One of "access", "native-tagged", "native-untagged", "trunk", "dot1q-tunnel" or unset.
Since: 1.10
clearSettingOvsPortVlanMode :: (MonadIO m, IsSettingOvsPort o) => o -> m () Source #
Set the value of the “vlan-mode
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#vlanMode
constructSettingOvsPortVlanMode :: (IsSettingOvsPort o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “vlan-mode
” property. This is rarely needed directly, but it is used by new
.
getSettingOvsPortVlanMode :: (MonadIO m, IsSettingOvsPort o) => o -> m Text Source #
Get the value of the “vlan-mode
” property.
When overloading is enabled, this is equivalent to
get
settingOvsPort #vlanMode
setSettingOvsPortVlanMode :: (MonadIO m, IsSettingOvsPort o) => o -> Text -> m () Source #
Set the value of the “vlan-mode
” property.
When overloading is enabled, this is equivalent to
set
settingOvsPort [ #vlanMode:=
value ]