blob: 225e578dd119b1480509635ac8d97ade0ec6d0ca [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
Jon Hall4ba53f02015-07-29 13:07:41 -070014 along with TestON. If not, see <http://www.gnu.org/licenses/>.
adminbae64d82013-08-01 10:50:15 -070015
16
17'''
18class Vyatta:
19 def __init__( self ):
20 self.prompt = '(.*)'
Jon Hall4ba53f02015-07-29 13:07:41 -070021 self.timeout = 60
adminbae64d82013-08-01 10:50:15 -070022
23 def show_interfaces(self, *options, **def_args ):
24 '''Possible Options :['ethernet', 'loopback']'''
25 arguments= ''
26 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -070027 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -070028 prompt = def_args.setdefault('prompt',self.prompt)
29 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -070030 self.execute( cmd= "show interfaces "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -070031 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:
Jon Hall4ba53f02015-07-29 13:07:41 -070037 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -070038 prompt = def_args.setdefault('prompt',self.prompt)
39 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -070040 self.execute( cmd= "set interfaces ethernet "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -070041 return main.TRUE
42
43 def show_interfaces_loopback(self, *options, **def_args ):
44 '''Possible Options :['lo']'''
45 arguments= ''
46 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -070047 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -070048 prompt = def_args.setdefault('prompt',self.prompt)
49 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -070050 self.execute( cmd= "show interfaces loopback "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -070051 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:
Jon Hall4ba53f02015-07-29 13:07:41 -070057 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -070058 prompt = def_args.setdefault('prompt',self.prompt)
59 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -070060 self.execute( cmd= "show interfaces ethernet "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -070061 return main.TRUE
62
63 def show_interfaces_loopback_lo(self, *options, **def_args ):
64 '''Possible Options :[]'''
65 arguments= ''
66 for option in options:
Jon Hall4ba53f02015-07-29 13:07:41 -070067 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -070068 prompt = def_args.setdefault('prompt',self.prompt)
69 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -070070 self.execute( cmd= "show interfaces loopback lo "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -070071 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:
Jon Hall4ba53f02015-07-29 13:07:41 -070077 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -070078 prompt = def_args.setdefault('prompt',self.prompt)
79 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -070080 self.execute( cmd= "set interfaces ethernet eth0 "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -070081 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:
Jon Hall4ba53f02015-07-29 13:07:41 -070087 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -070088 prompt = def_args.setdefault('prompt',self.prompt)
89 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -070090 self.execute( cmd= "show interfaces ethernet eth1 "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -070091 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:
Jon Hall4ba53f02015-07-29 13:07:41 -070097 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -070098 prompt = def_args.setdefault('prompt',self.prompt)
99 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700100 self.execute( cmd= "show interfaces ethernet eth0 "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700101 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700107 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700108 prompt = def_args.setdefault('prompt',self.prompt)
109 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700110 self.execute( cmd= "set interfaces ethernet eth0 ip "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700111 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700117 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700118 prompt = def_args.setdefault('prompt',self.prompt)
119 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700120 self.execute( cmd= "set interfaces ethernet eth0 hw-id "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700121 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700127 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700128 prompt = def_args.setdefault('prompt',self.prompt)
129 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700130 self.execute( cmd= "set interfaces ethernet eth0 DHCPv6 "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700131 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700137 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700138 prompt = def_args.setdefault('prompt',self.prompt)
139 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700140 self.execute( cmd= "set interfaces ethernet eth0 duplex "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700141 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700147 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700148 prompt = def_args.setdefault('prompt',self.prompt)
149 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700150 self.execute( cmd= "show interfaces ethernet eth1 hw-id "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700151 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700157 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700158 prompt = def_args.setdefault('prompt',self.prompt)
159 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700160 self.execute( cmd= "show interfaces ethernet eth0 speed "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700161 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700167 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700168 prompt = def_args.setdefault('prompt',self.prompt)
169 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700170 self.execute( cmd= "show interfaces ethernet eth1 speed "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700171 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700177 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700178 prompt = def_args.setdefault('prompt',self.prompt)
179 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700180 self.execute( cmd= "show interfaces ethernet eth0 hw-id "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700181 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700187 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700188 prompt = def_args.setdefault('prompt',self.prompt)
189 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700190 self.execute( cmd= "set interfaces ethernet eth0 Ignore "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700191 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700197 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700198 prompt = def_args.setdefault('prompt',self.prompt)
199 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700200 self.execute( cmd= "show interfaces ethernet eth1 duplex "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700201 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700207 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700208 prompt = def_args.setdefault('prompt',self.prompt)
209 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700210 self.execute( cmd= "show interfaces ethernet eth0 duplex "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700211 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700217 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700218 prompt = def_args.setdefault('prompt',self.prompt)
219 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700220 self.execute( cmd= "set interfaces ethernet eth0 ip ospf "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700221 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700227 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700228 prompt = def_args.setdefault('prompt',self.prompt)
229 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700230 self.execute( cmd= "set interfaces ethernet eth0 Disable "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700231 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700237 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700238 prompt = def_args.setdefault('prompt',self.prompt)
239 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700240 self.execute( cmd= "set interfaces ethernet eth0 disable "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700241 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700247 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700248 prompt = def_args.setdefault('prompt',self.prompt)
249 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700250 self.execute( cmd= "set interfaces ethernet eth0 address "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700251 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700257 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700258 prompt = def_args.setdefault('prompt',self.prompt)
259 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700260 self.execute( cmd= "set interfaces ethernet eth0 firewall "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700261 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700267 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700268 prompt = def_args.setdefault('prompt',self.prompt)
269 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700270 self.execute( cmd= "show interfaces ethernet eth1 address "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700271 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700277 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700278 prompt = def_args.setdefault('prompt',self.prompt)
279 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700280 self.execute( cmd= "set interfaces ethernet eth0 ip Enable "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700281 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700287 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700288 prompt = def_args.setdefault('prompt',self.prompt)
289 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700290 self.execute( cmd= "set interfaces ethernet eth0 bond-group "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700291 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700297 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700298 prompt = def_args.setdefault('prompt',self.prompt)
299 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700300 self.execute( cmd= "set interfaces ethernet eth0 duplex half "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700301 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700307 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700308 prompt = def_args.setdefault('prompt',self.prompt)
309 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700310 self.execute( cmd= "set interfaces ethernet eth0 firewall in "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700311 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700317 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700318 prompt = def_args.setdefault('prompt',self.prompt)
319 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700320 self.execute( cmd= "show interfaces ethernet eth1 speed auto "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700321 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700327 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700328 prompt = def_args.setdefault('prompt',self.prompt)
329 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700330 self.execute( cmd= "set interfaces ethernet eth0 description "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700331 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700337 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700338 prompt = def_args.setdefault('prompt',self.prompt)
339 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700340 self.execute( cmd= "show interfaces ethernet eth0 speed auto "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700341 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700347 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700348 prompt = def_args.setdefault('prompt',self.prompt)
349 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700350 self.execute( cmd= "set interfaces ethernet eth0 hw-id Media "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700351 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700357 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700358 prompt = def_args.setdefault('prompt',self.prompt)
359 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700360 self.execute( cmd= "set interfaces ethernet eth0 duplex auto "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700361 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700367 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700368 prompt = def_args.setdefault('prompt',self.prompt)
369 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700370 self.execute( cmd= "set interfaces ethernet eth0 duplex full "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700371 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700377 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700378 prompt = def_args.setdefault('prompt',self.prompt)
379 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700380 self.execute( cmd= "show interfaces ethernet eth0 duplex auto "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700381 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700387 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700388 prompt = def_args.setdefault('prompt',self.prompt)
389 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700390 self.execute( cmd= "set interfaces ethernet eth0 ip ospf OSPF "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700391 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700397 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700398 prompt = def_args.setdefault('prompt',self.prompt)
399 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700400 self.execute( cmd= "set interfaces ethernet eth0 firewall out "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700401 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700407 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700408 prompt = def_args.setdefault('prompt',self.prompt)
409 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700410 self.execute( cmd= "set interfaces ethernet eth0 bridge-group "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700411 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700417 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700418 prompt = def_args.setdefault('prompt',self.prompt)
419 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700420 self.execute( cmd= "show interfaces ethernet eth1 duplex auto "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700421 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700427 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700428 prompt = def_args.setdefault('prompt',self.prompt)
429 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700430 self.execute( cmd= "set interfaces ethernet eth0 ip ospf cost "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700431 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700437 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700438 prompt = def_args.setdefault('prompt',self.prompt)
439 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700440 self.execute( cmd= "show interfaces ethernet eth0 smp_affinity "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700441 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700447 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700448 prompt = def_args.setdefault('prompt',self.prompt)
449 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700450 self.execute( cmd= "show interfaces ethernet eth1 smp_affinity "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700451 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700457 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700458 prompt = def_args.setdefault('prompt',self.prompt)
459 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700460 self.execute( cmd= "set interfaces ethernet eth0 firewall local "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700461 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700467 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700468 prompt = def_args.setdefault('prompt',self.prompt)
469 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700470 self.execute( cmd= "set interfaces ethernet eth0 dhcpv6-options "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700471 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700477 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700478 prompt = def_args.setdefault('prompt',self.prompt)
479 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700480 self.execute( cmd= "set interfaces ethernet eth0 firewall in name "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700481 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700487 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700488 prompt = def_args.setdefault('prompt',self.prompt)
489 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700490 self.execute( cmd= "set interfaces ethernet eth0 bridge-group cost "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700491 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700497 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700498 prompt = def_args.setdefault('prompt',self.prompt)
499 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700500 self.execute( cmd= "set interfaces ethernet eth0 firewall out name "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700501 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700507 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700508 prompt = def_args.setdefault('prompt',self.prompt)
509 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700510 self.execute( cmd= "set interfaces ethernet eth0 ip ospf bandwidth "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700511 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700517 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700518 prompt = def_args.setdefault('prompt',self.prompt)
519 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700520 self.execute( cmd= "show interfaces ethernet eth0 smp_affinity auto "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700521 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700527 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700528 prompt = def_args.setdefault('prompt',self.prompt)
529 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700530 self.execute( cmd= "show interfaces ethernet eth1 smp_affinity auto "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700531 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700537 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700538 prompt = def_args.setdefault('prompt',self.prompt)
539 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700540 self.execute( cmd= "set interfaces ethernet eth0 ip enable-proxy-arp "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700541 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700547 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700548 prompt = def_args.setdefault('prompt',self.prompt)
549 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700550 self.execute( cmd= "set interfaces ethernet eth0 disable-link-detect "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700551 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700557 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700558 prompt = def_args.setdefault('prompt',self.prompt)
559 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700560 self.execute( cmd= "set interfaces ethernet eth0 firewall local name "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700561 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700567 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700568 prompt = def_args.setdefault('prompt',self.prompt)
569 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700570 self.execute( cmd= "set interfaces ethernet eth0 bridge-group bridge "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700571 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700577 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700578 prompt = def_args.setdefault('prompt',self.prompt)
579 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700580 self.execute( cmd= "set interfaces ethernet eth0 disable-flow-control "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700581 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700587 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700588 prompt = def_args.setdefault('prompt',self.prompt)
589 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700590 self.execute( cmd= "set interfaces ethernet eth0 bridge-group priority "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700591 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700597 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700598 prompt = def_args.setdefault('prompt',self.prompt)
599 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700600 self.execute( cmd= "set interfaces ethernet eth0 firewall in ipv6-name "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700601 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700607 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700608 prompt = def_args.setdefault('prompt',self.prompt)
609 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700610 self.execute( cmd= "set interfaces ethernet eth0 dhcpv6-options Acquire "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700611 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700617 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700618 prompt = def_args.setdefault('prompt',self.prompt)
619 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700620 self.execute( cmd= "set interfaces ethernet eth0 firewall out ipv6-name "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700621 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700627 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700628 prompt = def_args.setdefault('prompt',self.prompt)
629 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700630 self.execute( cmd= "set interfaces ethernet eth0 ip ospf authentication "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700631 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700637 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700638 prompt = def_args.setdefault('prompt',self.prompt)
639 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700640 self.execute( cmd= "set interfaces ethernet eth0 firewall local ipv6-name "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700641 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700647 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700648 prompt = def_args.setdefault('prompt',self.prompt)
649 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700650 self.execute( cmd= "set interfaces ethernet eth0 dhcpv6-options temporary "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700651 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700657 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700658 prompt = def_args.setdefault('prompt',self.prompt)
659 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700660 self.execute( cmd= "set interfaces ethernet eth0 ip ospf authentication md5 "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700661 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700667 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700668 prompt = def_args.setdefault('prompt',self.prompt)
669 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700670 self.execute( cmd= "set interfaces ethernet eth0 ip ospf authentication Plain "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700671 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700677 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700678 prompt = def_args.setdefault('prompt',self.prompt)
679 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700680 self.execute( cmd= "set interfaces ethernet eth0 dhcpv6-options parameters-only "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700681 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700687 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700688 prompt = def_args.setdefault('prompt',self.prompt)
689 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700690 self.execute( cmd= "set interfaces ethernet eth0 ip ospf authentication md5 key-id "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700691 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:
Jon Hall4ba53f02015-07-29 13:07:41 -0700697 arguments = arguments + option +' '
adminbae64d82013-08-01 10:50:15 -0700698 prompt = def_args.setdefault('prompt',self.prompt)
699 timeout = def_args.setdefault('timeout',self.timeout)
Jon Hall4ba53f02015-07-29 13:07:41 -0700700 self.execute( cmd= "set interfaces ethernet eth0 ip ospf authentication plaintext-password "+ arguments, prompt = prompt, timeout = timeout )
adminbae64d82013-08-01 10:50:15 -0700701 return main.TRUE
702