blob: 31bb57e32455a7e66d7a03a6ad4757d4d6164dfd [file] [log] [blame]
adminbae64d82013-08-01 10:50:15 -07001'''
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'''
18class Vyatta:
19 def __init__( self ):
20 self.prompt = '(.*)'
21 self.timeout = 60
22
23 def show_interfaces(self, *options, **def_args ):
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
33 def set_interfaces_ethernet(self, *options, **def_args ):
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
43 def show_interfaces_loopback(self, *options, **def_args ):
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
53 def show_interfaces_ethernet(self, *options, **def_args ):
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
63 def show_interfaces_loopback_lo(self, *options, **def_args ):
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
73 def set_interfaces_ethernet_eth0(self, *options, **def_args ):
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
83 def show_interfaces_ethernet_eth1(self, *options, **def_args ):
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
93 def show_interfaces_ethernet_eth0(self, *options, **def_args ):
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
103 def set_interfaces_ethernet_eth0_ip(self, *options, **def_args ):
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
113 def set_interfaces_ethernet_eth0_hwid(self, *options, **def_args ):
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
123 def set_interfaces_ethernet_eth0_DHCPv6(self, *options, **def_args ):
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
133 def set_interfaces_ethernet_eth0_duplex(self, *options, **def_args ):
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
143 def show_interfaces_ethernet_eth1_hwid(self, *options, **def_args ):
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
153 def show_interfaces_ethernet_eth0_speed(self, *options, **def_args ):
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
163 def show_interfaces_ethernet_eth1_speed(self, *options, **def_args ):
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
173 def show_interfaces_ethernet_eth0_hwid(self, *options, **def_args ):
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
183 def set_interfaces_ethernet_eth0_Ignore(self, *options, **def_args ):
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
193 def show_interfaces_ethernet_eth1_duplex(self, *options, **def_args ):
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
203 def show_interfaces_ethernet_eth0_duplex(self, *options, **def_args ):
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
213 def set_interfaces_ethernet_eth0_ip_ospf(self, *options, **def_args ):
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
223 def set_interfaces_ethernet_eth0_Disable(self, *options, **def_args ):
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
233 def set_interfaces_ethernet_eth0_disable(self, *options, **def_args ):
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
243 def set_interfaces_ethernet_eth0_address(self, *options, **def_args ):
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
253 def set_interfaces_ethernet_eth0_firewall(self, *options, **def_args ):
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
263 def show_interfaces_ethernet_eth1_address(self, *options, **def_args ):
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
273 def set_interfaces_ethernet_eth0_ip_Enable(self, *options, **def_args ):
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
283 def set_interfaces_ethernet_eth0_bondgroup(self, *options, **def_args ):
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
293 def set_interfaces_ethernet_eth0_duplex_half(self, *options, **def_args ):
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
303 def set_interfaces_ethernet_eth0_firewall_in(self, *options, **def_args ):
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
313 def show_interfaces_ethernet_eth1_speed_auto(self, *options, **def_args ):
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
323 def set_interfaces_ethernet_eth0_description(self, *options, **def_args ):
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
333 def show_interfaces_ethernet_eth0_speed_auto(self, *options, **def_args ):
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
343 def set_interfaces_ethernet_eth0_hwid_Media(self, *options, **def_args ):
344 '''Possible Options :[]'''
345 arguments= ''
346 for option in options:
347 arguments = arguments + option +' '
348 prompt = def_args.setdefault('prompt',self.prompt)
349 timeout = def_args.setdefault('timeout',self.timeout)
350 self.execute( cmd= "set interfaces ethernet eth0 hw-id Media "+ arguments, prompt = prompt, timeout = timeout )
351 return main.TRUE
352
353 def set_interfaces_ethernet_eth0_duplex_auto(self, *options, **def_args ):
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
363 def set_interfaces_ethernet_eth0_duplex_full(self, *options, **def_args ):
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
373 def show_interfaces_ethernet_eth0_duplex_auto(self, *options, **def_args ):
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
383 def set_interfaces_ethernet_eth0_ip_ospf_OSPF(self, *options, **def_args ):
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
393 def set_interfaces_ethernet_eth0_firewall_out(self, *options, **def_args ):
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
403 def set_interfaces_ethernet_eth0_bridgegroup(self, *options, **def_args ):
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
413 def show_interfaces_ethernet_eth1_duplex_auto(self, *options, **def_args ):
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
423 def set_interfaces_ethernet_eth0_ip_ospf_cost(self, *options, **def_args ):
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
433 def show_interfaces_ethernet_eth0_smp_affinity(self, *options, **def_args ):
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
443 def show_interfaces_ethernet_eth1_smp_affinity(self, *options, **def_args ):
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
453 def set_interfaces_ethernet_eth0_firewall_local(self, *options, **def_args ):
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
463 def set_interfaces_ethernet_eth0_dhcpv6options(self, *options, **def_args ):
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
473 def set_interfaces_ethernet_eth0_firewall_in_name(self, *options, **def_args ):
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
483 def set_interfaces_ethernet_eth0_bridgegroup_cost(self, *options, **def_args ):
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
493 def set_interfaces_ethernet_eth0_firewall_out_name(self, *options, **def_args ):
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
503 def set_interfaces_ethernet_eth0_ip_ospf_bandwidth(self, *options, **def_args ):
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
513 def show_interfaces_ethernet_eth0_smp_affinity_auto(self, *options, **def_args ):
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
523 def show_interfaces_ethernet_eth1_smp_affinity_auto(self, *options, **def_args ):
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
533 def set_interfaces_ethernet_eth0_ip_enableproxyarp(self, *options, **def_args ):
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
543 def set_interfaces_ethernet_eth0_disablelinkdetect(self, *options, **def_args ):
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
553 def set_interfaces_ethernet_eth0_firewall_local_name(self, *options, **def_args ):
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
563 def set_interfaces_ethernet_eth0_bridgegroup_bridge(self, *options, **def_args ):
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
573 def set_interfaces_ethernet_eth0_disableflowcontrol(self, *options, **def_args ):
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
583 def set_interfaces_ethernet_eth0_bridgegroup_priority(self, *options, **def_args ):
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
593 def set_interfaces_ethernet_eth0_firewall_in_ipv6name(self, *options, **def_args ):
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
603 def set_interfaces_ethernet_eth0_dhcpv6options_Acquire(self, *options, **def_args ):
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
613 def set_interfaces_ethernet_eth0_firewall_out_ipv6name(self, *options, **def_args ):
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
623 def set_interfaces_ethernet_eth0_ip_ospf_authentication(self, *options, **def_args ):
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
633 def set_interfaces_ethernet_eth0_firewall_local_ipv6name(self, *options, **def_args ):
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
643 def set_interfaces_ethernet_eth0_dhcpv6options_temporary(self, *options, **def_args ):
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
653 def set_interfaces_ethernet_eth0_ip_ospf_authentication_md5(self, *options, **def_args ):
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
663 def set_interfaces_ethernet_eth0_ip_ospf_authentication_Plain(self, *options, **def_args ):
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
673 def set_interfaces_ethernet_eth0_dhcpv6options_parametersonly(self, *options, **def_args ):
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
683 def set_interfaces_ethernet_eth0_ip_ospf_authentication_md5_keyid(self, *options, **def_args ):
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
693 def set_interfaces_ethernet_eth0_ip_ospf_authentication_plaintextpassword(self, *options, **def_args ):
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