Summary
IAG Native Netmiko send_config_set
Description
Netmiko send_config_set wrapper which accepts all function parameters
Route
POST /automationgateway/netmikoSendConfigSet
Roles
admin
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
host |
string |
yes |
Either hostname or ip accepted |
configCommands |
array |
yes |
Multiple configuration commands to be sent to the device |
exitConfigMode |
boolean |
no |
Determines whether or not to exit config mode after complete |
delayFactor |
number |
no |
Factor to adjust delays |
maxLoops |
number |
no |
Controls wait time in conjunction with delay_factor (default to 150) |
stripPrompt |
boolean |
no |
Determines whether or not to strip the prompt |
stripCommand |
boolean |
no |
Determines whether or not to strip the command |
configModeCommand |
string |
no |
The command to enter into config mode |
cmdVerify |
boolean |
no |
Whether or not to verify command echo for each command in config_set |
enterConfigMode |
boolean |
no |
Do you enter config mode before sending config commands |
errorPattern |
string |
no |
Regular expression pattern to detect config errors in the output. |
Copied to Clipboard
{
"host": "ad esse magna adipisicing",
"configCommands": [],
"exitConfigMode": false,
"delayFactor": -56884367.51017267,
"maxLoops": -93912735.05163124,
"stripPrompt": false,
"stripCommand": false,
"configModeCommand": "ullamco Excepteur consectetur culpa",
"cmdVerify": true,
"enterConfigMode": false,
"errorPattern": "ipsum"
}
Copied to Clipboard
{
"type": "object",
"properties": {
"host": {
"title": "host",
"type": "string"
},
"configCommands": {
"title": "configCommands",
"type": "array"
},
"exitConfigMode": {
"title": "exitConfigMode",
"type": "boolean"
},
"delayFactor": {
"title": "delayFactor",
"type": "number"
},
"maxLoops": {
"title": "maxLoops",
"type": "number"
},
"stripPrompt": {
"title": "stripPrompt",
"type": "boolean"
},
"stripCommand": {
"title": "stripCommand",
"type": "boolean"
},
"configModeCommand": {
"title": "configModeCommand",
"type": "string"
},
"cmdVerify": {
"title": "cmdVerify",
"type": "boolean"
},
"enterConfigMode": {
"title": "enterConfigMode",
"type": "boolean"
},
"errorPattern": {
"title": "errorPattern",
"type": "string"
}
},
"required": [
"host",
"configCommands"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
A JSON Object containing status, code and the result |
Copied to Clipboard
{
"config_commands": [
"Excepteur in labore enim ut",
"minim deserunt cupidatat et fugiat",
"amet esse"
],
"error_msg": "in cupidatat",
"host": "mollit Duis sit",
"response": "qui",
"status": "SUCCESS"
}
Copied to Clipboard
{
"properties": {
"config_commands": {
"items": {
"type": "string"
},
"type": "array"
},
"error_msg": {
"type": "string"
},
"host": {
"type": "string"
},
"response": {
"type": "string"
},
"status": {
"enum": [
"SUCCESS",
"FAILURE"
],
"type": "string"
}
},
"type": "object"
}