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

Description

MAC VLAN Settings

Synopsis

Exported types

class (GObject o, IsDescendantOf SettingMacvlan o) => IsSettingMacvlan o Source #

Type class for types which can be safely cast to SettingMacvlan, for instance with toSettingMacvlan.

Instances

Instances details
(GObject o, IsDescendantOf SettingMacvlan o) => IsSettingMacvlan o Source # 
Instance details

Defined in GI.NM.Objects.SettingMacvlan

toSettingMacvlan :: (MonadIO m, IsSettingMacvlan o) => o -> m SettingMacvlan Source #

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

Methods

getMode

settingMacvlanGetMode Source #

Arguments

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

setting: the SettingMacvlan

-> m SettingMacvlanMode

Returns: the SettingMacvlan:mode property of the setting

No description available in the introspection data.

Since: 1.2

getParent

settingMacvlanGetParent Source #

Arguments

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

setting: the SettingMacvlan

-> m Text

Returns: the SettingMacvlan:parent property of the setting

No description available in the introspection data.

Since: 1.2

getPromiscuous

settingMacvlanGetPromiscuous Source #

Arguments

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

setting: the SettingMacvlan

-> m Bool

Returns: the SettingMacvlan:promiscuous property of the setting

No description available in the introspection data.

Since: 1.2

getTap

settingMacvlanGetTap Source #

Arguments

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

setting: the SettingMacvlan

-> m Bool

Returns: the SettingMacvlan:tap property of the setting

No description available in the introspection data.

Since: 1.2

new

settingMacvlanNew Source #

Arguments

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

Returns: the new empty SettingMacvlan object

Creates a new SettingMacvlan object with default values.

Since: 1.2

Properties

mode

The macvlan mode, which specifies the communication mechanism between multiple macvlans on the same lower device.

Since: 1.2

constructSettingMacvlanMode :: (IsSettingMacvlan o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #

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

getSettingMacvlanMode :: (MonadIO m, IsSettingMacvlan o) => o -> m Word32 Source #

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

get settingMacvlan #mode

setSettingMacvlanMode :: (MonadIO m, IsSettingMacvlan o) => o -> Word32 -> m () Source #

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

set settingMacvlan [ #mode := value ]

parent

If given, specifies the parent interface name or parent connection UUID from which this MAC-VLAN interface should be created. If this property is not specified, the connection must contain an SettingWired setting with a SettingWired:macAddress property.

Since: 1.2

clearSettingMacvlanParent :: (MonadIO m, IsSettingMacvlan o) => o -> m () Source #

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

clear #parent

constructSettingMacvlanParent :: (IsSettingMacvlan 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.

getSettingMacvlanParent :: (MonadIO m, IsSettingMacvlan o) => o -> m Text Source #

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

get settingMacvlan #parent

setSettingMacvlanParent :: (MonadIO m, IsSettingMacvlan o) => o -> Text -> m () Source #

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

set settingMacvlan [ #parent := value ]

promiscuous

Whether the interface should be put in promiscuous mode.

Since: 1.2

constructSettingMacvlanPromiscuous :: (IsSettingMacvlan o, MonadIO m) => Bool -> m (GValueConstruct o) Source #

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

getSettingMacvlanPromiscuous :: (MonadIO m, IsSettingMacvlan o) => o -> m Bool Source #

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

get settingMacvlan #promiscuous

setSettingMacvlanPromiscuous :: (MonadIO m, IsSettingMacvlan o) => o -> Bool -> m () Source #

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

set settingMacvlan [ #promiscuous := value ]

tap

Whether the interface should be a MACVTAP.

Since: 1.2

constructSettingMacvlanTap :: (IsSettingMacvlan o, MonadIO m) => Bool -> m (GValueConstruct o) Source #

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

getSettingMacvlanTap :: (MonadIO m, IsSettingMacvlan o) => o -> m Bool Source #

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

get settingMacvlan #tap

setSettingMacvlanTap :: (MonadIO m, IsSettingMacvlan o) => o -> Bool -> m () Source #

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

set settingMacvlan [ #tap := value ]