admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame^] | 1 | class NEC: |
| 2 | def __init__( self ): |
| 3 | self.prompt = '(.*)' |
| 4 | self.timeout = 60 |
| 5 | |
| 6 | def show(self, *options, **def_args ): |
| 7 | '''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 ']''' |
| 8 | arguments= '' |
| 9 | for option in options: |
| 10 | arguments = arguments + option +' ' |
| 11 | prompt = def_args.setdefault('prompt',self.prompt) |
| 12 | timeout = def_args.setdefault('timeout',self.timeout) |
| 13 | self.execute( cmd= "show "+ arguments, prompt = prompt, timeout = timeout ) |
| 14 | return main.TRUE |
| 15 | |
| 16 | def show_ip(self, *options, **def_args ): |
| 17 | '''Possible Options :[]''' |
| 18 | arguments= '' |
| 19 | for option in options: |
| 20 | arguments = arguments + option +' ' |
| 21 | prompt = def_args.setdefault('prompt',self.prompt) |
| 22 | timeout = def_args.setdefault('timeout',self.timeout) |
| 23 | self.execute( cmd= "show ip "+ arguments, prompt = prompt, timeout = timeout ) |
| 24 | return main.TRUE |
| 25 | |
| 26 | def show_mc(self, *options, **def_args ): |
| 27 | '''Possible Options :[]''' |
| 28 | arguments= '' |
| 29 | for option in options: |
| 30 | arguments = arguments + option +' ' |
| 31 | prompt = def_args.setdefault('prompt',self.prompt) |
| 32 | timeout = def_args.setdefault('timeout',self.timeout) |
| 33 | self.execute( cmd= "show mc "+ arguments, prompt = prompt, timeout = timeout ) |
| 34 | return main.TRUE |
| 35 | |
| 36 | def show_cfm(self, *options, **def_args ): |
| 37 | '''Possible Options :[]''' |
| 38 | arguments= '' |
| 39 | for option in options: |
| 40 | arguments = arguments + option +' ' |
| 41 | prompt = def_args.setdefault('prompt',self.prompt) |
| 42 | timeout = def_args.setdefault('timeout',self.timeout) |
| 43 | self.execute( cmd= "show cfm "+ arguments, prompt = prompt, timeout = timeout ) |
| 44 | return main.TRUE |
| 45 | |
| 46 | def show_ntp(self, *options, **def_args ): |
| 47 | '''Possible Options :[]''' |
| 48 | arguments= '' |
| 49 | for option in options: |
| 50 | arguments = arguments + option +' ' |
| 51 | prompt = def_args.setdefault('prompt',self.prompt) |
| 52 | timeout = def_args.setdefault('timeout',self.timeout) |
| 53 | self.execute( cmd= "show ntp "+ arguments, prompt = prompt, timeout = timeout ) |
| 54 | return main.TRUE |
| 55 | |
| 56 | def show_ssh(self, *options, **def_args ): |
| 57 | '''Possible Options :[]''' |
| 58 | arguments= '' |
| 59 | for option in options: |
| 60 | arguments = arguments + option +' ' |
| 61 | prompt = def_args.setdefault('prompt',self.prompt) |
| 62 | timeout = def_args.setdefault('timeout',self.timeout) |
| 63 | self.execute( cmd= "show ssh "+ arguments, prompt = prompt, timeout = timeout ) |
| 64 | return main.TRUE |
| 65 | |
| 66 | def show_qos(self, *options, **def_args ): |
| 67 | '''Possible Options :[]''' |
| 68 | arguments= '' |
| 69 | for option in options: |
| 70 | arguments = arguments + option +' ' |
| 71 | prompt = def_args.setdefault('prompt',self.prompt) |
| 72 | timeout = def_args.setdefault('timeout',self.timeout) |
| 73 | self.execute( cmd= "show qos "+ arguments, prompt = prompt, timeout = timeout ) |
| 74 | return main.TRUE |
| 75 | |
| 76 | def show_cpu(self, *options, **def_args ): |
| 77 | '''Possible Options :[]''' |
| 78 | arguments= '' |
| 79 | for option in options: |
| 80 | arguments = arguments + option +' ' |
| 81 | prompt = def_args.setdefault('prompt',self.prompt) |
| 82 | timeout = def_args.setdefault('timeout',self.timeout) |
| 83 | self.execute( cmd= "show cpu "+ arguments, prompt = prompt, timeout = timeout ) |
| 84 | return main.TRUE |
| 85 | |
| 86 | def show_vlan(self, *options, **def_args ): |
| 87 | '''Possible Options :[]''' |
| 88 | arguments= '' |
| 89 | for option in options: |
| 90 | arguments = arguments + option +' ' |
| 91 | prompt = def_args.setdefault('prompt',self.prompt) |
| 92 | timeout = def_args.setdefault('timeout',self.timeout) |
| 93 | self.execute( cmd= "show vlan "+ arguments, prompt = prompt, timeout = timeout ) |
| 94 | return main.TRUE |
| 95 | |
| 96 | def show_lldp(self, *options, **def_args ): |
| 97 | '''Possible Options :[]''' |
| 98 | arguments= '' |
| 99 | for option in options: |
| 100 | arguments = arguments + option +' ' |
| 101 | prompt = def_args.setdefault('prompt',self.prompt) |
| 102 | timeout = def_args.setdefault('timeout',self.timeout) |
| 103 | self.execute( cmd= "show lldp "+ arguments, prompt = prompt, timeout = timeout ) |
| 104 | return main.TRUE |
| 105 | |
| 106 | def show_dhcp(self, *options, **def_args ): |
| 107 | '''Possible Options :[]''' |
| 108 | arguments= '' |
| 109 | for option in options: |
| 110 | arguments = arguments + option +' ' |
| 111 | prompt = def_args.setdefault('prompt',self.prompt) |
| 112 | timeout = def_args.setdefault('timeout',self.timeout) |
| 113 | self.execute( cmd= "show dhcp "+ arguments, prompt = prompt, timeout = timeout ) |
| 114 | return main.TRUE |
| 115 | |
| 116 | def show_axrp(self, *options, **def_args ): |
| 117 | '''Possible Options :[]''' |
| 118 | arguments= '' |
| 119 | for option in options: |
| 120 | arguments = arguments + option +' ' |
| 121 | prompt = def_args.setdefault('prompt',self.prompt) |
| 122 | timeout = def_args.setdefault('timeout',self.timeout) |
| 123 | self.execute( cmd= "show axrp "+ arguments, prompt = prompt, timeout = timeout ) |
| 124 | return main.TRUE |
| 125 | |
| 126 | def show_oadp(self, *options, **def_args ): |
| 127 | '''Possible Options :[]''' |
| 128 | arguments= '' |
| 129 | for option in options: |
| 130 | arguments = arguments + option +' ' |
| 131 | prompt = def_args.setdefault('prompt',self.prompt) |
| 132 | timeout = def_args.setdefault('timeout',self.timeout) |
| 133 | self.execute( cmd= "show oadp "+ arguments, prompt = prompt, timeout = timeout ) |
| 134 | return main.TRUE |
| 135 | |
| 136 | def show_gsrp(self, *options, **def_args ): |
| 137 | '''Possible Options :[]''' |
| 138 | arguments= '' |
| 139 | for option in options: |
| 140 | arguments = arguments + option +' ' |
| 141 | prompt = def_args.setdefault('prompt',self.prompt) |
| 142 | timeout = def_args.setdefault('timeout',self.timeout) |
| 143 | self.execute( cmd= "show gsrp "+ arguments, prompt = prompt, timeout = timeout ) |
| 144 | return main.TRUE |
| 145 | |
| 146 | def show_port(self, *options, **def_args ): |
| 147 | '''Possible Options :[]''' |
| 148 | arguments= '' |
| 149 | for option in options: |
| 150 | arguments = arguments + option +' ' |
| 151 | prompt = def_args.setdefault('prompt',self.prompt) |
| 152 | timeout = def_args.setdefault('timeout',self.timeout) |
| 153 | self.execute( cmd= "show port "+ arguments, prompt = prompt, timeout = timeout ) |
| 154 | return main.TRUE |
| 155 | |
| 156 | def show_file(self, *options, **def_args ): |
| 157 | '''Possible Options :[]''' |
| 158 | arguments= '' |
| 159 | for option in options: |
| 160 | arguments = arguments + option +' ' |
| 161 | prompt = def_args.setdefault('prompt',self.prompt) |
| 162 | timeout = def_args.setdefault('timeout',self.timeout) |
| 163 | self.execute( cmd= "show file "+ arguments, prompt = prompt, timeout = timeout ) |
| 164 | return main.TRUE |
| 165 | |
| 166 | def show_power(self, *options, **def_args ): |
| 167 | '''Possible Options :[]''' |
| 168 | arguments= '' |
| 169 | for option in options: |
| 170 | arguments = arguments + option +' ' |
| 171 | prompt = def_args.setdefault('prompt',self.prompt) |
| 172 | timeout = def_args.setdefault('timeout',self.timeout) |
| 173 | self.execute( cmd= "show power "+ arguments, prompt = prompt, timeout = timeout ) |
| 174 | return main.TRUE |
| 175 | |
| 176 | def show_clock(self, *options, **def_args ): |
| 177 | '''Possible Options :[]''' |
| 178 | arguments= '' |
| 179 | for option in options: |
| 180 | arguments = arguments + option +' ' |
| 181 | prompt = def_args.setdefault('prompt',self.prompt) |
| 182 | timeout = def_args.setdefault('timeout',self.timeout) |
| 183 | self.execute( cmd= "show clock "+ arguments, prompt = prompt, timeout = timeout ) |
| 184 | return main.TRUE |
| 185 | |
| 186 | def show_dot1x(self, *options, **def_args ): |
| 187 | '''Possible Options :[]''' |
| 188 | arguments= '' |
| 189 | for option in options: |
| 190 | arguments = arguments + option +' ' |
| 191 | prompt = def_args.setdefault('prompt',self.prompt) |
| 192 | timeout = def_args.setdefault('timeout',self.timeout) |
| 193 | self.execute( cmd= "show dot1x "+ arguments, prompt = prompt, timeout = timeout ) |
| 194 | return main.TRUE |
| 195 | |
| 196 | def show_sflow(self, *options, **def_args ): |
| 197 | '''Possible Options :[]''' |
| 198 | arguments= '' |
| 199 | for option in options: |
| 200 | arguments = arguments + option +' ' |
| 201 | prompt = def_args.setdefault('prompt',self.prompt) |
| 202 | timeout = def_args.setdefault('timeout',self.timeout) |
| 203 | self.execute( cmd= "show sflow "+ arguments, prompt = prompt, timeout = timeout ) |
| 204 | return main.TRUE |
| 205 | |
| 206 | def show_track(self, *options, **def_args ): |
| 207 | '''Possible Options :[]''' |
| 208 | arguments= '' |
| 209 | for option in options: |
| 210 | arguments = arguments + option +' ' |
| 211 | prompt = def_args.setdefault('prompt',self.prompt) |
| 212 | timeout = def_args.setdefault('timeout',self.timeout) |
| 213 | self.execute( cmd= "show track "+ arguments, prompt = prompt, timeout = timeout ) |
| 214 | return main.TRUE |
| 215 | |
| 216 | def show_flash(self, *options, **def_args ): |
| 217 | '''Possible Options :[]''' |
| 218 | arguments= '' |
| 219 | for option in options: |
| 220 | arguments = arguments + option +' ' |
| 221 | prompt = def_args.setdefault('prompt',self.prompt) |
| 222 | timeout = def_args.setdefault('timeout',self.timeout) |
| 223 | self.execute( cmd= "show flash "+ arguments, prompt = prompt, timeout = timeout ) |
| 224 | return main.TRUE |
| 225 | |
| 226 | def show_system(self, *options, **def_args ): |
| 227 | '''Possible Options :[]''' |
| 228 | arguments= '' |
| 229 | for option in options: |
| 230 | arguments = arguments + option +' ' |
| 231 | prompt = def_args.setdefault('prompt',self.prompt) |
| 232 | timeout = def_args.setdefault('timeout',self.timeout) |
| 233 | self.execute( cmd= "show system "+ arguments, prompt = prompt, timeout = timeout ) |
| 234 | return main.TRUE |
| 235 | |
| 236 | def show_whoami(self, *options, **def_args ): |
| 237 | '''Possible Options :[]''' |
| 238 | arguments= '' |
| 239 | for option in options: |
| 240 | arguments = arguments + option +' ' |
| 241 | prompt = def_args.setdefault('prompt',self.prompt) |
| 242 | timeout = def_args.setdefault('timeout',self.timeout) |
| 243 | self.execute( cmd= "show whoami "+ arguments, prompt = prompt, timeout = timeout ) |
| 244 | return main.TRUE |
| 245 | |
| 246 | def show_efmoam(self, *options, **def_args ): |
| 247 | '''Possible Options :[]''' |
| 248 | arguments= '' |
| 249 | for option in options: |
| 250 | arguments = arguments + option +' ' |
| 251 | prompt = def_args.setdefault('prompt',self.prompt) |
| 252 | timeout = def_args.setdefault('timeout',self.timeout) |
| 253 | self.execute( cmd= "show efmoam "+ arguments, prompt = prompt, timeout = timeout ) |
| 254 | return main.TRUE |
| 255 | |
| 256 | def show_memory(self, *options, **def_args ): |
| 257 | '''Possible Options :[]''' |
| 258 | arguments= '' |
| 259 | for option in options: |
| 260 | arguments = arguments + option +' ' |
| 261 | prompt = def_args.setdefault('prompt',self.prompt) |
| 262 | timeout = def_args.setdefault('timeout',self.timeout) |
| 263 | self.execute( cmd= "show memory "+ arguments, prompt = prompt, timeout = timeout ) |
| 264 | return main.TRUE |
| 265 | |
| 266 | def show_tcpdump(self, *options, **def_args ): |
| 267 | '''Possible Options :[]''' |
| 268 | arguments= '' |
| 269 | for option in options: |
| 270 | arguments = arguments + option +' ' |
| 271 | prompt = def_args.setdefault('prompt',self.prompt) |
| 272 | timeout = def_args.setdefault('timeout',self.timeout) |
| 273 | self.execute( cmd= "show tcpdump "+ arguments, prompt = prompt, timeout = timeout ) |
| 274 | return main.TRUE |
| 275 | |
| 276 | def show_history(self, *options, **def_args ): |
| 277 | '''Possible Options :[]''' |
| 278 | arguments= '' |
| 279 | for option in options: |
| 280 | arguments = arguments + option +' ' |
| 281 | prompt = def_args.setdefault('prompt',self.prompt) |
| 282 | timeout = def_args.setdefault('timeout',self.timeout) |
| 283 | self.execute( cmd= "show history "+ arguments, prompt = prompt, timeout = timeout ) |
| 284 | return main.TRUE |
| 285 | |
| 286 | def show_logging(self, *options, **def_args ): |
| 287 | '''Possible Options :[]''' |
| 288 | arguments= '' |
| 289 | for option in options: |
| 290 | arguments = arguments + option +' ' |
| 291 | prompt = def_args.setdefault('prompt',self.prompt) |
| 292 | timeout = def_args.setdefault('timeout',self.timeout) |
| 293 | self.execute( cmd= "show logging "+ arguments, prompt = prompt, timeout = timeout ) |
| 294 | return main.TRUE |
| 295 | |
| 296 | def show_license(self, *options, **def_args ): |
| 297 | '''Possible Options :[]''' |
| 298 | arguments= '' |
| 299 | for option in options: |
| 300 | arguments = arguments + option +' ' |
| 301 | prompt = def_args.setdefault('prompt',self.prompt) |
| 302 | timeout = def_args.setdefault('timeout',self.timeout) |
| 303 | self.execute( cmd= "show license "+ arguments, prompt = prompt, timeout = timeout ) |
| 304 | return main.TRUE |
| 305 | |
| 306 | def show_netstat(self, *options, **def_args ): |
| 307 | '''Possible Options :[]''' |
| 308 | arguments= '' |
| 309 | for option in options: |
| 310 | arguments = arguments + option +' ' |
| 311 | prompt = def_args.setdefault('prompt',self.prompt) |
| 312 | timeout = def_args.setdefault('timeout',self.timeout) |
| 313 | self.execute( cmd= "show netstat "+ arguments, prompt = prompt, timeout = timeout ) |
| 314 | return main.TRUE |
| 315 | |
| 316 | def show_version(self, *options, **def_args ): |
| 317 | '''Possible Options :[]''' |
| 318 | arguments= '' |
| 319 | for option in options: |
| 320 | arguments = arguments + option +' ' |
| 321 | prompt = def_args.setdefault('prompt',self.prompt) |
| 322 | timeout = def_args.setdefault('timeout',self.timeout) |
| 323 | self.execute( cmd= "show version "+ arguments, prompt = prompt, timeout = timeout ) |
| 324 | return main.TRUE |
| 325 | |
| 326 | def show_netconf(self, *options, **def_args ): |
| 327 | '''Possible Options :[]''' |
| 328 | arguments= '' |
| 329 | for option in options: |
| 330 | arguments = arguments + option +' ' |
| 331 | prompt = def_args.setdefault('prompt',self.prompt) |
| 332 | timeout = def_args.setdefault('timeout',self.timeout) |
| 333 | self.execute( cmd= "show netconf "+ arguments, prompt = prompt, timeout = timeout ) |
| 334 | return main.TRUE |
| 335 | |
| 336 | def show_ipdual(self, *options, **def_args ): |
| 337 | '''Possible Options :[]''' |
| 338 | arguments= '' |
| 339 | for option in options: |
| 340 | arguments = arguments + option +' ' |
| 341 | prompt = def_args.setdefault('prompt',self.prompt) |
| 342 | timeout = def_args.setdefault('timeout',self.timeout) |
| 343 | self.execute( cmd= "show ip-dual "+ arguments, prompt = prompt, timeout = timeout ) |
| 344 | return main.TRUE |
| 345 | |
| 346 | def show_sessions(self, *options, **def_args ): |
| 347 | '''Possible Options :[]''' |
| 348 | arguments= '' |
| 349 | for option in options: |
| 350 | arguments = arguments + option +' ' |
| 351 | prompt = def_args.setdefault('prompt',self.prompt) |
| 352 | timeout = def_args.setdefault('timeout',self.timeout) |
| 353 | self.execute( cmd= "show sessions "+ arguments, prompt = prompt, timeout = timeout ) |
| 354 | return main.TRUE |
| 355 | |
| 356 | def show_qosflow(self, *options, **def_args ): |
| 357 | '''Possible Options :[]''' |
| 358 | arguments= '' |
| 359 | for option in options: |
| 360 | arguments = arguments + option +' ' |
| 361 | prompt = def_args.setdefault('prompt',self.prompt) |
| 362 | timeout = def_args.setdefault('timeout',self.timeout) |
| 363 | self.execute( cmd= "show qos-flow "+ arguments, prompt = prompt, timeout = timeout ) |
| 364 | return main.TRUE |
| 365 | |
| 366 | def show_openflow(self, *options, **def_args ): |
| 367 | '''Possible Options :[]''' |
| 368 | arguments= '' |
| 369 | for option in options: |
| 370 | arguments = arguments + option +' ' |
| 371 | prompt = def_args.setdefault('prompt',self.prompt) |
| 372 | timeout = def_args.setdefault('timeout',self.timeout) |
| 373 | self.execute( cmd= "show openflow "+ arguments, prompt = prompt, timeout = timeout ) |
| 374 | return main.TRUE |
| 375 | |
| 376 | def show_dumpfile(self, *options, **def_args ): |
| 377 | '''Possible Options :[]''' |
| 378 | arguments= '' |
| 379 | for option in options: |
| 380 | arguments = arguments + option +' ' |
| 381 | prompt = def_args.setdefault('prompt',self.prompt) |
| 382 | timeout = def_args.setdefault('timeout',self.timeout) |
| 383 | self.execute( cmd= "show dumpfile "+ arguments, prompt = prompt, timeout = timeout ) |
| 384 | return main.TRUE |
| 385 | |
| 386 | def show_ipv6dhcp(self, *options, **def_args ): |
| 387 | '''Possible Options :[]''' |
| 388 | arguments= '' |
| 389 | for option in options: |
| 390 | arguments = arguments + option +' ' |
| 391 | prompt = def_args.setdefault('prompt',self.prompt) |
| 392 | timeout = def_args.setdefault('timeout',self.timeout) |
| 393 | self.execute( cmd= "show ipv6-dhcp "+ arguments, prompt = prompt, timeout = timeout ) |
| 394 | return main.TRUE |
| 395 | |
| 396 | def show_processes(self, *options, **def_args ): |
| 397 | '''Possible Options :[]''' |
| 398 | arguments= '' |
| 399 | for option in options: |
| 400 | arguments = arguments + option +' ' |
| 401 | prompt = def_args.setdefault('prompt',self.prompt) |
| 402 | timeout = def_args.setdefault('timeout',self.timeout) |
| 403 | self.execute( cmd= "show processes "+ arguments, prompt = prompt, timeout = timeout ) |
| 404 | return main.TRUE |
| 405 | |
| 406 | def show_vrrpstatus(self, *options, **def_args ): |
| 407 | '''Possible Options :[]''' |
| 408 | arguments= '' |
| 409 | for option in options: |
| 410 | arguments = arguments + option +' ' |
| 411 | prompt = def_args.setdefault('prompt',self.prompt) |
| 412 | timeout = def_args.setdefault('timeout',self.timeout) |
| 413 | self.execute( cmd= "show vrrpstatus "+ arguments, prompt = prompt, timeout = timeout ) |
| 414 | return main.TRUE |
| 415 | |
| 416 | def show_interfaces(self, *options, **def_args ): |
| 417 | '''Possible Options :[]''' |
| 418 | arguments= '' |
| 419 | for option in options: |
| 420 | arguments = arguments + option +' ' |
| 421 | prompt = def_args.setdefault('prompt',self.prompt) |
| 422 | timeout = def_args.setdefault('timeout',self.timeout) |
| 423 | self.execute( cmd= "show interfaces "+ arguments, prompt = prompt, timeout = timeout ) |
| 424 | return main.TRUE |
| 425 | |
| 426 | def show_environment(self, *options, **def_args ): |
| 427 | '''Possible Options :[]''' |
| 428 | arguments= '' |
| 429 | for option in options: |
| 430 | arguments = arguments + option +' ' |
| 431 | prompt = def_args.setdefault('prompt',self.prompt) |
| 432 | timeout = def_args.setdefault('timeout',self.timeout) |
| 433 | self.execute( cmd= "show environment "+ arguments, prompt = prompt, timeout = timeout ) |
| 434 | return main.TRUE |
| 435 | |
| 436 | def show_autoconfig(self, *options, **def_args ): |
| 437 | '''Possible Options :[]''' |
| 438 | arguments= '' |
| 439 | for option in options: |
| 440 | arguments = arguments + option +' ' |
| 441 | prompt = def_args.setdefault('prompt',self.prompt) |
| 442 | timeout = def_args.setdefault('timeout',self.timeout) |
| 443 | self.execute( cmd= "show auto-config "+ arguments, prompt = prompt, timeout = timeout ) |
| 444 | return main.TRUE |
| 445 | |
| 446 | def show_techsupport(self, *options, **def_args ): |
| 447 | '''Possible Options :[]''' |
| 448 | arguments= '' |
| 449 | for option in options: |
| 450 | arguments = arguments + option +' ' |
| 451 | prompt = def_args.setdefault('prompt',self.prompt) |
| 452 | timeout = def_args.setdefault('timeout',self.timeout) |
| 453 | self.execute( cmd= "show tech-support "+ arguments, prompt = prompt, timeout = timeout ) |
| 454 | return main.TRUE |
| 455 | |
| 456 | def show_mldsnooping(self, *options, **def_args ): |
| 457 | '''Possible Options :[]''' |
| 458 | arguments= '' |
| 459 | for option in options: |
| 460 | arguments = arguments + option +' ' |
| 461 | prompt = def_args.setdefault('prompt',self.prompt) |
| 462 | timeout = def_args.setdefault('timeout',self.timeout) |
| 463 | self.execute( cmd= "show mld-snooping "+ arguments, prompt = prompt, timeout = timeout ) |
| 464 | return main.TRUE |
| 465 | |
| 466 | def show_igmpsnooping(self, *options, **def_args ): |
| 467 | '''Possible Options :[]''' |
| 468 | arguments= '' |
| 469 | for option in options: |
| 470 | arguments = arguments + option +' ' |
| 471 | prompt = def_args.setdefault('prompt',self.prompt) |
| 472 | timeout = def_args.setdefault('timeout',self.timeout) |
| 473 | self.execute( cmd= "show igmp-snooping "+ arguments, prompt = prompt, timeout = timeout ) |
| 474 | return main.TRUE |
| 475 | |
| 476 | def show_channelgroup(self, *options, **def_args ): |
| 477 | '''Possible Options :[]''' |
| 478 | arguments= '' |
| 479 | for option in options: |
| 480 | arguments = arguments + option +' ' |
| 481 | prompt = def_args.setdefault('prompt',self.prompt) |
| 482 | timeout = def_args.setdefault('timeout',self.timeout) |
| 483 | self.execute( cmd= "show channel-group "+ arguments, prompt = prompt, timeout = timeout ) |
| 484 | return main.TRUE |
| 485 | |
| 486 | def show_spanningtree(self, *options, **def_args ): |
| 487 | '''Possible Options :[]''' |
| 488 | arguments= '' |
| 489 | for option in options: |
| 490 | arguments = arguments + option +' ' |
| 491 | prompt = def_args.setdefault('prompt',self.prompt) |
| 492 | timeout = def_args.setdefault('timeout',self.timeout) |
| 493 | self.execute( cmd= "show spanning-tree "+ arguments, prompt = prompt, timeout = timeout ) |
| 494 | return main.TRUE |
| 495 | |
| 496 | def show_loopdetection(self, *options, **def_args ): |
| 497 | '''Possible Options :[]''' |
| 498 | arguments= '' |
| 499 | for option in options: |
| 500 | arguments = arguments + option +' ' |
| 501 | prompt = def_args.setdefault('prompt',self.prompt) |
| 502 | timeout = def_args.setdefault('timeout',self.timeout) |
| 503 | self.execute( cmd= "show loop-detection "+ arguments, prompt = prompt, timeout = timeout ) |
| 504 | return main.TRUE |
| 505 | |
| 506 | def show_acknowledgments(self, *options, **def_args ): |
| 507 | '''Possible Options :[' interface ']''' |
| 508 | arguments= '' |
| 509 | for option in options: |
| 510 | arguments = arguments + option +' ' |
| 511 | prompt = def_args.setdefault('prompt',self.prompt) |
| 512 | timeout = def_args.setdefault('timeout',self.timeout) |
| 513 | self.execute( cmd= "show acknowledgments "+ arguments, prompt = prompt, timeout = timeout ) |
| 514 | return main.TRUE |
| 515 | |
| 516 | def show_macaddresstable(self, *options, **def_args ): |
| 517 | '''Possible Options :[]''' |
| 518 | arguments= '' |
| 519 | for option in options: |
| 520 | arguments = arguments + option +' ' |
| 521 | prompt = def_args.setdefault('prompt',self.prompt) |
| 522 | timeout = def_args.setdefault('timeout',self.timeout) |
| 523 | self.execute( cmd= "show mac-address-table "+ arguments, prompt = prompt, timeout = timeout ) |
| 524 | return main.TRUE |
| 525 | |
| 526 | def show_configlockstatus(self, *options, **def_args ): |
| 527 | '''Possible Options :[]''' |
| 528 | arguments= '' |
| 529 | for option in options: |
| 530 | arguments = arguments + option +' ' |
| 531 | prompt = def_args.setdefault('prompt',self.prompt) |
| 532 | timeout = def_args.setdefault('timeout',self.timeout) |
| 533 | self.execute( cmd= "show config-lock-status "+ arguments, prompt = prompt, timeout = timeout ) |
| 534 | return main.TRUE |
| 535 | |
| 536 | def show_acknowledgments_interface(self, *options, **def_args ): |
| 537 | '''Possible Options :[]''' |
| 538 | arguments= '' |
| 539 | for option in options: |
| 540 | arguments = arguments + option +' ' |
| 541 | prompt = def_args.setdefault('prompt',self.prompt) |
| 542 | timeout = def_args.setdefault('timeout',self.timeout) |
| 543 | self.execute( cmd= "show acknowledgments interface "+ arguments, prompt = prompt, timeout = timeout ) |
| 544 | return main.TRUE |
| 545 | |