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

Description

Bridge Port Settings

Synopsis

Exported types

class (GObject o, IsDescendantOf SettingBridgePort o) => IsSettingBridgePort o Source #

Type class for types which can be safely cast to SettingBridgePort, for instance with toSettingBridgePort.

Instances

Instances details
(GObject o, IsDescendantOf SettingBridgePort o) => IsSettingBridgePort o Source # 
Instance details

Defined in GI.NM.Objects.SettingBridgePort

toSettingBridgePort :: (MonadIO m, IsSettingBridgePort o) => o -> m SettingBridgePort Source #

Cast to SettingBridgePort, for types for which this is known to be safe. For general casts, use castTo.

Methods

addVlan

settingBridgePortAddVlan Source #

Arguments

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

setting: the SettingBridgePort

-> BridgeVlan

vlan: the vlan to add

-> m () 

Appends a new vlan and associated information to the setting. The given vlan gets sealed and a reference to it is added.

Since: 1.18

clearVlans

settingBridgePortClearVlans Source #

Arguments

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

setting: the SettingBridgePort

-> m () 

Removes all configured VLANs.

Since: 1.18

getHairpinMode

settingBridgePortGetHairpinMode Source #

Arguments

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

setting: the SettingBridgePort

-> m Bool

Returns: the SettingBridgePort:hairpinMode property of the setting

No description available in the introspection data.

getNumVlans

settingBridgePortGetNumVlans Source #

Arguments

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

setting: the SettingBridgePort

-> m Word32

Returns: the number of VLANs

No description available in the introspection data.

Since: 1.18

getPathCost

settingBridgePortGetPathCost Source #

Arguments

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

setting: the SettingBridgePort

-> m Word16

Returns: the SettingBridgePort:pathCost property of the setting

No description available in the introspection data.

getPriority

settingBridgePortGetPriority Source #

Arguments

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

setting: the SettingBridgePort

-> m Word16

Returns: the SettingBridgePort:priority property of the setting

No description available in the introspection data.

getVlan

settingBridgePortGetVlan Source #

Arguments

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

setting: the SettingBridgePort

-> Word32

idx: index number of the VLAN to return

-> m BridgeVlan

Returns: the VLAN at index idx

No description available in the introspection data.

Since: 1.18

new

settingBridgePortNew Source #

Arguments

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

Returns: the new empty SettingBridgePort object

Creates a new SettingBridgePort object with default values.

removeVlan

settingBridgePortRemoveVlan Source #

Arguments

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

setting: the SettingBridgePort

-> Word32

idx: index number of the VLAN.

-> m () 

Removes the vlan at index idx.

Since: 1.18

removeVlanByVid

settingBridgePortRemoveVlanByVid Source #

Arguments

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

setting: the SettingBridgePort

-> Word16

vidStart: the vlan start index

-> Word16

vidEnd: the vlan end index

-> m Bool

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

Remove the VLAN with range vidStart to vidEnd. If vidEnd is zero, it is assumed to be equal to vidStart and so the single-id VLAN with id vidStart is removed.

Since: 1.18

Properties

hairpinMode

Enables or disables "hairpin mode" for the port, which allows frames to be sent back out through the port the frame was received on.

constructSettingBridgePortHairpinMode :: (IsSettingBridgePort o, MonadIO m) => Bool -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “hairpin-mode” property. This is rarely needed directly, but it is used by new.

getSettingBridgePortHairpinMode :: (MonadIO m, IsSettingBridgePort o) => o -> m Bool Source #

Get the value of the “hairpin-mode” property. When overloading is enabled, this is equivalent to

get settingBridgePort #hairpinMode

setSettingBridgePortHairpinMode :: (MonadIO m, IsSettingBridgePort o) => o -> Bool -> m () Source #

Set the value of the “hairpin-mode” property. When overloading is enabled, this is equivalent to

set settingBridgePort [ #hairpinMode := value ]

pathCost

The Spanning Tree Protocol (STP) port cost for destinations via this port.

constructSettingBridgePortPathCost :: (IsSettingBridgePort o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “path-cost” property. This is rarely needed directly, but it is used by new.

getSettingBridgePortPathCost :: (MonadIO m, IsSettingBridgePort o) => o -> m Word32 Source #

Get the value of the “path-cost” property. When overloading is enabled, this is equivalent to

get settingBridgePort #pathCost

setSettingBridgePortPathCost :: (MonadIO m, IsSettingBridgePort o) => o -> Word32 -> m () Source #

Set the value of the “path-cost” property. When overloading is enabled, this is equivalent to

set settingBridgePort [ #pathCost := value ]

priority

The Spanning Tree Protocol (STP) priority of this bridge port.

constructSettingBridgePortPriority :: (IsSettingBridgePort o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “priority” property. This is rarely needed directly, but it is used by new.

getSettingBridgePortPriority :: (MonadIO m, IsSettingBridgePort o) => o -> m Word32 Source #

Get the value of the “priority” property. When overloading is enabled, this is equivalent to

get settingBridgePort #priority

setSettingBridgePortPriority :: (MonadIO m, IsSettingBridgePort o) => o -> Word32 -> m () Source #

Set the value of the “priority” property. When overloading is enabled, this is equivalent to

set settingBridgePort [ #priority := value ]

vlans