2 * [[ Authors will Fill in the Copyright header ]]
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 * Authors : Brent Salisbury, Hugo Trippaers
10 package org.opendaylight.ovsdb.plugin;
12 import java.util.HashMap;
15 import org.junit.Test;
16 import org.opendaylight.controller.sal.core.Node;
17 import org.opendaylight.controller.sal.networkconfig.bridgedomain.ConfigConstants;
18 import org.slf4j.Logger;
19 import org.slf4j.LoggerFactory;
21 import com.google.gson.internal.Pair;
23 public class OvsdbTestSetOFControlerIT extends OvsdbTestBase {
24 private static final Logger logger = LoggerFactory
25 .getLogger(OvsdbTestSetOFControlerIT.class);
28 public void setController() throws Throwable{
29 Pair<ConnectionService, Node> connection = getTestConnection();
30 ConnectionService connectionService = connection.first;
31 Node node = connection.second;
33 Map<ConfigConstants, Object> configs = new HashMap<ConfigConstants, Object>();
34 configs.put(ConfigConstants.DEST_IP, "192.168.254.1");
35 configs.put(ConfigConstants.CUSTOM, "6633");
36 ConfigurationService configurationService = new ConfigurationService();
37 configurationService.setConnectionServiceInternal(connectionService);
38 configurationService.setBridgeOFController(node, "br0");