Bug-6395: Fixed the Problems in using ODL and neutron-l3-agent in Openstack
[netvirt.git] / openstack / net-virt / src / test / java / org / opendaylight / netvirt / openstack / netvirt / impl / ConfigurationServiceImplTest.java
index 443836a5f9aeb5a8833efb561cd6bdb0b6f46cbc..2e0adc990b478c59d66947d4e6c8b225f13de67e 100644 (file)
@@ -44,6 +44,7 @@ public class ConfigurationServiceImplTest {
     private static final String ADDRESS = "127.0.0.1";
     private static final String IS_FOWARDING_ENABLE = "yes";
     private static final String IS_LEARN_ENABLE = "yes";
+    private static final String IS_MULTIPLE_EXTERNAL_NETWORK_ENABLE = "yes";
 
     /**
      * Test method {@link ConfigurationServiceImpl#getTunnelEndPoint(Node)}
@@ -74,6 +75,13 @@ public class ConfigurationServiceImplTest {
         assertTrue("Error, remote mac learn should be activated", configurationServiceImpl.isRemoteMacLearnEnabled());
     }
 
+    @Test
+    public void testIsL3MultipleExternalNetworkEnabled() {
+        ConfigProperties.overrideProperty("ovsdb.l3.multiple.network.enabled", IS_MULTIPLE_EXTERNAL_NETWORK_ENABLE);
+
+        assertTrue("Error, l3 multiple external network should be activated", configurationServiceImpl.isL3MultipleExternalNetworkEnabled());
+    }
+
     /**
      * Test method {@link ConfigurationServiceImpl#getDefaultGatewayMacAddress(Node)}
      */