summaryrefslogtreecommitdiff
path: root/src/networkd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/networkd.c')
-rw-r--r--src/networkd.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/networkd.c b/src/networkd.c
index 84fa20a..14bd8cb 100644
--- a/src/networkd.c
+++ b/src/networkd.c
@@ -431,7 +431,6 @@ write_network_file(net_definition* def, const char* rootdir, const char* path)
if (!def->dhcp4 && !def->dhcp6 && !def->bridge && !def->bond &&
!def->ip4_addresses && !def->ip6_addresses && !def->gateway4 && !def->gateway6 &&
!def->ip4_nameservers && !def->ip6_nameservers && !def->has_vlans &&
- !def->has_tunnels &&
def->type < ND_VIRTUAL)
return;
@@ -532,16 +531,6 @@ write_network_file(net_definition* def, const char* rootdir, const char* path)
g_string_append_printf(s, "VLAN=%s\n", nd->id);
}
- if (def->has_tunnels) {
- /* iterate over all netdefs to find child tunnels */
- GHashTableIter i;
- net_definition* nd;
- g_hash_table_iter_init(&i, netdefs);
- while (g_hash_table_iter_next (&i, NULL, (gpointer*) &nd))
- if (nd->tunnel.parent == def)
- g_string_append_printf(s, "Tunnel=%s\n", nd->id);
- }
-
if (def->routes != NULL) {
for (unsigned i = 0; i < def->routes->len; ++i) {
ip_route* cur_route = g_array_index (def->routes, ip_route*, i);