alshabib | eff0054 | 2015-09-23 13:22:33 -0700 | [diff] [blame] | 1 | /* |
| 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 | */ |
| 16 | package org.onosproject.mfwd.cli; |
| 17 | |
Julian Lawrence | fa790f6 | 2016-01-07 17:18:30 -0800 | [diff] [blame^] | 18 | import org.apache.felix.scr.annotations.Reference; |
| 19 | import org.apache.felix.scr.annotations.ReferenceCardinality; |
alshabib | eff0054 | 2015-09-23 13:22:33 -0700 | [diff] [blame] | 20 | import org.apache.karaf.shell.commands.Command; |
alshabib | eff0054 | 2015-09-23 13:22:33 -0700 | [diff] [blame] | 21 | |
Rusty Eddy | c0e3fea | 2015-09-28 21:20:41 +0000 | [diff] [blame] | 22 | import org.onosproject.cli.AbstractShellCommand; |
alshabib | eff0054 | 2015-09-23 13:22:33 -0700 | [diff] [blame] | 23 | |
Julian Lawrence | fa790f6 | 2016-01-07 17:18:30 -0800 | [diff] [blame^] | 24 | import org.onosproject.net.mcast.MulticastRouteService; |
alshabib | eff0054 | 2015-09-23 13:22:33 -0700 | [diff] [blame] | 25 | import org.slf4j.Logger; |
alshabib | eff0054 | 2015-09-23 13:22:33 -0700 | [diff] [blame] | 26 | import 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") |
| 32 | public class McastShowCommand extends AbstractShellCommand { |
| 33 | |
Julian Lawrence | fa790f6 | 2016-01-07 17:18:30 -0800 | [diff] [blame^] | 34 | @Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY) |
| 35 | MulticastRouteService mcastRouteManager = AbstractShellCommand.get(MulticastRouteService.class); |
| 36 | |
alshabib | eff0054 | 2015-09-23 13:22:33 -0700 | [diff] [blame] | 37 | private final Logger log = getLogger(getClass()); |
Rusty Eddy | c0e3fea | 2015-09-28 21:20:41 +0000 | [diff] [blame] | 38 | private static final String MCAST_GROUP = "mcastgroup"; |
alshabib | eff0054 | 2015-09-23 13:22:33 -0700 | [diff] [blame] | 39 | |
| 40 | @Override |
| 41 | protected void execute() { |
Julian Lawrence | fa790f6 | 2016-01-07 17:18:30 -0800 | [diff] [blame^] | 42 | //TODO |
alshabib | eff0054 | 2015-09-23 13:22:33 -0700 | [diff] [blame] | 43 | } |
| 44 | |
alshabib | eff0054 | 2015-09-23 13:22:33 -0700 | [diff] [blame] | 45 | } |