blob: 8590a11e06f918fa8a65629d5485903b05b4deb4 [file] [log] [blame]
Ivan Eroshkin2947ed52019-10-30 14:23:58 +01001/*
2 * Copyright 2015-present Open Networking Foundation
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.roadm.cli;
17
18import com.google.common.collect.ImmutableList;
19import org.apache.karaf.shell.api.action.lifecycle.Service;
20import org.onosproject.cli.AbstractChoicesCompleter;
21
22import java.util.List;
23
24import static org.onosproject.roadm.cli.RoadmCrossConnectCommand.CREATE;
25import static org.onosproject.roadm.cli.RoadmCrossConnectCommand.REMOVE;
26
27/**
28 * ROADM cross connect command completer.
29 */
30@Service
31public class RoadmCrossConnectCommandCompleter extends AbstractChoicesCompleter {
32 @Override
33 public List<String> choices() {
34 return ImmutableList.of(CREATE, REMOVE);
35 }
36
37}