1 '''
2
3 TestON is free software: you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation, either version 2 of the License, or
6 (at your option) any later version.
7
8 TestON is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12
13 You should have received a copy of the GNU General Public License
14 along with TestON. If not, see <http://www.gnu.org/licenses/>.
15
16
17 '''
20 self.prompt = '(.*)'
21 self.timeout = 60
22
24 '''Possible Options :['ethernet', 'loopback']'''
25 arguments= ''
26 for option in options:
27 arguments = arguments + option +' '
28 prompt = def_args.setdefault('prompt',self.prompt)
29 timeout = def_args.setdefault('timeout',self.timeout)
30 self.execute( cmd= "show interfaces "+ arguments, prompt = prompt, timeout = timeout )
31 return main.TRUE
32
34 '''Possible Options :['eth0', 'eth1']'''
35 arguments= ''
36 for option in options:
37 arguments = arguments + option +' '
38 prompt = def_args.setdefault('prompt',self.prompt)
39 timeout = def_args.setdefault('timeout',self.timeout)
40 self.execute( cmd= "set interfaces ethernet "+ arguments, prompt = prompt, timeout = timeout )
41 return main.TRUE
42
44 '''Possible Options :['lo']'''
45 arguments= ''
46 for option in options:
47 arguments = arguments + option +' '
48 prompt = def_args.setdefault('prompt',self.prompt)
49 timeout = def_args.setdefault('timeout',self.timeout)
50 self.execute( cmd= "show interfaces loopback "+ arguments, prompt = prompt, timeout = timeout )
51 return main.TRUE
52
54 '''Possible Options :['eth0', 'eth1']'''
55 arguments= ''
56 for option in options:
57 arguments = arguments + option +' '
58 prompt = def_args.setdefault('prompt',self.prompt)
59 timeout = def_args.setdefault('timeout',self.timeout)
60 self.execute( cmd= "show interfaces ethernet "+ arguments, prompt = prompt, timeout = timeout )
61 return main.TRUE
62
64 '''Possible Options :[]'''
65 arguments= ''
66 for option in options:
67 arguments = arguments + option +' '
68 prompt = def_args.setdefault('prompt',self.prompt)
69 timeout = def_args.setdefault('timeout',self.timeout)
70 self.execute( cmd= "show interfaces loopback lo "+ arguments, prompt = prompt, timeout = timeout )
71 return main.TRUE
72
74 '''Possible Options :['address', 'bond-group', 'bridge-group', 'description', 'dhcpv6-options', 'DHCPv6', 'disable', 'disable-flow-control', 'Disable', 'disable-link-detect', 'Ignore', 'duplex', 'firewall', 'hw-id', 'ip', 'ipv6', 'mac', 'mirror', 'mtu', 'policy', 'pppoe']'''
75 arguments= ''
76 for option in options:
77 arguments = arguments + option +' '
78 prompt = def_args.setdefault('prompt',self.prompt)
79 timeout = def_args.setdefault('timeout',self.timeout)
80 self.execute( cmd= "set interfaces ethernet eth0 "+ arguments, prompt = prompt, timeout = timeout )
81 return main.TRUE
82
84 '''Possible Options :['address', 'duplex', 'hw-id', 'smp_affinity', 'speed']'''
85 arguments= ''
86 for option in options:
87 arguments = arguments + option +' '
88 prompt = def_args.setdefault('prompt',self.prompt)
89 timeout = def_args.setdefault('timeout',self.timeout)
90 self.execute( cmd= "show interfaces ethernet eth1 "+ arguments, prompt = prompt, timeout = timeout )
91 return main.TRUE
92
94 '''Possible Options :['duplex', 'hw-id', 'smp_affinity', 'speed']'''
95 arguments= ''
96 for option in options:
97 arguments = arguments + option +' '
98 prompt = def_args.setdefault('prompt',self.prompt)
99 timeout = def_args.setdefault('timeout',self.timeout)
100 self.execute( cmd= "show interfaces ethernet eth0 "+ arguments, prompt = prompt, timeout = timeout )
101 return main.TRUE
102
104 '''Possible Options :['enable-proxy-arp', 'Enable', 'ospf', 'rip']'''
105 arguments= ''
106 for option in options:
107 arguments = arguments + option +' '
108 prompt = def_args.setdefault('prompt',self.prompt)
109 timeout = def_args.setdefault('timeout',self.timeout)
110 self.execute( cmd= "set interfaces ethernet eth0 ip "+ arguments, prompt = prompt, timeout = timeout )
111 return main.TRUE
112
114 '''Possible Options :['Media']'''
115 arguments= ''
116 for option in options:
117 arguments = arguments + option +' '
118 prompt = def_args.setdefault('prompt',self.prompt)
119 timeout = def_args.setdefault('timeout',self.timeout)
120 self.execute( cmd= "set interfaces ethernet eth0 hw-id "+ arguments, prompt = prompt, timeout = timeout )
121 return main.TRUE
122
124 '''Possible Options :[]'''
125 arguments= ''
126 for option in options:
127 arguments = arguments + option +' '
128 prompt = def_args.setdefault('prompt',self.prompt)
129 timeout = def_args.setdefault('timeout',self.timeout)
130 self.execute( cmd= "set interfaces ethernet eth0 DHCPv6 "+ arguments, prompt = prompt, timeout = timeout )
131 return main.TRUE
132
134 '''Possible Options :['auto', 'half', 'full']'''
135 arguments= ''
136 for option in options:
137 arguments = arguments + option +' '
138 prompt = def_args.setdefault('prompt',self.prompt)
139 timeout = def_args.setdefault('timeout',self.timeout)
140 self.execute( cmd= "set interfaces ethernet eth0 duplex "+ arguments, prompt = prompt, timeout = timeout )
141 return main.TRUE
142
144 '''Possible Options :[]'''
145 arguments= ''
146 for option in options:
147 arguments = arguments + option +' '
148 prompt = def_args.setdefault('prompt',self.prompt)
149 timeout = def_args.setdefault('timeout',self.timeout)
150 self.execute( cmd= "show interfaces ethernet eth1 hw-id "+ arguments, prompt = prompt, timeout = timeout )
151 return main.TRUE
152
154 '''Possible Options :['auto']'''
155 arguments= ''
156 for option in options:
157 arguments = arguments + option +' '
158 prompt = def_args.setdefault('prompt',self.prompt)
159 timeout = def_args.setdefault('timeout',self.timeout)
160 self.execute( cmd= "show interfaces ethernet eth0 speed "+ arguments, prompt = prompt, timeout = timeout )
161 return main.TRUE
162
164 '''Possible Options :['auto']'''
165 arguments= ''
166 for option in options:
167 arguments = arguments + option +' '
168 prompt = def_args.setdefault('prompt',self.prompt)
169 timeout = def_args.setdefault('timeout',self.timeout)
170 self.execute( cmd= "show interfaces ethernet eth1 speed "+ arguments, prompt = prompt, timeout = timeout )
171 return main.TRUE
172
174 '''Possible Options :[]'''
175 arguments= ''
176 for option in options:
177 arguments = arguments + option +' '
178 prompt = def_args.setdefault('prompt',self.prompt)
179 timeout = def_args.setdefault('timeout',self.timeout)
180 self.execute( cmd= "show interfaces ethernet eth0 hw-id "+ arguments, prompt = prompt, timeout = timeout )
181 return main.TRUE
182
184 '''Possible Options :[]'''
185 arguments= ''
186 for option in options:
187 arguments = arguments + option +' '
188 prompt = def_args.setdefault('prompt',self.prompt)
189 timeout = def_args.setdefault('timeout',self.timeout)
190 self.execute( cmd= "set interfaces ethernet eth0 Ignore "+ arguments, prompt = prompt, timeout = timeout )
191 return main.TRUE
192
194 '''Possible Options :['auto']'''
195 arguments= ''
196 for option in options:
197 arguments = arguments + option +' '
198 prompt = def_args.setdefault('prompt',self.prompt)
199 timeout = def_args.setdefault('timeout',self.timeout)
200 self.execute( cmd= "show interfaces ethernet eth1 duplex "+ arguments, prompt = prompt, timeout = timeout )
201 return main.TRUE
202
204 '''Possible Options :['auto']'''
205 arguments= ''
206 for option in options:
207 arguments = arguments + option +' '
208 prompt = def_args.setdefault('prompt',self.prompt)
209 timeout = def_args.setdefault('timeout',self.timeout)
210 self.execute( cmd= "show interfaces ethernet eth0 duplex "+ arguments, prompt = prompt, timeout = timeout )
211 return main.TRUE
212
214 '''Possible Options :['authentication', 'OSPF', 'bandwidth', 'cost', 'dead-interval', 'Interval', 'hello-interval', 'Interval', 'mtu-ignore', 'network', 'priority', 'retransmit-interval', 'Interval', 'transmit-delay', 'Link']'''
215 arguments= ''
216 for option in options:
217 arguments = arguments + option +' '
218 prompt = def_args.setdefault('prompt',self.prompt)
219 timeout = def_args.setdefault('timeout',self.timeout)
220 self.execute( cmd= "set interfaces ethernet eth0 ip ospf "+ arguments, prompt = prompt, timeout = timeout )
221 return main.TRUE
222
224 '''Possible Options :[]'''
225 arguments= ''
226 for option in options:
227 arguments = arguments + option +' '
228 prompt = def_args.setdefault('prompt',self.prompt)
229 timeout = def_args.setdefault('timeout',self.timeout)
230 self.execute( cmd= "set interfaces ethernet eth0 Disable "+ arguments, prompt = prompt, timeout = timeout )
231 return main.TRUE
232
234 '''Possible Options :[]'''
235 arguments= ''
236 for option in options:
237 arguments = arguments + option +' '
238 prompt = def_args.setdefault('prompt',self.prompt)
239 timeout = def_args.setdefault('timeout',self.timeout)
240 self.execute( cmd= "set interfaces ethernet eth0 disable "+ arguments, prompt = prompt, timeout = timeout )
241 return main.TRUE
242
244 '''Possible Options :[]'''
245 arguments= ''
246 for option in options:
247 arguments = arguments + option +' '
248 prompt = def_args.setdefault('prompt',self.prompt)
249 timeout = def_args.setdefault('timeout',self.timeout)
250 self.execute( cmd= "set interfaces ethernet eth0 address "+ arguments, prompt = prompt, timeout = timeout )
251 return main.TRUE
252
254 '''Possible Options :['in', 'local', 'out']'''
255 arguments= ''
256 for option in options:
257 arguments = arguments + option +' '
258 prompt = def_args.setdefault('prompt',self.prompt)
259 timeout = def_args.setdefault('timeout',self.timeout)
260 self.execute( cmd= "set interfaces ethernet eth0 firewall "+ arguments, prompt = prompt, timeout = timeout )
261 return main.TRUE
262
264 '''Possible Options :['192.168.56.81/24']'''
265 arguments= ''
266 for option in options:
267 arguments = arguments + option +' '
268 prompt = def_args.setdefault('prompt',self.prompt)
269 timeout = def_args.setdefault('timeout',self.timeout)
270 self.execute( cmd= "show interfaces ethernet eth1 address "+ arguments, prompt = prompt, timeout = timeout )
271 return main.TRUE
272
274 '''Possible Options :[]'''
275 arguments= ''
276 for option in options:
277 arguments = arguments + option +' '
278 prompt = def_args.setdefault('prompt',self.prompt)
279 timeout = def_args.setdefault('timeout',self.timeout)
280 self.execute( cmd= "set interfaces ethernet eth0 ip Enable "+ arguments, prompt = prompt, timeout = timeout )
281 return main.TRUE
282
284 '''Possible Options :[]'''
285 arguments= ''
286 for option in options:
287 arguments = arguments + option +' '
288 prompt = def_args.setdefault('prompt',self.prompt)
289 timeout = def_args.setdefault('timeout',self.timeout)
290 self.execute( cmd= "set interfaces ethernet eth0 bond-group "+ arguments, prompt = prompt, timeout = timeout )
291 return main.TRUE
292
294 '''Possible Options :[]'''
295 arguments= ''
296 for option in options:
297 arguments = arguments + option +' '
298 prompt = def_args.setdefault('prompt',self.prompt)
299 timeout = def_args.setdefault('timeout',self.timeout)
300 self.execute( cmd= "set interfaces ethernet eth0 duplex half "+ arguments, prompt = prompt, timeout = timeout )
301 return main.TRUE
302
304 '''Possible Options :['ipv6-name', 'name']'''
305 arguments= ''
306 for option in options:
307 arguments = arguments + option +' '
308 prompt = def_args.setdefault('prompt',self.prompt)
309 timeout = def_args.setdefault('timeout',self.timeout)
310 self.execute( cmd= "set interfaces ethernet eth0 firewall in "+ arguments, prompt = prompt, timeout = timeout )
311 return main.TRUE
312
314 '''Possible Options :[]'''
315 arguments= ''
316 for option in options:
317 arguments = arguments + option +' '
318 prompt = def_args.setdefault('prompt',self.prompt)
319 timeout = def_args.setdefault('timeout',self.timeout)
320 self.execute( cmd= "show interfaces ethernet eth1 speed auto "+ arguments, prompt = prompt, timeout = timeout )
321 return main.TRUE
322
324 '''Possible Options :[]'''
325 arguments= ''
326 for option in options:
327 arguments = arguments + option +' '
328 prompt = def_args.setdefault('prompt',self.prompt)
329 timeout = def_args.setdefault('timeout',self.timeout)
330 self.execute( cmd= "set interfaces ethernet eth0 description "+ arguments, prompt = prompt, timeout = timeout )
331 return main.TRUE
332
334 '''Possible Options :[]'''
335 arguments= ''
336 for option in options:
337 arguments = arguments + option +' '
338 prompt = def_args.setdefault('prompt',self.prompt)
339 timeout = def_args.setdefault('timeout',self.timeout)
340 self.execute( cmd= "show interfaces ethernet eth0 speed auto "+ arguments, prompt = prompt, timeout = timeout )
341 return main.TRUE
342
352
354 '''Possible Options :[]'''
355 arguments= ''
356 for option in options:
357 arguments = arguments + option +' '
358 prompt = def_args.setdefault('prompt',self.prompt)
359 timeout = def_args.setdefault('timeout',self.timeout)
360 self.execute( cmd= "set interfaces ethernet eth0 duplex auto "+ arguments, prompt = prompt, timeout = timeout )
361 return main.TRUE
362
364 '''Possible Options :[]'''
365 arguments= ''
366 for option in options:
367 arguments = arguments + option +' '
368 prompt = def_args.setdefault('prompt',self.prompt)
369 timeout = def_args.setdefault('timeout',self.timeout)
370 self.execute( cmd= "set interfaces ethernet eth0 duplex full "+ arguments, prompt = prompt, timeout = timeout )
371 return main.TRUE
372
374 '''Possible Options :[]'''
375 arguments= ''
376 for option in options:
377 arguments = arguments + option +' '
378 prompt = def_args.setdefault('prompt',self.prompt)
379 timeout = def_args.setdefault('timeout',self.timeout)
380 self.execute( cmd= "show interfaces ethernet eth0 duplex auto "+ arguments, prompt = prompt, timeout = timeout )
381 return main.TRUE
382
384 '''Possible Options :[]'''
385 arguments= ''
386 for option in options:
387 arguments = arguments + option +' '
388 prompt = def_args.setdefault('prompt',self.prompt)
389 timeout = def_args.setdefault('timeout',self.timeout)
390 self.execute( cmd= "set interfaces ethernet eth0 ip ospf OSPF "+ arguments, prompt = prompt, timeout = timeout )
391 return main.TRUE
392
394 '''Possible Options :['ipv6-name', 'name']'''
395 arguments= ''
396 for option in options:
397 arguments = arguments + option +' '
398 prompt = def_args.setdefault('prompt',self.prompt)
399 timeout = def_args.setdefault('timeout',self.timeout)
400 self.execute( cmd= "set interfaces ethernet eth0 firewall out "+ arguments, prompt = prompt, timeout = timeout )
401 return main.TRUE
402
404 '''Possible Options :['bridge', 'cost', 'priority']'''
405 arguments= ''
406 for option in options:
407 arguments = arguments + option +' '
408 prompt = def_args.setdefault('prompt',self.prompt)
409 timeout = def_args.setdefault('timeout',self.timeout)
410 self.execute( cmd= "set interfaces ethernet eth0 bridge-group "+ arguments, prompt = prompt, timeout = timeout )
411 return main.TRUE
412
414 '''Possible Options :[]'''
415 arguments= ''
416 for option in options:
417 arguments = arguments + option +' '
418 prompt = def_args.setdefault('prompt',self.prompt)
419 timeout = def_args.setdefault('timeout',self.timeout)
420 self.execute( cmd= "show interfaces ethernet eth1 duplex auto "+ arguments, prompt = prompt, timeout = timeout )
421 return main.TRUE
422
424 '''Possible Options :[]'''
425 arguments= ''
426 for option in options:
427 arguments = arguments + option +' '
428 prompt = def_args.setdefault('prompt',self.prompt)
429 timeout = def_args.setdefault('timeout',self.timeout)
430 self.execute( cmd= "set interfaces ethernet eth0 ip ospf cost "+ arguments, prompt = prompt, timeout = timeout )
431 return main.TRUE
432
434 '''Possible Options :['auto']'''
435 arguments= ''
436 for option in options:
437 arguments = arguments + option +' '
438 prompt = def_args.setdefault('prompt',self.prompt)
439 timeout = def_args.setdefault('timeout',self.timeout)
440 self.execute( cmd= "show interfaces ethernet eth0 smp_affinity "+ arguments, prompt = prompt, timeout = timeout )
441 return main.TRUE
442
444 '''Possible Options :['auto']'''
445 arguments= ''
446 for option in options:
447 arguments = arguments + option +' '
448 prompt = def_args.setdefault('prompt',self.prompt)
449 timeout = def_args.setdefault('timeout',self.timeout)
450 self.execute( cmd= "show interfaces ethernet eth1 smp_affinity "+ arguments, prompt = prompt, timeout = timeout )
451 return main.TRUE
452
454 '''Possible Options :['ipv6-name', 'name']'''
455 arguments= ''
456 for option in options:
457 arguments = arguments + option +' '
458 prompt = def_args.setdefault('prompt',self.prompt)
459 timeout = def_args.setdefault('timeout',self.timeout)
460 self.execute( cmd= "set interfaces ethernet eth0 firewall local "+ arguments, prompt = prompt, timeout = timeout )
461 return main.TRUE
462
464 '''Possible Options :['parameters-only', 'Acquire', 'temporary']'''
465 arguments= ''
466 for option in options:
467 arguments = arguments + option +' '
468 prompt = def_args.setdefault('prompt',self.prompt)
469 timeout = def_args.setdefault('timeout',self.timeout)
470 self.execute( cmd= "set interfaces ethernet eth0 dhcpv6-options "+ arguments, prompt = prompt, timeout = timeout )
471 return main.TRUE
472
474 '''Possible Options :[]'''
475 arguments= ''
476 for option in options:
477 arguments = arguments + option +' '
478 prompt = def_args.setdefault('prompt',self.prompt)
479 timeout = def_args.setdefault('timeout',self.timeout)
480 self.execute( cmd= "set interfaces ethernet eth0 firewall in name "+ arguments, prompt = prompt, timeout = timeout )
481 return main.TRUE
482
484 '''Possible Options :[]'''
485 arguments= ''
486 for option in options:
487 arguments = arguments + option +' '
488 prompt = def_args.setdefault('prompt',self.prompt)
489 timeout = def_args.setdefault('timeout',self.timeout)
490 self.execute( cmd= "set interfaces ethernet eth0 bridge-group cost "+ arguments, prompt = prompt, timeout = timeout )
491 return main.TRUE
492
494 '''Possible Options :[]'''
495 arguments= ''
496 for option in options:
497 arguments = arguments + option +' '
498 prompt = def_args.setdefault('prompt',self.prompt)
499 timeout = def_args.setdefault('timeout',self.timeout)
500 self.execute( cmd= "set interfaces ethernet eth0 firewall out name "+ arguments, prompt = prompt, timeout = timeout )
501 return main.TRUE
502
504 '''Possible Options :[]'''
505 arguments= ''
506 for option in options:
507 arguments = arguments + option +' '
508 prompt = def_args.setdefault('prompt',self.prompt)
509 timeout = def_args.setdefault('timeout',self.timeout)
510 self.execute( cmd= "set interfaces ethernet eth0 ip ospf bandwidth "+ arguments, prompt = prompt, timeout = timeout )
511 return main.TRUE
512
514 '''Possible Options :[]'''
515 arguments= ''
516 for option in options:
517 arguments = arguments + option +' '
518 prompt = def_args.setdefault('prompt',self.prompt)
519 timeout = def_args.setdefault('timeout',self.timeout)
520 self.execute( cmd= "show interfaces ethernet eth0 smp_affinity auto "+ arguments, prompt = prompt, timeout = timeout )
521 return main.TRUE
522
524 '''Possible Options :[]'''
525 arguments= ''
526 for option in options:
527 arguments = arguments + option +' '
528 prompt = def_args.setdefault('prompt',self.prompt)
529 timeout = def_args.setdefault('timeout',self.timeout)
530 self.execute( cmd= "show interfaces ethernet eth1 smp_affinity auto "+ arguments, prompt = prompt, timeout = timeout )
531 return main.TRUE
532
534 '''Possible Options :[]'''
535 arguments= ''
536 for option in options:
537 arguments = arguments + option +' '
538 prompt = def_args.setdefault('prompt',self.prompt)
539 timeout = def_args.setdefault('timeout',self.timeout)
540 self.execute( cmd= "set interfaces ethernet eth0 ip enable-proxy-arp "+ arguments, prompt = prompt, timeout = timeout )
541 return main.TRUE
542
544 '''Possible Options :[]'''
545 arguments= ''
546 for option in options:
547 arguments = arguments + option +' '
548 prompt = def_args.setdefault('prompt',self.prompt)
549 timeout = def_args.setdefault('timeout',self.timeout)
550 self.execute( cmd= "set interfaces ethernet eth0 disable-link-detect "+ arguments, prompt = prompt, timeout = timeout )
551 return main.TRUE
552
554 '''Possible Options :[]'''
555 arguments= ''
556 for option in options:
557 arguments = arguments + option +' '
558 prompt = def_args.setdefault('prompt',self.prompt)
559 timeout = def_args.setdefault('timeout',self.timeout)
560 self.execute( cmd= "set interfaces ethernet eth0 firewall local name "+ arguments, prompt = prompt, timeout = timeout )
561 return main.TRUE
562
564 '''Possible Options :[]'''
565 arguments= ''
566 for option in options:
567 arguments = arguments + option +' '
568 prompt = def_args.setdefault('prompt',self.prompt)
569 timeout = def_args.setdefault('timeout',self.timeout)
570 self.execute( cmd= "set interfaces ethernet eth0 bridge-group bridge "+ arguments, prompt = prompt, timeout = timeout )
571 return main.TRUE
572
574 '''Possible Options :[]'''
575 arguments= ''
576 for option in options:
577 arguments = arguments + option +' '
578 prompt = def_args.setdefault('prompt',self.prompt)
579 timeout = def_args.setdefault('timeout',self.timeout)
580 self.execute( cmd= "set interfaces ethernet eth0 disable-flow-control "+ arguments, prompt = prompt, timeout = timeout )
581 return main.TRUE
582
584 '''Possible Options :[]'''
585 arguments= ''
586 for option in options:
587 arguments = arguments + option +' '
588 prompt = def_args.setdefault('prompt',self.prompt)
589 timeout = def_args.setdefault('timeout',self.timeout)
590 self.execute( cmd= "set interfaces ethernet eth0 bridge-group priority "+ arguments, prompt = prompt, timeout = timeout )
591 return main.TRUE
592
594 '''Possible Options :[]'''
595 arguments= ''
596 for option in options:
597 arguments = arguments + option +' '
598 prompt = def_args.setdefault('prompt',self.prompt)
599 timeout = def_args.setdefault('timeout',self.timeout)
600 self.execute( cmd= "set interfaces ethernet eth0 firewall in ipv6-name "+ arguments, prompt = prompt, timeout = timeout )
601 return main.TRUE
602
604 '''Possible Options :[]'''
605 arguments= ''
606 for option in options:
607 arguments = arguments + option +' '
608 prompt = def_args.setdefault('prompt',self.prompt)
609 timeout = def_args.setdefault('timeout',self.timeout)
610 self.execute( cmd= "set interfaces ethernet eth0 dhcpv6-options Acquire "+ arguments, prompt = prompt, timeout = timeout )
611 return main.TRUE
612
614 '''Possible Options :[]'''
615 arguments= ''
616 for option in options:
617 arguments = arguments + option +' '
618 prompt = def_args.setdefault('prompt',self.prompt)
619 timeout = def_args.setdefault('timeout',self.timeout)
620 self.execute( cmd= "set interfaces ethernet eth0 firewall out ipv6-name "+ arguments, prompt = prompt, timeout = timeout )
621 return main.TRUE
622
624 '''Possible Options :['md5', 'plaintext-password', 'Plain']'''
625 arguments= ''
626 for option in options:
627 arguments = arguments + option +' '
628 prompt = def_args.setdefault('prompt',self.prompt)
629 timeout = def_args.setdefault('timeout',self.timeout)
630 self.execute( cmd= "set interfaces ethernet eth0 ip ospf authentication "+ arguments, prompt = prompt, timeout = timeout )
631 return main.TRUE
632
634 '''Possible Options :[]'''
635 arguments= ''
636 for option in options:
637 arguments = arguments + option +' '
638 prompt = def_args.setdefault('prompt',self.prompt)
639 timeout = def_args.setdefault('timeout',self.timeout)
640 self.execute( cmd= "set interfaces ethernet eth0 firewall local ipv6-name "+ arguments, prompt = prompt, timeout = timeout )
641 return main.TRUE
642
644 '''Possible Options :[]'''
645 arguments= ''
646 for option in options:
647 arguments = arguments + option +' '
648 prompt = def_args.setdefault('prompt',self.prompt)
649 timeout = def_args.setdefault('timeout',self.timeout)
650 self.execute( cmd= "set interfaces ethernet eth0 dhcpv6-options temporary "+ arguments, prompt = prompt, timeout = timeout )
651 return main.TRUE
652
654 '''Possible Options :['key-id']'''
655 arguments= ''
656 for option in options:
657 arguments = arguments + option +' '
658 prompt = def_args.setdefault('prompt',self.prompt)
659 timeout = def_args.setdefault('timeout',self.timeout)
660 self.execute( cmd= "set interfaces ethernet eth0 ip ospf authentication md5 "+ arguments, prompt = prompt, timeout = timeout )
661 return main.TRUE
662
664 '''Possible Options :[]'''
665 arguments= ''
666 for option in options:
667 arguments = arguments + option +' '
668 prompt = def_args.setdefault('prompt',self.prompt)
669 timeout = def_args.setdefault('timeout',self.timeout)
670 self.execute( cmd= "set interfaces ethernet eth0 ip ospf authentication Plain "+ arguments, prompt = prompt, timeout = timeout )
671 return main.TRUE
672
674 '''Possible Options :[]'''
675 arguments= ''
676 for option in options:
677 arguments = arguments + option +' '
678 prompt = def_args.setdefault('prompt',self.prompt)
679 timeout = def_args.setdefault('timeout',self.timeout)
680 self.execute( cmd= "set interfaces ethernet eth0 dhcpv6-options parameters-only "+ arguments, prompt = prompt, timeout = timeout )
681 return main.TRUE
682
684 '''Possible Options :[]'''
685 arguments= ''
686 for option in options:
687 arguments = arguments + option +' '
688 prompt = def_args.setdefault('prompt',self.prompt)
689 timeout = def_args.setdefault('timeout',self.timeout)
690 self.execute( cmd= "set interfaces ethernet eth0 ip ospf authentication md5 key-id "+ arguments, prompt = prompt, timeout = timeout )
691 return main.TRUE
692
694 '''Possible Options :[]'''
695 arguments= ''
696 for option in options:
697 arguments = arguments + option +' '
698 prompt = def_args.setdefault('prompt',self.prompt)
699 timeout = def_args.setdefault('timeout',self.timeout)
700 self.execute( cmd= "set interfaces ethernet eth0 ip ospf authentication plaintext-password "+ arguments, prompt = prompt, timeout = timeout )
701 return main.TRUE
702