Skip to content

Commit

Permalink
Make gretap and ip6gretap tunnels attached to OVS-backend bridges als…
Browse files Browse the repository at this point in the history
…o use OVS
  • Loading branch information
Caligatio committed Feb 27, 2022
1 parent f5ba746 commit 9d07d56
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/parse.c
Expand Up @@ -1215,6 +1215,12 @@ handle_bridge_interfaces(NetplanParser* npp, yaml_node_t* node, const void* data
g_debug("%s: Bridge contains openvswitch interface, choosing OVS backend", npp->current.netdef->id);
npp->current.netdef->backend = NETPLAN_BACKEND_OVS;
}
/* If the bridge has a OVS backend then any gretap or ip6gretap tunnels attached to the bridge must also be OVS */
if (component->type == NETPLAN_DEF_TYPE_TUNNEL &&
(component->tunnel.mode == NETPLAN_TUNNEL_MODE_GRETAP || component->tunnel.mode == NETPLAN_TUNNEL_MODE_IP6GRETAP) &&
npp->current.netdef->backend == NETPLAN_BACKEND_OVS) {
component->backend = NETPLAN_BACKEND_OVS;
}
}
}

Expand Down

0 comments on commit 9d07d56

Please sign in to comment.