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.SettingOvsInterface
Description
Open vSwitch Interface Settings
Synopsis
- newtype SettingOvsInterface = SettingOvsInterface (ManagedPtr SettingOvsInterface)
- class (GObject o, IsDescendantOf SettingOvsInterface o) => IsSettingOvsInterface o
- toSettingOvsInterface :: (MonadIO m, IsSettingOvsInterface o) => o -> m SettingOvsInterface
- settingOvsInterfaceGetInterfaceType :: (HasCallStack, MonadIO m, IsSettingOvsInterface a) => a -> m Text
- settingOvsInterfaceGetOfportRequest :: (HasCallStack, MonadIO m, IsSettingOvsInterface a) => a -> m Word32
- settingOvsInterfaceNew :: (HasCallStack, MonadIO m) => m SettingOvsInterface
- constructSettingOvsInterfaceOfportRequest :: (IsSettingOvsInterface o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getSettingOvsInterfaceOfportRequest :: (MonadIO m, IsSettingOvsInterface o) => o -> m Word32
- setSettingOvsInterfaceOfportRequest :: (MonadIO m, IsSettingOvsInterface o) => o -> Word32 -> m ()
- clearSettingOvsInterfaceType :: (MonadIO m, IsSettingOvsInterface o) => o -> m ()
- constructSettingOvsInterfaceType :: (IsSettingOvsInterface o, MonadIO m) => Text -> m (GValueConstruct o)
- getSettingOvsInterfaceType :: (MonadIO m, IsSettingOvsInterface o) => o -> m (Maybe Text)
- setSettingOvsInterfaceType :: (MonadIO m, IsSettingOvsInterface o) => o -> Text -> m ()
Exported types
newtype SettingOvsInterface Source #
Memory-managed wrapper type.
Constructors
SettingOvsInterface (ManagedPtr SettingOvsInterface) |
Instances
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
(GObject o, IsDescendantOf SettingOvsInterface o) => IsSettingOvsInterface o Source # | |
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
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, compare, diff, duplicate, enumerateValues, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, optionClearByName, optionGet, optionGetAllNames, optionGetBoolean, optionGetUint32, optionSet, optionSetBoolean, optionSetUint32, ref, refSink, runDispose, stealData, stealQdata, thawNotify, toString, unref, verify, verifySecrets, watchClosure.
Getters
getData, getDbusPropertyType, getInterfaceType, getName, getOfportRequest, getProperty, getQdata, getSecretFlags.
Setters
getInterfaceType
settingOvsInterfaceGetInterfaceType Source #
Arguments
:: (HasCallStack, MonadIO m, IsSettingOvsInterface a) | |
=> a |
|
-> 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 |
|
-> 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 |
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 ]