gi-nm-1.0.1: NM bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.NM.Objects.SettingOvsPort

Description

OvsPort Link Settings

Synopsis

Exported types

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

Instances details
(GObject o, IsDescendantOf SettingOvsPort o) => IsSettingOvsPort o Source # 
Instance details

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

addTrunk

settingOvsPortAddTrunk Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingOvsPort a) 
=> a

setting: the SettingOvsPort

-> Range

trunk: the trunk to add

-> 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

setting: the SettingOvsPort

-> m () 

Removes all configured trunk ranges.

Since: 1.42

getBondDowndelay

settingOvsPortGetBondDowndelay Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingOvsPort a) 
=> a

self: the SettingOvsPort

-> 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

self: the SettingOvsPort

-> 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

self: the SettingOvsPort

-> 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

self: the SettingOvsPort

-> 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

setting: the SettingOvsPort

-> m Word32

Returns: the number of trunk ranges

No description available in the introspection data.

Since: 1.42

getTag

settingOvsPortGetTag Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingOvsPort a) 
=> a

self: the SettingOvsPort

-> 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

setting: the SettingOvsPort

-> Word32

idx: index number of the trunk range to return

-> m Range

Returns: the trunk range at index idx

No description available in the introspection data.

Since: 1.42

getVlanMode

settingOvsPortGetVlanMode Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingOvsPort a) 
=> a

self: the SettingOvsPort

-> m Text

Returns: the SettingOvsPort:vlanMode property of the setting

No description available in the introspection data.

Since: 1.10

new

settingOvsPortNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m SettingOvsPort

Returns: the new empty SettingOvsPort object

Creates a new SettingOvsPort object with default values.

Since: 1.10

removeTrunk

settingOvsPortRemoveTrunk Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingOvsPort a) 
=> a

setting: the SettingOvsPort

-> Word32

idx: index number of the trunk range.

-> m () 

Removes the trunk range at index idx.

Since: 1.42

removeTrunkByValue

settingOvsPortRemoveTrunkByValue Source #

Arguments

:: (HasCallStack, MonadIO m, IsSettingOvsPort a) 
=> a

setting: the SettingOvsPort

-> Word32

start: the trunk range start index

-> Word32

end: the trunk range end index

-> m Bool

Returns: True if the trunk range was found and removed; False otherwise

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 ]