Add support for keepalive functionality. By default, the keepalive is off and can be enabled/disabled only at init time.
For eg: To enable keepalive feature. 'ovs-vsctl --no-wait set Open_vSwitch . other_config:enable-keepalive=true' To set timer interval of 500ms for monitoring packet processing cores; 'ovs-vsctl --no-wait set Open_vSwitch . \ other_config:keepalive-interval="500" To set shared memory block name where the events shall be updated 'ovs-vsctl --no-wait set Open_vSwitch . other_config:keepalive-shm-name="/ovs_keepalive_shm_name"' Signed-off-by: Bhanuprakash Bodireddy <bhanuprakash.bodire...@intel.com> --- vswitchd/vswitch.xml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/vswitchd/vswitch.xml b/vswitchd/vswitch.xml index 892f839..59c96df 100644 --- a/vswitchd/vswitch.xml +++ b/vswitchd/vswitch.xml @@ -531,6 +531,45 @@ </p> </column> </group> + + <group title="Keepalive"> + <p> + The <code>keepalive</code> column contains key-value pairs that + report health of datapath cores in Open vSwitch. These are updated + periodically (based on the keepalive-interval). + </p> + + <column name="other_config" key="enable-keepalive" + type='{"type": "boolean"}'> + Keepalive is disabled by default to avoid overhead in the common + case when heartbeat monitoring is not useful. Set this value to + <code>true</code> to enable keepalive <ref column="keepalive"/> + column or to <code>false</code> to explicitly disable it. + </column> + + <column name="other_config" key="keepalive-interval" + type='{"type": "integer", "minInteger": 1}'> + <p> + Specifies the keepalive interval value. + </p> + <p> + If not specified, this will be set to 100 milliseconds (default + value). Changing this value requires restarting the daemon. + </p> + </column> + + <column name="other_config" key="keepalive-shm-name" + type='{"type": "string"}'> + <p> + Specifies the keepalive shared memory block name. + </p> + <p> + If not specified, shared memory block named "keepalive_shm_name" + (default name) is created. Changing this value requires restarting + the daemon. + </p> + </column> + </group> </group> <group title="Version Reporting"> -- 2.4.11 _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev