Summary
Create Smart Template
Description
Create a Smart Template from native config
Route
POST /smart_template/st/autogenerate
Roles
Parameters
Name | Type | Required | Description |
---|---|---|---|
operating_system | string | yes | NED ID |
native_config | string | yes | Native device configuration |
{ "operating_system": "iosxr", "native_config": "interface GigabitEthernet1/1" }
{ "type": "object", "properties": { "operating_system": { "type": "string", "examples": [ "ios", "junos", "iosxr" ] }, "native_config": { "type": "string", "examples": [ "hostname someHost", "interface GigabitEthernet1/1" ] } }, "required": [ "operating_system", "native_config" ], "additionalProperties": false }
Return
Name | Type | Description |
---|---|---|
config | object | Smart Template object |
{ "faml": { "_attr": { "type": "list", "ns": "http://tail-f.com/ns/ncs", "prefix": "ncs", "condition": "cant", "severity": "error" }, "_keys": [ "OwUFpE" ], "_children": [ { "P": { "_attr": { "type": "leaf", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ios", "condition": "cant", "severity": "error" }, "_value": "L" } }, { "K": { "_attr": { "type": "keyword", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ncs", "condition": "cant", "severity": "warning" }, "_value": "Y" } }, { "Q": { "_attr": { "type": "keyword", "ns": "http://tail-f.com/ns/ncs", "prefix": "ncs", "condition": "must", "severity": "warning" } } }, { "O": { "_attr": { "type": "keyword", "ns": "http://tail-f.com/ns/config/1.0", "prefix": "ncs", "condition": "cant", "severity": "error" }, "_value": "C" } }, { "P": { "_attr": { "type": "list", "ns": "http://tail-f.com/ns/ncs", "prefix": "ncs", "condition": "cant", "severity": "notices" }, "_value": "r" } } ] }, "form": { "name": "Form 123", "children": [ { "properties": { "type": "leafref", "path": "/ncs:devices/ncs:device/ncs:name", "min": "1", "max": "4", "minLength": "1", "maxLength": "4", "default": false, "direction": "vertical", "required": true, "enforce": false, "hidden": true }, "id": "ipsum", "type": "container", "element": "{\"type\":\"service_model\",\"id\":{\"name\":\"/ncs:services/devices:stringified_json\"}", "name": "vlan_id_123", "display_name": "vlan", "source_type": "service_model", "source": "/ncs:services/abc_devices:ios.device", "key": "service.vlanid" }, { "properties": { "type": "leafref", "path": "/ncs:devices/ncs:device/ncs:name", "min": null, "max": "4", "minLength": "1", "maxLength": "4", "default": "est mollit irure sint anim", "direction": "vertical", "required": true, "enforce": false, "hidden": true }, "id": "mollit ea laborum magna", "type": "container", "element": "{\"type\":\"service_model\",\"id\":{\"name\":\"/ncs:services/devices:stringified_json\"}", "name": "vlan_id_123", "display_name": "vlan", "source_type": "service_model", "source": "/ncs:services/abc_devices:ios.device", "key": "key545385c3-fc66-491b-bf6f-abc2214366dc" }, { "properties": { "type": "leafref", "path": "/ncs:devices/ncs:device/ncs:name", "min": null, "max": null, "minLength": "1", "maxLength": null, "default": "pariatur ea elit non", "direction": "vertical", "required": true, "enforce": true, "hidden": true }, "id": "laborum sunt consectetur in", "type": "container", "element": "{\"type\":\"service_model\",\"id\":{\"name\":\"/ncs:services/devices:stringified_json\"}", "name": "vlan_id_123", "display_name": "vlan", "source_type": "service_model", "source": "/ncs:services/abc_devices:ios.device", "key": "key545385c3-fc66-491b-bf6f-abc2214366dc" }, { "properties": { "type": "leafref", "path": "/ncs:devices/ncs:device/ncs:name", "min": "1", "max": "4", "minLength": null, "maxLength": null, "default": 7295089.575260773, "direction": "vertical", "required": true, "enforce": true, "hidden": true }, "id": "eu incididunt", "type": "container", "element": "{\"type\":\"service_model\",\"id\":{\"name\":\"/ncs:services/devices:stringified_json\"}", "name": "vlan_id_123", "display_name": "vlan", "source_type": "service_model", "source": "/ncs:services/abc_devices:ios.device", "key": "service.vlanid" }, { "properties": { "type": "leafref", "path": "/ncs:devices/ncs:device/ncs:name", "min": "1", "max": "4", "minLength": null, "maxLength": null, "default": null, "direction": "vertical", "required": false, "enforce": false, "hidden": true }, "id": "laborum esse anim", "type": "container", "element": "{\"type\":\"service_model\",\"id\":{\"name\":\"/ncs:services/devices:stringified_json\"}", "name": "vlan_id_123", "display_name": "vlan", "source_type": "service_model", "source": "/ncs:services/abc_devices:ios.device", "key": "key545385c3-fc66-491b-bf6f-abc2214366dc" } ], "elements": [ { "type": "service_model", "id": { "name": "/ncs:services/test_devices:service_name" } }, { "type": "service_model", "id": { "name": "/ncs:services/test_devices:service_name" } } ], "_id": "3166d754-a08b-8924-c649-830891740624", "groups": [ "0f2a247d635ad88acc7d749c", "f72eabf4f4c34dbdbaffdd83", "245516fb13ea6dccc2837d73", "9b5cae3544b9e1fb894c5dc4" ], "created": "1964-06-25T00:02:17.565Z", "created_by": "4a2e76d5ace30409710f521f", "last_updated": "1965-09-25T14:20:18.786Z", "last_updated_by": "f3880f33911a8078a0084871", "tags": [ "exercitation ut labore sit", "in", "elit magna anim sint", "voluptate", "aliquip reprehenderit adipisicing" ] } }
{ "type": "object", "properties": { "form": { "$ref": "formDocument" }, "faml": { "oneOf": [ { "$ref": "famlObject#/definitions/famlLeaf" }, { "$ref": "famlObject#/definitions/famlContainer" }, { "$ref": "famlObject#/definitions/famlList" } ] } }, "required": [ "faml" ] }