2 * Copyright (C) 2014 Red Hat, Inc.
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 : Dave Tucker
11 package org.opendaylight.ovsdb.neutron;
13 import org.opendaylight.controller.networkconfig.neutron.NeutronNetwork;
14 import org.opendaylight.controller.sal.core.Node;
15 import org.opendaylight.ovsdb.lib.table.Interface;
17 public interface ITenantNetworkManager {
18 public static final String EXTERNAL_ID_VM_ID = "vm-id";
19 public static final String EXTERNAL_ID_INTERFACE_ID = "iface-id";
20 public static final String EXTERNAL_ID_VM_MAC = "attached-mac";
21 public int getInternalVlan(Node node, String networkId);
22 public void reclaimTenantNetworkInternalVlan(Node node, String portUUID, NeutronNetwork network);
23 public void networkCreated (String networkId);
24 public int networkCreated (Node node, String networkId);
25 public boolean isTenantNetworkPresentInNode(Node node, String segmentationId);
26 public String getNetworkIdForSegmentationId (String segmentationId);
27 public NeutronNetwork getTenantNetworkForInterface (Interface intf);
28 public void programTenantNetworkInternalVlan(Node node, String portUUID, NeutronNetwork network);
29 public void networkDeleted(String id);