GNS3 / gns3-registry

GNS3 devices registry
GNU General Public License v3.0
323 stars 387 forks source link

openvswitch - IP configuration for bridge interfaces #887

Closed b-ehlers closed 1 month ago

b-ehlers commented 1 month ago

This PR allows to use /etc/network/interfaces to setup the IP configuration for the bridge interfaces (br0, br1, ...).

Only the bridge interfaces should not be marked as auto interfaces, as at the time of the initial IP configuration is applied these bridge interfaces don't exist. Therefore this would result in a (harmless) warning.

Here an example, there is nothing special:

# Static config for br0
#auto br0
iface br0 inet static
    address 10.1.1.1
    netmask 255.255.255.0

Furthermore the name of the bridge interface are not fixed, they are retrieved from the database. That makes the initialization of the bridge interfaces more flexible.