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": "est consequat dolore",
"configCommands": [],
"exitConfigMode": false,
"delayFactor": 24893467.388703167,
"maxLoops": 60989386.546352446,
"stripPrompt": false,
"stripCommand": true,
"configModeCommand": "proident nisi labore",
"cmdVerify": true,
"enterConfigMode": false,
"errorPattern": "nostrud Lorem exercitation incididunt Excepteur"
}
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": [
"reprehenderit laboris tempor",
"fugiat",
"sunt cillum Duis",
"dolore veniam culpa ullamco labore",
"in ipsum commodo Ut"
],
"error_msg": "in Excepteur in sit occaecat",
"host": "ea dolore do laborum",
"response": "dolore ullamco consequat adipisicing",
"status": "FAILURE"
}
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"
}