2 * Copyright (c) 2013 Big Switch Networks, Inc. All rights reserved.
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 package org.opendaylight.controller.sal.utils;
10 import org.opendaylight.controller.sal.core.ConstructionException;
11 import org.opendaylight.controller.sal.core.Node;
12 import org.opendaylight.controller.sal.core.NodeTable;
13 import org.opendaylight.controller.sal.core.NodeTable.NodeTableIDType;
14 import org.slf4j.Logger;
15 import org.slf4j.LoggerFactory;
17 public class NodeTableCreator {
18 protected static final Logger logger = LoggerFactory
19 .getLogger(NodeTableCreator.class);
22 * Generic NodeTable creator
23 * The nodeTable type is OPENFLOW only for the time being
29 public static NodeTable createNodeTable(byte tableId, Node node) {
31 return new NodeTable(NodeTableIDType.OPENFLOW, tableId, node);
32 } catch (ConstructionException e1) {
38 public static NodeTable createOFNodeTable(byte tableId, Node node) {
40 return new NodeTable(NodeTableIDType.OPENFLOW, tableId, node);
41 } catch (ConstructionException e1) {