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