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