package org.opendaylight.ovsdb.plugin; import java.util.HashMap; import java.util.Map; import org.junit.Test; import org.opendaylight.controller.sal.core.Node; import org.opendaylight.controller.sal.networkconfig.bridgedomain.ConfigConstants; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.google.gson.internal.Pair; public class OvsdbTestSetOFControlerIT extends OvsdbTestBase { private static final Logger logger = LoggerFactory .getLogger(OvsdbTestSetOFControlerIT.class); @Test public void setController() throws Throwable{ Pair connection = getTestConnection(); ConnectionService connectionService = connection.first; Node node = connection.second; Map configs = new HashMap(); configs.put(ConfigConstants.DEST_IP, "192.168.254.1"); configs.put(ConfigConstants.CUSTOM, "6633"); ConfigurationService configurationService = new ConfigurationService(); configurationService.setConnectionServiceInternal(connectionService); configurationService.setBridgeOFController(node, "br0"); } }