admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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 |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 14 | along with TestON. If not, see <http://www.gnu.org/licenses/>. |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 15 | |
| 16 | |
| 17 | ''' |
| 18 | class Vyatta: |
| 19 | def __init__( self ): |
| 20 | self.prompt = '(.*)' |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 21 | self.timeout = 60 |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 22 | |
| 23 | def show_interfaces(self, *options, **def_args ): |
| 24 | '''Possible Options :['ethernet', 'loopback']''' |
| 25 | arguments= '' |
| 26 | for option in options: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 27 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 28 | prompt = def_args.setdefault('prompt',self.prompt) |
| 29 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 30 | self.execute( cmd= "show interfaces "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 37 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 38 | prompt = def_args.setdefault('prompt',self.prompt) |
| 39 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 40 | self.execute( cmd= "set interfaces ethernet "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 47 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 48 | prompt = def_args.setdefault('prompt',self.prompt) |
| 49 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 50 | self.execute( cmd= "show interfaces loopback "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 57 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 58 | prompt = def_args.setdefault('prompt',self.prompt) |
| 59 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 60 | self.execute( cmd= "show interfaces ethernet "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 67 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 68 | prompt = def_args.setdefault('prompt',self.prompt) |
| 69 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 70 | self.execute( cmd= "show interfaces loopback lo "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 77 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 78 | prompt = def_args.setdefault('prompt',self.prompt) |
| 79 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 80 | self.execute( cmd= "set interfaces ethernet eth0 "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 87 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 88 | prompt = def_args.setdefault('prompt',self.prompt) |
| 89 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 90 | self.execute( cmd= "show interfaces ethernet eth1 "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 97 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 98 | prompt = def_args.setdefault('prompt',self.prompt) |
| 99 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 100 | self.execute( cmd= "show interfaces ethernet eth0 "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 107 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 108 | prompt = def_args.setdefault('prompt',self.prompt) |
| 109 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 110 | self.execute( cmd= "set interfaces ethernet eth0 ip "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 117 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 118 | prompt = def_args.setdefault('prompt',self.prompt) |
| 119 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 120 | self.execute( cmd= "set interfaces ethernet eth0 hw-id "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 127 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 128 | prompt = def_args.setdefault('prompt',self.prompt) |
| 129 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 130 | self.execute( cmd= "set interfaces ethernet eth0 DHCPv6 "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 137 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 138 | prompt = def_args.setdefault('prompt',self.prompt) |
| 139 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 140 | self.execute( cmd= "set interfaces ethernet eth0 duplex "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 147 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 148 | prompt = def_args.setdefault('prompt',self.prompt) |
| 149 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 150 | self.execute( cmd= "show interfaces ethernet eth1 hw-id "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 157 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 158 | prompt = def_args.setdefault('prompt',self.prompt) |
| 159 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 160 | self.execute( cmd= "show interfaces ethernet eth0 speed "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 167 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 168 | prompt = def_args.setdefault('prompt',self.prompt) |
| 169 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 170 | self.execute( cmd= "show interfaces ethernet eth1 speed "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 177 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 178 | prompt = def_args.setdefault('prompt',self.prompt) |
| 179 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 180 | self.execute( cmd= "show interfaces ethernet eth0 hw-id "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 187 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 188 | prompt = def_args.setdefault('prompt',self.prompt) |
| 189 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 190 | self.execute( cmd= "set interfaces ethernet eth0 Ignore "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 197 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 198 | prompt = def_args.setdefault('prompt',self.prompt) |
| 199 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 200 | self.execute( cmd= "show interfaces ethernet eth1 duplex "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 207 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 208 | prompt = def_args.setdefault('prompt',self.prompt) |
| 209 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 210 | self.execute( cmd= "show interfaces ethernet eth0 duplex "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 217 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 218 | prompt = def_args.setdefault('prompt',self.prompt) |
| 219 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 220 | self.execute( cmd= "set interfaces ethernet eth0 ip ospf "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 227 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 228 | prompt = def_args.setdefault('prompt',self.prompt) |
| 229 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 230 | self.execute( cmd= "set interfaces ethernet eth0 Disable "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 237 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 238 | prompt = def_args.setdefault('prompt',self.prompt) |
| 239 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 240 | self.execute( cmd= "set interfaces ethernet eth0 disable "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 247 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 248 | prompt = def_args.setdefault('prompt',self.prompt) |
| 249 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 250 | self.execute( cmd= "set interfaces ethernet eth0 address "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 257 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 258 | prompt = def_args.setdefault('prompt',self.prompt) |
| 259 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 260 | self.execute( cmd= "set interfaces ethernet eth0 firewall "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 267 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 268 | prompt = def_args.setdefault('prompt',self.prompt) |
| 269 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 270 | self.execute( cmd= "show interfaces ethernet eth1 address "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 277 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 278 | prompt = def_args.setdefault('prompt',self.prompt) |
| 279 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 280 | self.execute( cmd= "set interfaces ethernet eth0 ip Enable "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 287 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 288 | prompt = def_args.setdefault('prompt',self.prompt) |
| 289 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 290 | self.execute( cmd= "set interfaces ethernet eth0 bond-group "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 297 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 298 | prompt = def_args.setdefault('prompt',self.prompt) |
| 299 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 300 | self.execute( cmd= "set interfaces ethernet eth0 duplex half "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 307 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 308 | prompt = def_args.setdefault('prompt',self.prompt) |
| 309 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 310 | self.execute( cmd= "set interfaces ethernet eth0 firewall in "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 317 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 318 | prompt = def_args.setdefault('prompt',self.prompt) |
| 319 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 320 | self.execute( cmd= "show interfaces ethernet eth1 speed auto "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 327 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 328 | prompt = def_args.setdefault('prompt',self.prompt) |
| 329 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 330 | self.execute( cmd= "set interfaces ethernet eth0 description "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 337 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 338 | prompt = def_args.setdefault('prompt',self.prompt) |
| 339 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 340 | self.execute( cmd= "show interfaces ethernet eth0 speed auto "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 347 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 348 | prompt = def_args.setdefault('prompt',self.prompt) |
| 349 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 350 | self.execute( cmd= "set interfaces ethernet eth0 hw-id Media "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 357 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 358 | prompt = def_args.setdefault('prompt',self.prompt) |
| 359 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 360 | self.execute( cmd= "set interfaces ethernet eth0 duplex auto "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 367 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 368 | prompt = def_args.setdefault('prompt',self.prompt) |
| 369 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 370 | self.execute( cmd= "set interfaces ethernet eth0 duplex full "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 377 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 378 | prompt = def_args.setdefault('prompt',self.prompt) |
| 379 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 380 | self.execute( cmd= "show interfaces ethernet eth0 duplex auto "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 387 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 388 | prompt = def_args.setdefault('prompt',self.prompt) |
| 389 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 390 | self.execute( cmd= "set interfaces ethernet eth0 ip ospf OSPF "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 397 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 398 | prompt = def_args.setdefault('prompt',self.prompt) |
| 399 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 400 | self.execute( cmd= "set interfaces ethernet eth0 firewall out "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 407 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 408 | prompt = def_args.setdefault('prompt',self.prompt) |
| 409 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 410 | self.execute( cmd= "set interfaces ethernet eth0 bridge-group "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 417 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 418 | prompt = def_args.setdefault('prompt',self.prompt) |
| 419 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 420 | self.execute( cmd= "show interfaces ethernet eth1 duplex auto "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 427 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 428 | prompt = def_args.setdefault('prompt',self.prompt) |
| 429 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 430 | self.execute( cmd= "set interfaces ethernet eth0 ip ospf cost "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 437 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 438 | prompt = def_args.setdefault('prompt',self.prompt) |
| 439 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 440 | self.execute( cmd= "show interfaces ethernet eth0 smp_affinity "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 447 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 448 | prompt = def_args.setdefault('prompt',self.prompt) |
| 449 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 450 | self.execute( cmd= "show interfaces ethernet eth1 smp_affinity "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 457 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 458 | prompt = def_args.setdefault('prompt',self.prompt) |
| 459 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 460 | self.execute( cmd= "set interfaces ethernet eth0 firewall local "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 467 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 468 | prompt = def_args.setdefault('prompt',self.prompt) |
| 469 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 470 | self.execute( cmd= "set interfaces ethernet eth0 dhcpv6-options "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 477 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 478 | prompt = def_args.setdefault('prompt',self.prompt) |
| 479 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 480 | self.execute( cmd= "set interfaces ethernet eth0 firewall in name "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 487 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 488 | prompt = def_args.setdefault('prompt',self.prompt) |
| 489 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 490 | self.execute( cmd= "set interfaces ethernet eth0 bridge-group cost "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 497 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 498 | prompt = def_args.setdefault('prompt',self.prompt) |
| 499 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 500 | self.execute( cmd= "set interfaces ethernet eth0 firewall out name "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 507 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 508 | prompt = def_args.setdefault('prompt',self.prompt) |
| 509 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 510 | self.execute( cmd= "set interfaces ethernet eth0 ip ospf bandwidth "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 517 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 518 | prompt = def_args.setdefault('prompt',self.prompt) |
| 519 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 520 | self.execute( cmd= "show interfaces ethernet eth0 smp_affinity auto "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 527 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 528 | prompt = def_args.setdefault('prompt',self.prompt) |
| 529 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 530 | self.execute( cmd= "show interfaces ethernet eth1 smp_affinity auto "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 537 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 538 | prompt = def_args.setdefault('prompt',self.prompt) |
| 539 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 540 | self.execute( cmd= "set interfaces ethernet eth0 ip enable-proxy-arp "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 547 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 548 | prompt = def_args.setdefault('prompt',self.prompt) |
| 549 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 550 | self.execute( cmd= "set interfaces ethernet eth0 disable-link-detect "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 557 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 558 | prompt = def_args.setdefault('prompt',self.prompt) |
| 559 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 560 | self.execute( cmd= "set interfaces ethernet eth0 firewall local name "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 567 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 568 | prompt = def_args.setdefault('prompt',self.prompt) |
| 569 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 570 | self.execute( cmd= "set interfaces ethernet eth0 bridge-group bridge "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 577 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 578 | prompt = def_args.setdefault('prompt',self.prompt) |
| 579 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 580 | self.execute( cmd= "set interfaces ethernet eth0 disable-flow-control "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 587 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 588 | prompt = def_args.setdefault('prompt',self.prompt) |
| 589 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 590 | self.execute( cmd= "set interfaces ethernet eth0 bridge-group priority "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 597 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 598 | prompt = def_args.setdefault('prompt',self.prompt) |
| 599 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 600 | self.execute( cmd= "set interfaces ethernet eth0 firewall in ipv6-name "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 607 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 608 | prompt = def_args.setdefault('prompt',self.prompt) |
| 609 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 610 | self.execute( cmd= "set interfaces ethernet eth0 dhcpv6-options Acquire "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 617 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 618 | prompt = def_args.setdefault('prompt',self.prompt) |
| 619 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 620 | self.execute( cmd= "set interfaces ethernet eth0 firewall out ipv6-name "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 627 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 628 | prompt = def_args.setdefault('prompt',self.prompt) |
| 629 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 630 | self.execute( cmd= "set interfaces ethernet eth0 ip ospf authentication "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 637 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 638 | prompt = def_args.setdefault('prompt',self.prompt) |
| 639 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 640 | self.execute( cmd= "set interfaces ethernet eth0 firewall local ipv6-name "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 647 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 648 | prompt = def_args.setdefault('prompt',self.prompt) |
| 649 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 650 | self.execute( cmd= "set interfaces ethernet eth0 dhcpv6-options temporary "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 657 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 658 | prompt = def_args.setdefault('prompt',self.prompt) |
| 659 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 660 | self.execute( cmd= "set interfaces ethernet eth0 ip ospf authentication md5 "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 667 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 668 | prompt = def_args.setdefault('prompt',self.prompt) |
| 669 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 670 | self.execute( cmd= "set interfaces ethernet eth0 ip ospf authentication Plain "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 677 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 678 | prompt = def_args.setdefault('prompt',self.prompt) |
| 679 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 680 | self.execute( cmd= "set interfaces ethernet eth0 dhcpv6-options parameters-only "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 687 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 688 | prompt = def_args.setdefault('prompt',self.prompt) |
| 689 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 690 | self.execute( cmd= "set interfaces ethernet eth0 ip ospf authentication md5 key-id "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 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: |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 697 | arguments = arguments + option +' ' |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 698 | prompt = def_args.setdefault('prompt',self.prompt) |
| 699 | timeout = def_args.setdefault('timeout',self.timeout) |
Jon Hall | 4ba53f0 | 2015-07-29 13:07:41 -0700 | [diff] [blame^] | 700 | self.execute( cmd= "set interfaces ethernet eth0 ip ospf authentication plaintext-password "+ arguments, prompt = prompt, timeout = timeout ) |
admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 701 | return main.TRUE |
| 702 | |