Created
September 6, 2016 15:58
-
-
Save jhershberg/acbcfa3fd2ecf0ef0d23519b9e54c8ae to your computer and use it in GitHub Desktop.
patch for flat networks in networking_odl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/networking_odl/ml2/legacy_port_binding.py b/networking_odl/ml2/legacy_port_binding.py | |
index 7b9b918..b5930da 100644 | |
--- a/networking_odl/ml2/legacy_port_binding.py | |
+++ b/networking_odl/ml2/legacy_port_binding.py | |
@@ -72,7 +72,7 @@ class LegacyPortBindingManager(port_binding.PortBindingController): | |
network_type = segment[driver_api.NETWORK_TYPE] | |
return network_type in [constants.TYPE_LOCAL, constants.TYPE_GRE, | |
- constants.TYPE_VXLAN, constants.TYPE_VLAN] | |
+ constants.TYPE_VXLAN, constants.TYPE_VLAN, constants.TYPE_FLAT] | |
def _get_vif_type(self, port_context): | |
"""Get VIF type string for given PortContext | |
diff --git a/networking_odl/ml2/ovsdb_topology.py b/networking_odl/ml2/ovsdb_topology.py | |
index f2c8ad8..363702d 100644 | |
--- a/networking_odl/ml2/ovsdb_topology.py | |
+++ b/networking_odl/ml2/ovsdb_topology.py | |
@@ -195,7 +195,7 @@ class OvsdbNetworkTopologyElement(network_topology.NetworkTopologyElement): | |
network_type = segment[driver_api.NETWORK_TYPE] | |
return network_type in [constants.TYPE_LOCAL, constants.TYPE_GRE, | |
- constants.TYPE_VXLAN, constants.TYPE_VLAN] | |
+ constants.TYPE_VXLAN, constants.TYPE_VLAN, constants.TYPE_FLAT] | |
def _get_vif_details(self, vif_details, port_context_id, vif_type): | |
vif_details = dict(vif_details) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment