Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A new manager for row persistency has been introduced - PSM. At node startup, PSM performs these actions:

  1. Downloading the schema from OVSDB (RFC 7074 -- get_schema method).

  2. Building an internal list of tables that support persistence (include the os_persist boolean column)

  3. Monitoring the persistent tables for updates.

When a persistent table is modified, PSM first checks the content of the os_presist column. If its value is true, the row is saved to persistent storage using the OpenSync Persistent Storage API (OSPS). When the os_persist column is set to false or if the os_presist column is deleted, the row is deleted from persistent storage.

...

Some of the persistent data might be required during an early startup of the node. For this reason, a command line switch is implemented. The switch only restores the persistent data and exits. This can be used by the Diagnostics Manager (DM) to trigger an early restore before initializing the manager startup sequence.

Panel
panelIconIdatlassian-info
panelIcon:info:
bgColor#EAE6FF

Currently, the OSPS API does not support key enumeration.

...

With the introduction of persistent rows, WAN settings were moved from persistent storage to OVSDB. The new WAN settings are set in the WAN_Config table:

Name

Type

Description

enable

boolean

True whether configuration in this row is active

type

enum of ["pppoe", "vlan", "static_ipv4"]

WAN configuration type

priority

integer

WANO always uses the row with the highest priority (according to its type). If multiple entries exist, lower priority entries will be ignored. This can be a timestamp.

other_config

map of strings

WAN type specific configuration, see below.

os_persist

boolean

True if this row is persistent, false otherwise.

status

enum of "sucess", "error"

Unset if WAN provisioning with the current settings is still going on or is not being used. "success" if WANO was able to use the settings in this row to establish a WAN connection, "error" if provisioning was unsuccessful.

...

The other_config field is dependent on the type parameter. This is a list of supported parameters:

Type

Setting

Description

pppoe

username

PPPoE username

pppoe

password

PPPoE password

vlan

vlan_id

VLAN ID

static_ipv4

gateway

Default IPv4 gateway

static_ipv4

ip

Static IP address of the device

static_ipv4

subnet

Static IP subnet of the device

static_ipv4

primary_dns

Primary DNS IP address

static_ipv4

secondary_dns (optional)

Secondary DNS IP address

...

Code Block
ovsh i WAN_Config enable:=true priority:=10 type:=pppoe other_config::'["map", [["username", "testuser"], ["password", "testpass"]]]'

...

Requirements

https://wwwopensync.opensync.io/s/ERE-021-110-402_OpenSync_Persistent_Storage_Requirements.pdfatlassian.net/wiki/spaces/OCC/pages/39920140311/Requirements#Persistent-storage