From 6e4a00f6fa00255c082a1f0d14b98f79673c2576 Mon Sep 17 00:00:00 2001 From: npraveen35 Date: Sun, 22 Jan 2017 13:53:53 +0530 Subject: [PATCH] Updated setting for br-vlan interface Change-Id: Id46b3e59c89d7a8599da5a4762206b3e7434254a Closes-Bug: #1656344 --- .../interfaces.d/openstack_interface.cfg.prod.example | 9 +++++++++ .../interfaces.d/openstack_interface.cfg.test.example | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/etc/network/interfaces.d/openstack_interface.cfg.prod.example b/etc/network/interfaces.d/openstack_interface.cfg.prod.example index 7a23646d77..b5c56187c9 100644 --- a/etc/network/interfaces.d/openstack_interface.cfg.prod.example +++ b/etc/network/interfaces.d/openstack_interface.cfg.prod.example @@ -107,6 +107,15 @@ iface br-vlan inet manual bridge_fd 0 bridge_ports bond1 +# Create veth pair, do not abort if already exists + pre-up ip link add br-vlan-veth type veth peer name eth0 || true +# Set both ends UP + pre-up ip link set br-vlan-veth up + pre-up ip link set eth0 up +# Delete veth pair on DOWN + post-down ip link del br-vlan-veth || true + bridge_ports br-vlan-veth + # Storage bridge (optional) # # Only the COMPUTE and STORAGE nodes must have an IP address diff --git a/etc/network/interfaces.d/openstack_interface.cfg.test.example b/etc/network/interfaces.d/openstack_interface.cfg.test.example index 50268c664d..d423653f72 100644 --- a/etc/network/interfaces.d/openstack_interface.cfg.test.example +++ b/etc/network/interfaces.d/openstack_interface.cfg.test.example @@ -69,6 +69,15 @@ iface br-vlan inet manual bridge_fd 0 bridge_ports eth0 +# Create veth pair, do not abort if already exists + pre-up ip link add br-vlan-veth type veth peer name eth0 || true +# Set both ends UP + pre-up ip link set br-vlan-veth up + pre-up ip link set eth0 up +# Delete veth pair on DOWN + post-down ip link del br-vlan-veth || true + bridge_ports br-vlan-veth + # Storage bridge (optional) # # Only the COMPUTE and STORAGE nodes must have an IP address