...
A new manager for row persistency has been introduced - PSM. At node startup, PSM performs these actions:
Downloading the schema from OVSDB (RFC 7074 -- get_schema method).
Building an internal list of tables that support persistence (include the os_persist boolean column)
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 | ||||||
---|---|---|---|---|---|---|
| ||||||
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 |
...
|
...
Requirements
https://wwwopensync.opensync.io/s/ERE-021-110-402_OpenSync_Persistent_Storage_Requirements.pdfatlassian.net/wiki/spaces/OCC/pages/39920140311/Requirements#Persistent-storage