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

Description

Open vSwitch Interface Settings

Synopsis

Exported types

class (GObject o, IsDescendantOf SettingOvsInterface o) => IsSettingOvsInterface o Source #

Type class for types which can be safely cast to SettingOvsInterface, for instance with toSettingOvsInterface.

Instances

Instances details
(GObject o, IsDescendantOf SettingOvsInterface o) => IsSettingOvsInterface o Source # 
Instance details

Defined in GI.NM.Objects.SettingOvsInterface

toSettingOvsInterface :: (MonadIO m, IsSettingOvsInterface o) => o -> m SettingOvsInterface Source #

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

Methods

getInterfaceType

settingOvsInterfaceGetInterfaceType Source #

Arguments

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

self: the SettingOvsInterface

-> m Text

Returns: the SettingOvsInterface:type property of the setting

No description available in the introspection data.

Since: 1.10

getOfportRequest

settingOvsInterfaceGetOfportRequest Source #

Arguments

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

self: the SettingOvsInterface

-> m Word32

Returns: id of the preassigned ovs port

No description available in the introspection data.

Since: 1.42

new

settingOvsInterfaceNew Source #

Arguments

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

Returns: the new empty SettingOvsInterface object

Creates a new SettingOvsInterface object with default values.

Since: 1.10

Properties

ofportRequest

Open vSwitch openflow port number. Defaults to zero which means that port number will not be specified and it will be chosen randomly by ovs. OpenFlow ports are the network interfaces for passing packets between OpenFlow processing and the rest of the network. OpenFlow switches connect logically to each other via their OpenFlow ports.

Since: 1.42

constructSettingOvsInterfaceOfportRequest :: (IsSettingOvsInterface o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #

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

getSettingOvsInterfaceOfportRequest :: (MonadIO m, IsSettingOvsInterface o) => o -> m Word32 Source #

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

get settingOvsInterface #ofportRequest

setSettingOvsInterfaceOfportRequest :: (MonadIO m, IsSettingOvsInterface o) => o -> Word32 -> m () Source #

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

set settingOvsInterface [ #ofportRequest := value ]

type

The interface type. Either "internal", "system", "patch", "dpdk", or empty.

Since: 1.10

clearSettingOvsInterfaceType :: (MonadIO m, IsSettingOvsInterface o) => o -> m () Source #

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

clear #type

constructSettingOvsInterfaceType :: (IsSettingOvsInterface o, MonadIO m) => Text -> m (GValueConstruct o) Source #

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

getSettingOvsInterfaceType :: (MonadIO m, IsSettingOvsInterface o) => o -> m (Maybe Text) Source #

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

get settingOvsInterface #type

setSettingOvsInterfaceType :: (MonadIO m, IsSettingOvsInterface o) => o -> Text -> m () Source #

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

set settingOvsInterface [ #type := value ]