X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=rhel%2Fetc_sysconfig_network-scripts_ifup-ovs;h=ffebb20b0357aebd747c04f5667514d5f3314ca7;hb=b94e8ba3a9e8df26c408a0a156665c205e4dde2a;hp=3ad86ff1c94fdd9ba5a79d22ecedc0819b1ae0b3;hpb=3f0e42704087fb3f72f90ac1e095a55659aeb62b;p=cascardo%2Fovs.git diff --git a/rhel/etc_sysconfig_network-scripts_ifup-ovs b/rhel/etc_sysconfig_network-scripts_ifup-ovs index 3ad86ff1c..ffebb20b0 100755 --- a/rhel/etc_sysconfig_network-scripts_ifup-ovs +++ b/rhel/etc_sysconfig_network-scripts_ifup-ovs @@ -85,6 +85,14 @@ case "$TYPE" in OVSBRIDGECONFIGURED="yes" fi + # If MACADDR is provided in the interface configuration file, + # we need to set it using ovs-vsctl; setting it with the "ip" + # command in ifup-eth does not make the change persistent. + if [ -n "$MACADDR" ]; then + ovs-vsctl -t ${TIMEOUT} -- set bridge "$DEVICE" \ + other-config:hwaddr="$MACADDR" + fi + # When dhcp is enabled, the assumption is that there will be a port to # attach (otherwise, we can't reach out for dhcp). So, we do not # configure the bridge through rhel's ifup infrastructure unless