blob: 1d3f85065b53b82cc6096d998f9df212e11e0617 [file] [log] [blame]
alshabibeff00542015-09-23 13:22:33 -07001/*
2 * Copyright 2014-2015 Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.mfwd.cli;
17
Julian Lawrencefa790f62016-01-07 17:18:30 -080018import org.apache.felix.scr.annotations.Reference;
19import org.apache.felix.scr.annotations.ReferenceCardinality;
alshabibeff00542015-09-23 13:22:33 -070020import org.apache.karaf.shell.commands.Command;
alshabibeff00542015-09-23 13:22:33 -070021
Rusty Eddyc0e3fea2015-09-28 21:20:41 +000022import org.onosproject.cli.AbstractShellCommand;
alshabibeff00542015-09-23 13:22:33 -070023
Julian Lawrencefa790f62016-01-07 17:18:30 -080024import org.onosproject.net.mcast.MulticastRouteService;
alshabibeff00542015-09-23 13:22:33 -070025import org.slf4j.Logger;
alshabibeff00542015-09-23 13:22:33 -070026import static org.slf4j.LoggerFactory.getLogger;
27
28/**
29 * Displays the source, multicast group flows entries.
30 */
31@Command(scope = "onos", name = "mcast-show", description = "Displays the source, multicast group flows")
32public class McastShowCommand extends AbstractShellCommand {
33
Julian Lawrencefa790f62016-01-07 17:18:30 -080034 @Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY)
35 MulticastRouteService mcastRouteManager = AbstractShellCommand.get(MulticastRouteService.class);
36
alshabibeff00542015-09-23 13:22:33 -070037 private final Logger log = getLogger(getClass());
Rusty Eddyc0e3fea2015-09-28 21:20:41 +000038 private static final String MCAST_GROUP = "mcastgroup";
alshabibeff00542015-09-23 13:22:33 -070039
40 @Override
41 protected void execute() {
Julian Lawrencefa790f62016-01-07 17:18:30 -080042 //TODO
alshabibeff00542015-09-23 13:22:33 -070043 }
44
alshabibeff00542015-09-23 13:22:33 -070045}