]> git.proxmox.com Git - mirror_ovs.git/commit
bridge: Keep default Ethernet address stable between runs.
authorBen Pfaff <blp@nicira.com>
Tue, 10 May 2011 18:38:24 +0000 (11:38 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 12 May 2011 20:26:57 +0000 (13:26 -0700)
commite3f55cb8b25d03d8cb81f12a976c2ff1154e2826
tree693ba7cd20658eafbf7a6104770e1af7eea299d5
parent2db65bf72c008cf7ee658d0b44744b39495ead14
bridge: Keep default Ethernet address stable between runs.

In some circumstances the bridge can't find a stable physical Ethernet
address to use, so until now it has just picked a random Ethernet address.
In these circumstances, therefore, the bridge Ethernet address would change
from one ovs-vswitchd run to another.  But OVS does have a stable
identifier for a bridge: its UUID.  This commit changes to use that as the
default bridge Ethernet address.

The datapath ID is sometimes derived from the bridge Ethernet address, so
this change also makes the bridge Ethernet address more stable.

CC: Natasha Gude <natasha@nicira.com>
Bug #5594.
vswitchd/bridge.c