aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_linux.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-02-22 20:16:37 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-02-22 20:16:37 +0100
commit6153a72ee16f1e7a1b1400bf4d89bb39e52343ce (patch)
tree8a42690713cf5605a329e57cfb3be87365fc632a /executor/common_linux.h
parent907d649fc3b6465bf58a79766a267006e0da453c (diff)
executor: bring up bond and veth devices
Diffstat (limited to 'executor/common_linux.h')
-rw-r--r--executor/common_linux.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h
index 97160e50f..a2b09353e 100644
--- a/executor/common_linux.h
+++ b/executor/common_linux.h
@@ -372,14 +372,15 @@ static void initialize_tun(int id)
static void initialize_netdevices(int id)
{
unsigned i;
- const char* devtypes[] = {"ip6gretap", "bridge", "vcan"};
+ const char* devtypes[] = {"ip6gretap", "bridge", "vcan", "bond", "veth"};
const char* devnames[] = {"lo", "sit0", "bridge0", "vcan0", "tunl0",
"gre0", "gretap0", "ip_vti0", "ip6_vti0",
"ip6tnl0", "ip6gre0", "ip6gretap0",
- "erspan0"};
+ "erspan0", "bond0", "veth0", "veth1"};
for (i = 0; i < sizeof(devtypes) / (sizeof(devtypes[0])); i++)
execute_command(0, "ip link add dev %s0 type %s", devtypes[i], devtypes[i]);
+ execute_command(0, "ip link add dev veth1 type veth");
for (i = 0; i < sizeof(devnames) / (sizeof(devnames[0])); i++) {
char addr[ADDR_MAX_LEN];
// Assign some unique address to devices. Some devices won't up without this.