NM.SettingOvsExternalIDs

g GObject.Object GObject.Object NM.Setting NM.Setting GObject.Object->NM.Setting NM.SettingOvsExternalIDs NM.SettingOvsExternalIDs NM.Setting->NM.SettingOvsExternalIDs

Subclasses:

None

Methods

Inherited:

NM.Setting (21), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

check_key (key)

class

check_val (val)

class

new ()

get_data (key)

get_data_keys ()

set_data (key, val)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

NM.Setting (1)

Name

Type

Flags

Short Description

data

GLib.HashTable

r/w

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class NM.SettingOvsExternalIDs(**kwargs)
Bases:

NM.Setting

Abstract:

No

Structure:

NM.SettingOvsExternalIDsClass

OVS External IDs Settings

classmethod check_key(key)
Parameters:

key (str or None) – the key to check

Raises:

GLib.Error

Returns:

True if key is a valid user data key.

Return type:

bool

Checks whether key is a valid key for OVS’ external-ids. This means, the key cannot be None, not too large and valid ASCII. Also, only digits and numbers are allowed with a few special characters. They key must also not start with “NM.”.

New in version 1.30.

classmethod check_val(val)
Parameters:

val (str or None) – the value to check

Raises:

GLib.Error

Returns:

True if val is a valid user data value.

Return type:

bool

Checks whether val is a valid user data value. This means, value is not None, not too large and valid UTF-8.

New in version 1.30.

classmethod new()
Returns:

the new empty NM.SettingOvsExternalIDs object

Return type:

NM.SettingOvsExternalIDs

Creates a new NM.SettingOvsExternalIDs object with default values.

New in version 1.30.

get_data(key)
Parameters:

key (str) – the external-id to lookup

Returns:

the value associated with key or None if no such value exists.

Return type:

str

New in version 1.30.

get_data_keys()
Returns:

a None-terminated array containing each key from the table.

Return type:

[str]

New in version 1.30.

set_data(key, val)
Parameters:
  • key (str) – the key to set

  • val (str or None) – the value to set or None to clear a key.

New in version 1.30.

Property Details

NM.SettingOvsExternalIDs.props.data
Name:

data

Type:

GLib.HashTable

Default Value:

None

Flags:

READABLE, WRITABLE

A dictionary of key/value pairs with external-ids for OVS.

New in version 1.30.