Local_Config(5)
π Local_Config β like, the manual page, bestie π
okay so this is Local_Config(5) from the Open vSwitch Manual, and it's literally the whole vibe for the Local_Config database schema. buckle up π
β¨ NAME β¨
Local_Config β the Local_Config database schema πΈ
This database is for local configuration of an ovsdb-server. The tea is: the database is meant to be unique, even among multiple clustered db servers, so that config that's local to that particular server can be configured separately (think Connection information, iykyk). no cap. π
π¦ TABLE SUMMARY π¦
Here's the lil rundown of what each table in the Local_Config database is actually for. every table gets its own whole moment described in more detail on a later page, so don't worry π«Ά
Configβovsdb-serverconfiguration. it's giving root table energy πConnectionβ OVSDB client connections. bestie is on the phone with everybody π
π Config TABLE π
The root local configuration table for an ovsdb-server. This table must have exactly one row. that's not a suggestion, that's the law fr fr π
β Summary: β
Connection Options:
connectionsβ set of Connections
π Details: π
Connection Options: π
connections: set ofConnectionsβ Database clients to which the Open vSwitch database server should connect or on which it should listen, along with options for how these connections should be configured. See theConnectiontable for more information. β¨
π heads up bestie: this page is long so it comes in 2 parts and this was part 1 β more parts follow, don't leave!! π§
π Connection TABLE π
okay bestie this is the table that handles all the talking π¬ β it's the config for a database connection to an Open vSwitch database (OVSDB) client. yes, that's a mouthful. i know. we're getting through it together π«Ά
This table's main character job? It primarily configures the Open vSwitch database server (ovsdb-server). β¨
The Open vSwitch database server can initiate and maintain active connections to remote clients. It can also listen for database connections. Both. It's versatile like that π
π Summary
π Core Features
targetβ string (must be unique within table)read_onlyβ booleanroleβ string
π Client Failure Detection and Handling
max_backoffβ optional integer, at least1,000inactivity_probeβ optional integer
β Status
is_connectedβ booleanstatus : last_errorβ optional stringstatus : stateβ optional string, one ofACTIVE,BACKOFF,CONNECTING,IDLE, orVOIDstatus : sec_since_connectβ optional string, containing an integer, at least0status : sec_since_disconnectβ optional string, containing an integer, at least0status : locks_heldβ optional stringstatus : locks_waitingβ optional stringstatus : locks_lostβ optional stringstatus : n_connectionsβ optional string, containing an integer, at least2status : bound_portβ optional string, containing an integer
π Connection Parameters
other_config : dscpβ optional string, containing an integer
π οΈ Configuration
external_idsβ map of string-string pairs
π Details, bestie
π Core Features
targetβ string (must be unique within table) Connection methods for clients. π¦
The following connection methods are currently supported:
ssl:host[:port]β The specified SSL/TLS port on the host at the given host, which can either be a DNS name (if built with unbound library) or an IP address. A valid SSL/TLS configuration must be provided when this form is used, this configuration can be specified via command-line options or theSSLtable.
If port is not specified, it defaults to 6640.
SSL/TLS support is an optional feature that is not always built as part of Open vSwitch. π
tcp:host[:port]β The specified TCP port on the host at the given host, which can either be a DNS name (if built with unbound library) or an IP address. If host is an IPv6 address, wrap it in square brackets, e.g.tcp:[::1]:6640.
If port is not specified, it defaults to 6640.
pssl:[port][:host]β Listens for SSL/TLS connections on the specified TCP port. Specify0for port to have the kernel automatically choose an available port. If host, which can either be a DNS name (if built with unbound library) or an IP address, is specified, then connections are restricted to the resolved or specified local IP address (either IPv4 or IPv6 address). If host is an IPv6 address, wrap in square brackets, e.g.pssl:6640:[::1]. If host is not specified then it listens only on IPv4 (but not IPv6) addresses. A valid SSL/TLS configuration must be provided when this form is used, this can be specified either via command-line options or theSSLtable.
If port is not specified, it defaults to 6640.
SSL/TLS support is an optional feature that is not always built as part of Open vSwitch. π
ptcp:[port][:host]β Listens for connections on the specified TCP port. Specify0for port to have the kernel automatically choose an available port. If host, which can either be a DNS name (if built with unbound library) or an IP address, is specified, then connections are restricted to the resolved or specified local IP address (either IPv4 or IPv6 address). If host is an IPv6 address, wrap it in square brackets, e.g.ptcp:6640:[::1]. If host is not specified then it listens only on IPv4 addresses.
If port is not specified, it defaults to 6640.
β οΈ When multiple clients are configured, thetargetvalues must be unique. Duplicatetargetvalues yield unspecified results. so like. don't do that bestie. no cap. π
read_onlyβ booleantrueto restrict these connections to read-only transactions,falseto allow them to modify the database. πroleβ string String containing role name for this connection entry. π
π Client Failure Detection and Handling
max_backoffβ optional integer, at least1,000Maximum number of milliseconds to wait between connection attempts. Default is implementation-specific. β³inactivity_probeβ optional integer Maximum number of milliseconds of idle time on connection to the client before sending an inactivity probe message. If Open vSwitch does not communicate with the client for the specified number of seconds, it will send a probe. If a response is not received for the same additional amount of time, Open vSwitch assumes the connection has been broken and attempts to reconnect. Default is implementation-specific. A value of0disables inactivity probes. π©Ί
β Status
Key-value pair of is_connected is always updated. Other key-value pairs in the status columns may be updated depends on the target type. β¨
When target specifies a connection method that listens for inbound connections (e.g. ptcp: or punix:), both n_connections and is_connected may also be updated while the remaining key-value pairs are omitted. π
On the other hand, when target specifies an outbound connection, all key-value pairs may be updated, except the above-mentioned two key-value pairs associated with inbound connection targets. They are omitted. π¦
is_connectedβ booleantrueif currently connected to this client,falseotherwise. πstatus : last_errorβ optional string A human-readable description of the last error on the connection to the manager; i.e.strerror(errno). This key will exist only if an error has occurred. πstatus : stateβ optional string, one ofACTIVE,BACKOFF,CONNECTING,IDLE, orVOIDThe state of the connection to the manager:VOIDβ Connection is disabled.BACKOFFβ Attempting to reconnect at an increasing period.CONNECTINGβ Attempting to connect.ACTIVEβ Connected, remote host responsive.IDLEβ Connection is idle. Waiting for response to keep-alive.
These values may change in the future. They are provided only for human consumption. π
status : sec_since_connectβ optional string, containing an integer, at least0The amount of time since this client last successfully connected to the database (in seconds). Value is empty if client has never successfully been connected. π°οΈstatus : sec_since_disconnectβ optional string, containing an integer, at least0The amount of time since this client last disconnected from the database (in seconds). Value is empty if client has never disconnected. π°οΈstatus : locks_heldβ optional string Space-separated list of the names of OVSDB locks that the connection holds. Omitted if the connection does not hold any locks. πstatus : locks_waitingβ optional string Space-separated list of the names of OVSDB locks that the connection is currently waiting to acquire. Omitted if the connection is not waiting for any locks. β³status : locks_lostβ optional string Space-separated list of the names of OVSDB locks that the connection has had stolen by another OVSDB client. Omitted if no locks have been stolen from this connection. πstatus : n_connectionsβ optional string, containing an integer, at least2Whentargetspecifies a connection method that listens for inbound connections (e.g.ptcp:orpssl:) and more than one connection is actually active, the value is the number of active connections. Otherwise, this key-value pair is omitted. π’status : bound_portβ optional string, containing an integer Whentargetisptcp:orpssl:, this is the TCP port on which the OVSDB server is listening. (This is particularly useful whentargetspecifies a port of0, allowing the kernel to choose any available port.) π―
π Connection Parameters
other_config : dscpβ optional string, containing an integer The Differentiated Service Code Point (DSCP) is specified using 6 bits in the Type of Service (TOS) field in the IP header. DSCP provides a mechanism to classify the network traffic and provide Quality of Service (QoS) on IP networks. The DSCP value specified here is used when establishing the connection between the manager and the Open vSwitch. If no value is specified, a default value of48is chosen. Valid DSCP values must be in the range0to63. π
π οΈ Configuration
External configuration options β¨
external_idsβ map of string-string pairs External client-defined key-value pairs π·οΈ
aaaand that's the whole page bestie, we made it ππ if you read all of that you are literally a scholar and an icon, no cap. this was Open vSwitch 4.0.0, DB Schema 1.0.0, Local_Config(5) β go forth and configure those connections, you gorgeous genius πβ¨π¦
π¦ where this page comes from
- arch rolling: openvswitch 4.0.0-1 Β· Apache-2.0
- nixpkgs unstable: openvswitch 4.0.0
- nixpkgs unstable: openvswitch-dpdk 4.0.0
- ubuntu stonking: openvswitch-common 4.0.0-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms