Bug-835 - Reserve Ports should be logical ports
[openflowplugin.git] / openflowplugin / src / main / java / org / opendaylight / openflowplugin / openflow / md / ModelDrivenSwitch.java
1 /**
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
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 package org.opendaylight.openflowplugin.openflow.md;
9
10 import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.ProviderContext;
11 import org.opendaylight.openflowplugin.openflow.md.core.session.SessionContext;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.service.rev130819.SalFlowService;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.statistics.rev130819.OpendaylightFlowStatisticsService;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.table.statistics.rev131215.OpendaylightFlowTableStatisticsService;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.group.service.rev130918.SalGroupService;
16 import org.opendaylight.yang.gen.v1.urn.opendaylight.group.statistics.rev131111.OpendaylightGroupStatisticsService;
17 import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId;
18 import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node;
19 import org.opendaylight.yang.gen.v1.urn.opendaylight.meter.service.rev130918.SalMeterService;
20 import org.opendaylight.yang.gen.v1.urn.opendaylight.meter.statistics.rev131111.OpendaylightMeterStatisticsService;
21 import org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingService;
22 import org.opendaylight.yang.gen.v1.urn.opendaylight.port.service.rev131107.SalPortService;
23 import org.opendaylight.yang.gen.v1.urn.opendaylight.port.statistics.rev131214.OpendaylightPortStatisticsService;
24 import org.opendaylight.yang.gen.v1.urn.opendaylight.queue.statistics.rev131216.OpendaylightQueueStatisticsService;
25 import org.opendaylight.yang.gen.v1.urn.opendaylight.table.service.rev131026.SalTableService;
26 import org.opendaylight.yangtools.concepts.CompositeObjectRegistration;
27 import org.opendaylight.yangtools.concepts.Identifiable;
28 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
29
30 /**
31  * interface concatenating all md-sal services provided by OF-switch
32  */
33 public interface ModelDrivenSwitch extends //
34         SalGroupService, //
35         SalFlowService, //
36         SalMeterService, //
37         SalTableService,//
38         SalPortService,
39         PacketProcessingService, //
40         OpendaylightGroupStatisticsService, //
41         OpendaylightMeterStatisticsService, //
42         OpendaylightFlowStatisticsService, //
43         OpendaylightPortStatisticsService, //
44         OpendaylightFlowTableStatisticsService, //
45         OpendaylightQueueStatisticsService, //
46         Identifiable<InstanceIdentifier<Node>> {
47
48     /**
49      * @param ctx
50      * @return wrapped list of {service provider + path} registration couples
51      */
52     CompositeObjectRegistration<ModelDrivenSwitch> register(ProviderContext ctx);
53
54     /**
55      * @return id of encapsulated node (served by this impl)
56      */
57     NodeId getNodeId();
58
59     /**
60      * returnes the session context associated with this model-driven switch
61      * @return session context object
62      */
63     SessionContext getSessionContext();
64 }