Lines Matching refs:params

178     if(module.params['protocol'] == 'scp'):
179 if(module.params['upload'] is not None):
180 module.params["upload"] = module.params["upload"].replace("flash_primary", "primary")
181 … module.params["upload"] = module.params["upload"].replace("flash_secondary", "secondary")
182 … if(module.params["upload"] == 'running-config' or module.params["upload"] == 'startup-config'):
183 command["command"] = "copy %s scp %s%s %s%s" % (module.params['upload'],
184 module.params["remote_server"],
185 … " " + module.params["remote_port"] if module.params["remote_port"] else "",
186 module.params["remote_filename"],
187 … "public-key " + module.params["public_key"] if module.params["public_key"] else "")
189 … command["command"] = "copy flash scp %s%s %s%s %s" % (module.params["remote_server"],
190 … " " + module.params["remote_port"] if module.params["remote_port"] else "",
191 … module.params["remote_filename"],
192 … "public-key " + module.params["public_key"] if module.params["public_key"] else "",
193 module.params["upload"])
194 command["scp_user"] = module.params["remote_user"]
195 command["scp_pass"] = module.params["remote_pass"]
196 if(module.params['download'] is not None):
197 … module.params["download"] = module.params["download"].replace("flash_primary", "primary")
198 … module.params["download"] = module.params["download"].replace("flash_secondary", "secondary")
199 …if(module.params["download"] == 'running-config' or module.params["download"] == 'startup-config'):
200 command["command"] = "copy scp %s %s%s %s%s" % (module.params['download'],
201 module.params["remote_server"],
202 … " " + module.params["remote_port"] if module.params["remote_port"] else "",
203 module.params["remote_filename"],
204 … "public-key " + module.params["public_key"] if module.params["public_key"] else "")
206 … command["command"] = "copy scp flash %s%s %s%s %s" % (module.params["remote_server"],
207 … " " + module.params["remote_port"] if module.params["remote_port"] else "",
208 … module.params["remote_filename"],
209 … "public-key " + module.params["public_key"] if module.params["public_key"] else "",
210 module.params["download"])
211 command["scp_user"] = module.params["remote_user"]
212 command["scp_pass"] = module.params["remote_pass"]
213 if(module.params['protocol'] == 'https'):
214 if(module.params['upload'] is not None):
215 module.params["upload"] = module.params["upload"].replace("flash_primary", "primary")
216 … module.params["upload"] = module.params["upload"].replace("flash_secondary", "secondary")
217 … if(module.params["upload"] == 'running-config' or module.params["upload"] == 'startup-config'):
218 command["command"] = "copy %s https %s %s%s" % (module.params['upload'],
219 module.params["remote_server"],
220 module.params["remote_filename"],
221 … " port " + module.params["remote_port"] if module.params["remote_port"] else "")
223 … command["command"] = "copy https flash %s %s %s%s" % (module.params["remote_server"],
224 … module.params["remote_filename"],
225 module.params['upload'],
226 … " port " + module.params["remote_port"] if module.params["remote_port"] else "")
227 if(module.params['download'] is not None):
228 … module.params["download"] = module.params["download"].replace("flash_primary", "primary")
229 … module.params["download"] = module.params["download"].replace("flash_secondary", "secondary")
230 …if(module.params["download"] == 'running-config' or module.params["download"] == 'startup-config'):
231 command["command"] = "copy https %s %s %s%s" % (module.params['download'],
232 module.params["remote_server"],
233 module.params["remote_filename"],
234 … " port " + module.params["remote_port"] if module.params["remote_port"] else "")
236 … command["command"] = "copy https flash %s %s %s%s" % (module.params["remote_server"],
237 … module.params["remote_filename"],
238 module.params['download'],
239 … " port " + module.params["remote_port"] if module.params["remote_port"] else "")
268 protocol = module.params['protocol']
269 upload = module.params['upload']
270 download = module.params['download']
272 if(protocol == 'scp' and module.params['remote_user'] is None):
351 if(module.params['protocol'] == 'scp'):
359 if(module.params["download"] is not None):