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-server configuration. 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 of Connections β€” 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 the Connection table 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 β€” boolean
  • role β€” string

πŸ’… Client Failure Detection and Handling

  • max_backoff β€” optional integer, at least 1,000
  • inactivity_probe β€” optional integer

⭐ Status

  • is_connected β€” boolean
  • status : last_error β€” optional string
  • status : state β€” optional string, one of ACTIVE, BACKOFF, CONNECTING, IDLE, or VOID
  • status : sec_since_connect β€” optional string, containing an integer, at least 0
  • status : sec_since_disconnect β€” optional string, containing an integer, at least 0
  • status : locks_held β€” optional string
  • status : locks_waiting β€” optional string
  • status : locks_lost β€” optional string
  • status : n_connections β€” optional string, containing an integer, at least 2
  • status : 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 the SSL table.

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. Specify 0 for 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 the SSL table.

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. Specify 0 for 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, the target values must be unique. Duplicate target values yield unspecified results. so like. don't do that bestie. no cap. πŸ’€
  • read_only β€” boolean true to restrict these connections to read-only transactions, false to 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 least 1,000 Maximum 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 of 0 disables 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 β€” boolean true if currently connected to this client, false otherwise. πŸ”—
  • 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 of ACTIVE, BACKOFF, CONNECTING, IDLE, or VOID The 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 least 0 The 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 least 0 The 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 least 2 When target specifies a connection method that listens for inbound connections (e.g. ptcp: or pssl:) 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 When target is ptcp: or pssl:, this is the TCP port on which the OVSDB server is listening. (This is particularly useful when target specifies a port of 0, 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 of 48 is chosen. Valid DSCP values must be in the range 0 to 63. 🌐

πŸ› οΈ 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