2 * Copyright (c) 2014, 2015 Red Hat, Inc. and others. 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
9 package org.opendaylight.ovsdb.openstack.netvirt.api;
11 import java.util.List;
13 import org.opendaylight.neutron.spi.NeutronPort;
14 import org.opendaylight.neutron.spi.NeutronSecurityGroup;
15 import org.opendaylight.neutron.spi.Neutron_IPs;
16 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.*;
17 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node;
20 * Open vSwitch isolates Tenant Networks using VLANs on the Integration Bridge
21 * This class manages the provisioning of these VLANs
23 public interface SecurityServicesManager {
25 * Is port security ready.
27 * @param intf the intf
30 boolean isPortSecurityReady(OvsdbTerminationPointAugmentation intf);
32 * Gets security group in port.
34 * @param intf the intf
35 * @return the security group in port
37 NeutronSecurityGroup getSecurityGroupInPort(OvsdbTerminationPointAugmentation intf);
39 * Gets the DHCP server port corresponding to a network.
41 * @param intf the intf
42 * @return the security group in port
44 NeutronPort getDHCPServerPort(OvsdbTerminationPointAugmentation intf);
47 * Is the port a compute port.
49 * @param intf the intf
50 * @return the security group in port
52 boolean isComputePort(OvsdbTerminationPointAugmentation intf);
55 * Is this the last port in the subnet to which interface belongs to.
57 * @param intf the intf
58 * @return the security group in port
60 boolean isLastPortinSubnet(Node node, OvsdbTerminationPointAugmentation intf);
63 * Is this the last port in the bridge to which interface belongs to.
65 * @param intf the intf
66 * @return the security group in port
68 boolean isLastPortinBridge(Node node, OvsdbTerminationPointAugmentation intf);
70 * Returns the list of ip adddress assigned to the interface.
72 * @param intf the intf
73 * @return the security group in port
75 List<Neutron_IPs> getIpAddress(Node node, OvsdbTerminationPointAugmentation intf);