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": "consectetur fugiat",
"configCommands": [],
"exitConfigMode": true,
"delayFactor": 21111638.06015961,
"maxLoops": 50779106.46333712,
"stripPrompt": true,
"stripCommand": false,
"configModeCommand": "aliqua laborum anim ad",
"cmdVerify": true,
"enterConfigMode": true,
"errorPattern": "aute nostrud dolor"
}
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": [
"consectetur sed adipisicing",
"irure deserunt voluptate Ut",
"dolore sunt"
],
"error_msg": "mollit occaecat ea voluptate",
"host": "nulla proident",
"response": "id sit in",
"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"
}