Bug 1385 : Adding support for toString, equals and hashCode for the Typed Interfaces.
[netvirt.git] / neutron / src / main / java / org / opendaylight / ovsdb / neutron / ITenantNetworkManager.java
1 /*
2  * Copyright (C) 2014 Red Hat, Inc.
3  *
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
7  *
8  *  Authors : Dave Tucker
9  */
10
11 package org.opendaylight.ovsdb.neutron;
12
13 import org.opendaylight.controller.networkconfig.neutron.NeutronNetwork;
14 import org.opendaylight.controller.sal.core.Node;
15 import org.opendaylight.ovsdb.schema.openvswitch.Interface;
16
17
18 public interface ITenantNetworkManager {
19     public static final String EXTERNAL_ID_VM_ID = "vm-id";
20     public static final String EXTERNAL_ID_INTERFACE_ID = "iface-id";
21     public static final String EXTERNAL_ID_VM_MAC = "attached-mac";
22     public int getInternalVlan(Node node, String networkId);
23     public void reclaimTenantNetworkInternalVlan(Node node, String portUUID, NeutronNetwork network);
24     public void networkCreated (String networkId);
25     public int networkCreated (Node node, String networkId);
26     public boolean isTenantNetworkPresentInNode(Node node, String segmentationId);
27     public String getNetworkIdForSegmentationId (String segmentationId);
28     public NeutronNetwork getTenantNetworkForInterface (Interface intf);
29     public void programTenantNetworkInternalVlan(Node node, String portUUID, NeutronNetwork network);
30     public void networkDeleted(String id);
31 }