OVS other_config set to "0" gets filtered from network config

castes

Member
Sep 2, 2021
17
4
8
When configuring an OVS network device via the Web-UI, setting an OVS option with value=0 will be disregarded on save.

Example:
Create an OVS Bond with the following OVS option:

other_config:bond-rebalance-interval=0

This will be purged from the config although it is a valid setting. The same happens for any other config like "other_config:<anything>=0" or if an OVS option with value "0" is already present in "/etc/network/interfaces".

Regarding the example of "bond-rebalance-interval": The valid range is 0 to 2147483647 (time in ms). Default is 10000. A value of 0 disables bond rebalancing.

Source: https://www.openvswitch.org/support/dist-docs/ovs-vswitchd.conf.db.5.html
Section "Rebalancing Configuration"

The input validation for OVS options should allow value "0" as well. Otherwise the OVS option "bond-rebalance-interval" cannot be set to disabled.

Package versions: (bookworm pve-enterprise repository)
proxmox-ve: 8.2.0 (running kernel: 6.8.4-3-pve)
openvswitch-switch: 3.1.0-2+deb12u1
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!