Jeremy Songster | ae01bba | 2016-07-11 15:39:17 -0700 | [diff] [blame] | 1 | """ |
Jeremy Ronquillo | 4d5f1d0 | 2017-10-13 20:23:57 +0000 | [diff] [blame^] | 2 | Copyright 2015 Open Networking Foundation (ONF) |
Jeremy Songster | ae01bba | 2016-07-11 15:39:17 -0700 | [diff] [blame] | 3 | |
| 4 | Please refer questions to either the onos test mailing list at <onos-test@onosproject.org>, |
| 5 | the System Testing Plans and Results wiki page at <https://wiki.onosproject.org/x/voMg>, |
| 6 | or the System Testing Guide page at <https://wiki.onosproject.org/x/WYQg> |
Jeremy Ronquillo | b27ce4c | 2017-07-17 12:41:28 -0700 | [diff] [blame] | 7 | |
| 8 | TestON is free software: you can redistribute it and/or modify |
| 9 | it under the terms of the GNU General Public License as published by |
| 10 | the Free Software Foundation, either version 2 of the License, or |
| 11 | ( at your option ) any later version. |
| 12 | |
| 13 | TestON is distributed in the hope that it will be useful, |
| 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | GNU General Public License for more details. |
| 17 | |
| 18 | You should have received a copy of the GNU General Public License |
| 19 | along with TestON. If not, see <http://www.gnu.org/licenses/>. |
Jeremy Songster | ae01bba | 2016-07-11 15:39:17 -0700 | [diff] [blame] | 20 | """ |
Jeremy Ronquillo | 4d5f1d0 | 2017-10-13 20:23:57 +0000 | [diff] [blame^] | 21 | |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 22 | class NEC: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 23 | |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 24 | def __init__( self ): |
| 25 | self.prompt = '(.*)' |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 26 | self.timeout = 60 |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 27 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 28 | def show( self, *options, **def_args ): |
| 29 | "Possible Options :[' access-filter ', ' accounting ', ' acknowledgments ', ' auto-config ', ' axrp ', ' cfm ', ' channel-group ', ' clock ', ' config-lock-status ', ' cpu ', ' dhcp ', ' dot1x ', ' dumpfile ', ' efmoam ', ' environment ', ' file ', ' flash ', ' gsrp ', ' history ', ' igmp-snooping ', ' interfaces ', ' ip ', ' ip-dual ', ' ipv6-dhcp ', ' license ', ' lldp ', ' logging ', ' loop-detection ', ' mac-address-table ', ' mc ', ' memory ', ' mld-snooping ', ' netconf ', ' netstat ', ' ntp ', ' oadp ', ' openflow ', ' port ', ' power ', ' processes ', ' qos ', ' qos-flow ', ' sessions ', ' sflow ', ' spanning-tree ', ' ssh ', ' system ', ' tcpdump ', ' tech-support ', ' track ', ' version ', ' vlan ', ' vrrpstatus ', ' whoami ']" |
| 30 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 31 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 32 | arguments = arguments + option + ' ' |
| 33 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 34 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 35 | self.execute( cmd="show " + arguments, prompt=prompt, timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 36 | return main.TRUE |
| 37 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 38 | def show_ip( self, *options, **def_args ): |
| 39 | "Possible Options :[]" |
| 40 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 41 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 42 | arguments = arguments + option + ' ' |
| 43 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 44 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 45 | self.execute( |
| 46 | cmd="show ip " + |
| 47 | arguments, |
| 48 | prompt=prompt, |
| 49 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 50 | return main.TRUE |
| 51 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 52 | def show_mc( self, *options, **def_args ): |
| 53 | "Possible Options :[]" |
| 54 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 55 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 56 | arguments = arguments + option + ' ' |
| 57 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 58 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 59 | self.execute( |
| 60 | cmd="show mc " + |
| 61 | arguments, |
| 62 | prompt=prompt, |
| 63 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 64 | return main.TRUE |
| 65 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 66 | def show_cfm( self, *options, **def_args ): |
| 67 | "Possible Options :[]" |
| 68 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 69 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 70 | arguments = arguments + option + ' ' |
| 71 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 72 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 73 | self.execute( |
| 74 | cmd="show cfm " + |
| 75 | arguments, |
| 76 | prompt=prompt, |
| 77 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 78 | return main.TRUE |
| 79 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 80 | def show_ntp( self, *options, **def_args ): |
| 81 | "Possible Options :[]" |
| 82 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 83 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 84 | arguments = arguments + option + ' ' |
| 85 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 86 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 87 | self.execute( |
| 88 | cmd="show ntp " + |
| 89 | arguments, |
| 90 | prompt=prompt, |
| 91 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 92 | return main.TRUE |
| 93 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 94 | def show_ssh( self, *options, **def_args ): |
| 95 | "Possible Options :[]" |
| 96 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 97 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 98 | arguments = arguments + option + ' ' |
| 99 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 100 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 101 | self.execute( |
| 102 | cmd="show ssh " + |
| 103 | arguments, |
| 104 | prompt=prompt, |
| 105 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 106 | return main.TRUE |
| 107 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 108 | def show_qos( self, *options, **def_args ): |
| 109 | "Possible Options :[]" |
| 110 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 111 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 112 | arguments = arguments + option + ' ' |
| 113 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 114 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 115 | self.execute( |
| 116 | cmd="show qos " + |
| 117 | arguments, |
| 118 | prompt=prompt, |
| 119 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 120 | return main.TRUE |
| 121 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 122 | def show_cpu( self, *options, **def_args ): |
| 123 | "Possible Options :[]" |
| 124 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 125 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 126 | arguments = arguments + option + ' ' |
| 127 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 128 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 129 | self.execute( |
| 130 | cmd="show cpu " + |
| 131 | arguments, |
| 132 | prompt=prompt, |
| 133 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 134 | return main.TRUE |
| 135 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 136 | def show_vlan( self, *options, **def_args ): |
| 137 | "Possible Options :[]" |
| 138 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 139 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 140 | arguments = arguments + option + ' ' |
| 141 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 142 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 143 | self.execute( |
| 144 | cmd="show vlan " + |
| 145 | arguments, |
| 146 | prompt=prompt, |
| 147 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 148 | return main.TRUE |
| 149 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 150 | def show_lldp( self, *options, **def_args ): |
| 151 | "Possible Options :[]" |
| 152 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 153 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 154 | arguments = arguments + option + ' ' |
| 155 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 156 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 157 | self.execute( |
| 158 | cmd="show lldp " + |
| 159 | arguments, |
| 160 | prompt=prompt, |
| 161 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 162 | return main.TRUE |
| 163 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 164 | def show_dhcp( self, *options, **def_args ): |
| 165 | "Possible Options :[]" |
| 166 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 167 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 168 | arguments = arguments + option + ' ' |
| 169 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 170 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 171 | self.execute( |
| 172 | cmd="show dhcp " + |
| 173 | arguments, |
| 174 | prompt=prompt, |
| 175 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 176 | return main.TRUE |
| 177 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 178 | def show_axrp( self, *options, **def_args ): |
| 179 | "Possible Options :[]" |
| 180 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 181 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 182 | arguments = arguments + option + ' ' |
| 183 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 184 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 185 | self.execute( |
| 186 | cmd="show axrp " + |
| 187 | arguments, |
| 188 | prompt=prompt, |
| 189 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 190 | return main.TRUE |
| 191 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 192 | def show_oadp( self, *options, **def_args ): |
| 193 | "Possible Options :[]" |
| 194 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 195 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 196 | arguments = arguments + option + ' ' |
| 197 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 198 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 199 | self.execute( |
| 200 | cmd="show oadp " + |
| 201 | arguments, |
| 202 | prompt=prompt, |
| 203 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 204 | return main.TRUE |
| 205 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 206 | def show_gsrp( self, *options, **def_args ): |
| 207 | "Possible Options :[]" |
| 208 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 209 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 210 | arguments = arguments + option + ' ' |
| 211 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 212 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 213 | self.execute( |
| 214 | cmd="show gsrp " + |
| 215 | arguments, |
| 216 | prompt=prompt, |
| 217 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 218 | return main.TRUE |
| 219 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 220 | def show_port( self, *options, **def_args ): |
| 221 | "Possible Options :[]" |
| 222 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 223 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 224 | arguments = arguments + option + ' ' |
| 225 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 226 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 227 | self.execute( |
| 228 | cmd="show port " + |
| 229 | arguments, |
| 230 | prompt=prompt, |
| 231 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 232 | return main.TRUE |
| 233 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 234 | def show_file( self, *options, **def_args ): |
| 235 | "Possible Options :[]" |
| 236 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 237 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 238 | arguments = arguments + option + ' ' |
| 239 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 240 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 241 | self.execute( |
| 242 | cmd="show file " + |
| 243 | arguments, |
| 244 | prompt=prompt, |
| 245 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 246 | return main.TRUE |
| 247 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 248 | def show_power( self, *options, **def_args ): |
| 249 | "Possible Options :[]" |
| 250 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 251 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 252 | arguments = arguments + option + ' ' |
| 253 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 254 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 255 | self.execute( |
| 256 | cmd="show power " + |
| 257 | arguments, |
| 258 | prompt=prompt, |
| 259 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 260 | return main.TRUE |
| 261 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 262 | def show_clock( self, *options, **def_args ): |
| 263 | "Possible Options :[]" |
| 264 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 265 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 266 | arguments = arguments + option + ' ' |
| 267 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 268 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 269 | self.execute( |
| 270 | cmd="show clock " + |
| 271 | arguments, |
| 272 | prompt=prompt, |
| 273 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 274 | return main.TRUE |
| 275 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 276 | def show_dot1x( self, *options, **def_args ): |
| 277 | "Possible Options :[]" |
| 278 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 279 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 280 | arguments = arguments + option + ' ' |
| 281 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 282 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 283 | self.execute( |
| 284 | cmd="show dot1x " + |
| 285 | arguments, |
| 286 | prompt=prompt, |
| 287 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 288 | return main.TRUE |
| 289 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 290 | def show_sflow( self, *options, **def_args ): |
| 291 | "Possible Options :[]" |
| 292 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 293 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 294 | arguments = arguments + option + ' ' |
| 295 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 296 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 297 | self.execute( |
| 298 | cmd="show sflow " + |
| 299 | arguments, |
| 300 | prompt=prompt, |
| 301 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 302 | return main.TRUE |
| 303 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 304 | def show_track( self, *options, **def_args ): |
| 305 | "Possible Options :[]" |
| 306 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 307 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 308 | arguments = arguments + option + ' ' |
| 309 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 310 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 311 | self.execute( |
| 312 | cmd="show track " + |
| 313 | arguments, |
| 314 | prompt=prompt, |
| 315 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 316 | return main.TRUE |
| 317 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 318 | def show_flash( self, *options, **def_args ): |
| 319 | "Possible Options :[]" |
| 320 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 321 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 322 | arguments = arguments + option + ' ' |
| 323 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 324 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 325 | self.execute( |
| 326 | cmd="show flash " + |
| 327 | arguments, |
| 328 | prompt=prompt, |
| 329 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 330 | return main.TRUE |
| 331 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 332 | def show_system( self, *options, **def_args ): |
| 333 | "Possible Options :[]" |
| 334 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 335 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 336 | arguments = arguments + option + ' ' |
| 337 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 338 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 339 | self.execute( |
| 340 | cmd="show system " + |
| 341 | arguments, |
| 342 | prompt=prompt, |
| 343 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 344 | return main.TRUE |
| 345 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 346 | def show_whoami( self, *options, **def_args ): |
| 347 | "Possible Options :[]" |
| 348 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 349 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 350 | arguments = arguments + option + ' ' |
| 351 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 352 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 353 | self.execute( |
| 354 | cmd="show whoami " + |
| 355 | arguments, |
| 356 | prompt=prompt, |
| 357 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 358 | return main.TRUE |
| 359 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 360 | def show_efmoam( self, *options, **def_args ): |
| 361 | "Possible Options :[]" |
| 362 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 363 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 364 | arguments = arguments + option + ' ' |
| 365 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 366 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 367 | self.execute( |
| 368 | cmd="show efmoam " + |
| 369 | arguments, |
| 370 | prompt=prompt, |
| 371 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 372 | return main.TRUE |
| 373 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 374 | def show_memory( self, *options, **def_args ): |
| 375 | "Possible Options :[]" |
| 376 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 377 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 378 | arguments = arguments + option + ' ' |
| 379 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 380 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 381 | self.execute( |
| 382 | cmd="show memory " + |
| 383 | arguments, |
| 384 | prompt=prompt, |
| 385 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 386 | return main.TRUE |
| 387 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 388 | def show_tcpdump( self, *options, **def_args ): |
| 389 | "Possible Options :[]" |
| 390 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 391 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 392 | arguments = arguments + option + ' ' |
| 393 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 394 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 395 | self.execute( |
| 396 | cmd="show tcpdump " + |
| 397 | arguments, |
| 398 | prompt=prompt, |
| 399 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 400 | return main.TRUE |
| 401 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 402 | def show_history( self, *options, **def_args ): |
| 403 | "Possible Options :[]" |
| 404 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 405 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 406 | arguments = arguments + option + ' ' |
| 407 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 408 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 409 | self.execute( |
| 410 | cmd="show history " + |
| 411 | arguments, |
| 412 | prompt=prompt, |
| 413 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 414 | return main.TRUE |
| 415 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 416 | def show_logging( self, *options, **def_args ): |
| 417 | "Possible Options :[]" |
| 418 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 419 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 420 | arguments = arguments + option + ' ' |
| 421 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 422 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 423 | self.execute( |
| 424 | cmd="show logging " + |
| 425 | arguments, |
| 426 | prompt=prompt, |
| 427 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 428 | return main.TRUE |
| 429 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 430 | def show_license( self, *options, **def_args ): |
| 431 | "Possible Options :[]" |
| 432 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 433 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 434 | arguments = arguments + option + ' ' |
| 435 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 436 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 437 | self.execute( |
| 438 | cmd="show license " + |
| 439 | arguments, |
| 440 | prompt=prompt, |
| 441 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 442 | return main.TRUE |
| 443 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 444 | def show_netstat( self, *options, **def_args ): |
| 445 | "Possible Options :[]" |
| 446 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 447 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 448 | arguments = arguments + option + ' ' |
| 449 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 450 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 451 | self.execute( |
| 452 | cmd="show netstat " + |
| 453 | arguments, |
| 454 | prompt=prompt, |
| 455 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 456 | return main.TRUE |
| 457 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 458 | def show_version( self, *options, **def_args ): |
| 459 | "Possible Options :[]" |
| 460 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 461 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 462 | arguments = arguments + option + ' ' |
| 463 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 464 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 465 | self.execute( |
| 466 | cmd="show version " + |
| 467 | arguments, |
| 468 | prompt=prompt, |
| 469 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 470 | return main.TRUE |
| 471 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 472 | def show_netconf( self, *options, **def_args ): |
| 473 | "Possible Options :[]" |
| 474 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 475 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 476 | arguments = arguments + option + ' ' |
| 477 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 478 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 479 | self.execute( |
| 480 | cmd="show netconf " + |
| 481 | arguments, |
| 482 | prompt=prompt, |
| 483 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 484 | return main.TRUE |
| 485 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 486 | def show_ipdual( self, *options, **def_args ): |
| 487 | "Possible Options :[]" |
| 488 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 489 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 490 | arguments = arguments + option + ' ' |
| 491 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 492 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 493 | self.execute( |
| 494 | cmd="show ip-dual " + |
| 495 | arguments, |
| 496 | prompt=prompt, |
| 497 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 498 | return main.TRUE |
| 499 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 500 | def show_sessions( self, *options, **def_args ): |
| 501 | "Possible Options :[]" |
| 502 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 503 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 504 | arguments = arguments + option + ' ' |
| 505 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 506 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 507 | self.execute( |
| 508 | cmd="show sessions " + |
| 509 | arguments, |
| 510 | prompt=prompt, |
| 511 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 512 | return main.TRUE |
| 513 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 514 | def show_qosflow( self, *options, **def_args ): |
| 515 | "Possible Options :[]" |
| 516 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 517 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 518 | arguments = arguments + option + ' ' |
| 519 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 520 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 521 | self.execute( |
| 522 | cmd="show qos-flow " + |
| 523 | arguments, |
| 524 | prompt=prompt, |
| 525 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 526 | return main.TRUE |
| 527 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 528 | def show_openflow( self, *options, **def_args ): |
| 529 | "Possible Options :[]" |
| 530 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 531 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 532 | arguments = arguments + option + ' ' |
| 533 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 534 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 535 | self.execute( |
| 536 | cmd="show openflow " + |
| 537 | arguments, |
| 538 | prompt=prompt, |
| 539 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 540 | return main.TRUE |
| 541 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 542 | def show_dumpfile( self, *options, **def_args ): |
| 543 | "Possible Options :[]" |
| 544 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 545 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 546 | arguments = arguments + option + ' ' |
| 547 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 548 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 549 | self.execute( |
| 550 | cmd="show dumpfile " + |
| 551 | arguments, |
| 552 | prompt=prompt, |
| 553 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 554 | return main.TRUE |
| 555 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 556 | def show_ipv6dhcp( self, *options, **def_args ): |
| 557 | "Possible Options :[]" |
| 558 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 559 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 560 | arguments = arguments + option + ' ' |
| 561 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 562 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 563 | self.execute( |
| 564 | cmd="show ipv6-dhcp " + |
| 565 | arguments, |
| 566 | prompt=prompt, |
| 567 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 568 | return main.TRUE |
| 569 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 570 | def show_processes( self, *options, **def_args ): |
| 571 | "Possible Options :[]" |
| 572 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 573 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 574 | arguments = arguments + option + ' ' |
| 575 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 576 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 577 | self.execute( |
| 578 | cmd="show processes " + |
| 579 | arguments, |
| 580 | prompt=prompt, |
| 581 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 582 | return main.TRUE |
| 583 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 584 | def show_vrrpstatus( self, *options, **def_args ): |
| 585 | "Possible Options :[]" |
| 586 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 587 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 588 | arguments = arguments + option + ' ' |
| 589 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 590 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 591 | self.execute( |
| 592 | cmd="show vrrpstatus " + |
| 593 | arguments, |
| 594 | prompt=prompt, |
| 595 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 596 | return main.TRUE |
| 597 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 598 | def show_interfaces( self, *options, **def_args ): |
| 599 | "Possible Options :[]" |
| 600 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 601 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 602 | arguments = arguments + option + ' ' |
| 603 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 604 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 605 | self.execute( |
| 606 | cmd="show interfaces " + |
| 607 | arguments, |
| 608 | prompt=prompt, |
| 609 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 610 | return main.TRUE |
| 611 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 612 | def show_environment( self, *options, **def_args ): |
| 613 | "Possible Options :[]" |
| 614 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 615 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 616 | arguments = arguments + option + ' ' |
| 617 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 618 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 619 | self.execute( |
| 620 | cmd="show environment " + |
| 621 | arguments, |
| 622 | prompt=prompt, |
| 623 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 624 | return main.TRUE |
| 625 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 626 | def show_autoconfig( self, *options, **def_args ): |
| 627 | "Possible Options :[]" |
| 628 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 629 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 630 | arguments = arguments + option + ' ' |
| 631 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 632 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 633 | self.execute( |
| 634 | cmd="show auto-config " + |
| 635 | arguments, |
| 636 | prompt=prompt, |
| 637 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 638 | return main.TRUE |
| 639 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 640 | def show_techsupport( self, *options, **def_args ): |
| 641 | "Possible Options :[]" |
| 642 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 643 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 644 | arguments = arguments + option + ' ' |
| 645 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 646 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 647 | self.execute( |
| 648 | cmd="show tech-support " + |
| 649 | arguments, |
| 650 | prompt=prompt, |
| 651 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 652 | return main.TRUE |
| 653 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 654 | def show_mldsnooping( self, *options, **def_args ): |
| 655 | "Possible Options :[]" |
| 656 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 657 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 658 | arguments = arguments + option + ' ' |
| 659 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 660 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 661 | self.execute( |
| 662 | cmd="show mld-snooping " + |
| 663 | arguments, |
| 664 | prompt=prompt, |
| 665 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 666 | return main.TRUE |
| 667 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 668 | def show_igmpsnooping( self, *options, **def_args ): |
| 669 | "Possible Options :[]" |
| 670 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 671 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 672 | arguments = arguments + option + ' ' |
| 673 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 674 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 675 | self.execute( |
| 676 | cmd="show igmp-snooping " + |
| 677 | arguments, |
| 678 | prompt=prompt, |
| 679 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 680 | return main.TRUE |
| 681 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 682 | def show_channelgroup( self, *options, **def_args ): |
| 683 | "Possible Options :[]" |
| 684 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 685 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 686 | arguments = arguments + option + ' ' |
| 687 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 688 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 689 | self.execute( |
| 690 | cmd="show channel-group " + |
| 691 | arguments, |
| 692 | prompt=prompt, |
| 693 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 694 | return main.TRUE |
| 695 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 696 | def show_spanningtree( self, *options, **def_args ): |
| 697 | "Possible Options :[]" |
| 698 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 699 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 700 | arguments = arguments + option + ' ' |
| 701 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 702 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 703 | self.execute( |
| 704 | cmd="show spanning-tree " + |
| 705 | arguments, |
| 706 | prompt=prompt, |
| 707 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 708 | return main.TRUE |
| 709 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 710 | def show_loopdetection( self, *options, **def_args ): |
| 711 | "Possible Options :[]" |
| 712 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 713 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 714 | arguments = arguments + option + ' ' |
| 715 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 716 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 717 | self.execute( |
| 718 | cmd="show loop-detection " + |
| 719 | arguments, |
| 720 | prompt=prompt, |
| 721 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 722 | return main.TRUE |
| 723 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 724 | def show_acknowledgments( self, *options, **def_args ): |
| 725 | "Possible Options :[' interface ']" |
| 726 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 727 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 728 | arguments = arguments + option + ' ' |
| 729 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 730 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 731 | self.execute( |
| 732 | cmd="show acknowledgments " + |
| 733 | arguments, |
| 734 | prompt=prompt, |
| 735 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 736 | return main.TRUE |
| 737 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 738 | def show_macaddresstable( self, *options, **def_args ): |
| 739 | "Possible Options :[]" |
| 740 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 741 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 742 | arguments = arguments + option + ' ' |
| 743 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 744 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 745 | self.execute( |
| 746 | cmd="show mac-address-table " + |
| 747 | arguments, |
| 748 | prompt=prompt, |
| 749 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 750 | return main.TRUE |
| 751 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 752 | def show_configlockstatus( self, *options, **def_args ): |
| 753 | "Possible Options :[]" |
| 754 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 755 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 756 | arguments = arguments + option + ' ' |
| 757 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 758 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 759 | self.execute( |
| 760 | cmd="show config-lock-status " + |
| 761 | arguments, |
| 762 | prompt=prompt, |
| 763 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 764 | return main.TRUE |
| 765 | |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 766 | def show_acknowledgments_interface( self, *options, **def_args ): |
| 767 | "Possible Options :[]" |
| 768 | arguments = '' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 769 | for option in options: |
kelvin-onlab | 898a6c6 | 2015-01-16 14:13:53 -0800 | [diff] [blame] | 770 | arguments = arguments + option + ' ' |
| 771 | prompt = def_args.setdefault( 'prompt', self.prompt ) |
| 772 | timeout = def_args.setdefault( 'timeout', self.timeout ) |
| 773 | self.execute( |
| 774 | cmd="show acknowledgments interface " + |
| 775 | arguments, |
| 776 | prompt=prompt, |
| 777 | timeout=timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 778 | return main.TRUE |