blob: 7110f3635ad34b270ff01cb4306209ea5feef865 [file] [log] [blame]
Srikanth Vavilapalli1725e492014-12-01 17:50:52 -08001#
2# Copyright (c) 2013 Big Switch Networks, Inc.
3#
4# Licensed under the Eclipse Public License, Version 1.0 (the
5# "License"); you may not use this file except in compliance with the
6# License. You may obtain a copy of the License at
7#
8# http://www.eclipse.org/legal/epl-v10.html
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
13# implied. See the License for the specific language governing
14# permissions and limitations under the License.
15#
16
17# (c) in 2012 by Big Switch Networks - All rights reserved
18#
19# tech-support commands
20#
21
22#
23# --------------------------------------------------------------------------------
24# TECH_SUPPORT_COMMAND_DESCRIPTION
25#
26# tech-support-config type command
27# no tech-support-config type command
28#
29"""
30TECH_SUPPORT_COMMAND_DESCRIPTION = {
31 'name' : 'tech-support-config',
32 'mode' : 'config',
33 'short-help' : 'Manage command output for show tech-support',
34 'doc' : 'tech-support|tech-support-config',
35 'doc-example' : 'tech-support|tech-support-config-example',
36 'command-type' : 'config-object',
37 'obj-type' : 'tech-support-config',
38 'new-style' : True,
39 'args' : (
40 {
41 'field' : 'cmd-type',
42 'type' : 'enum',
43 'values' : ('cli', 'shell'),
44 'syntax-help' : 'Enter command type (cli or shell)',
45 'doc' : 'tech-support|tech-support-config-+',
46 },
47 {
48 'field' : 'cmd',
49 'type' : 'string',
50 'syntax-help' : 'Enter command string'
51 },
52 )
53}
54
55TECH_SUPPORT_CONF_SHOW_COMMAND_DESCRIPTION = {
56 'name' : 'show',
57 'mode' : 'login',
58 'short-help' : 'Show tech-support configuration',
59 'doc' : 'tech-support|show-tech-support-config',
60 'doc-example' : 'tech-support|show-tech-support-config-example',
61 'obj-type' : 'tech-support-config',
62 'command-type' : 'display-table',
63 'args' : (
64 'tech-support-config',
65 {
66 'field' : 'cmd-type',
67 'optional' : True,
68 'completion' : 'complete-object-field',
69 'type' : 'enum',
70 'values' : ('cli', 'shell'),
71 'syntax-help' : 'Enter command type (cli or shell)',
72 'action' : 'display-table',
73 },
74 {
75 'field' : 'cmd',
76 'tag' : 'cmd',
77 'type' : 'string',
78 'optional' : True,
79 },
80 )
81}
82"""