@itentialopensource/adapter-nokia_nsp_device_configurator 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +5 -0
- package/.eslintrc.js +18 -0
- package/.jshintrc +3 -0
- package/AUTH.md +39 -0
- package/BROKER.md +199 -0
- package/CALLS.md +316 -0
- package/CHANGELOG.md +24 -0
- package/CODE_OF_CONDUCT.md +43 -0
- package/CONTRIBUTING.md +172 -0
- package/ENHANCE.md +69 -0
- package/LICENSE +201 -0
- package/PROPERTIES.md +641 -0
- package/README.md +337 -0
- package/SUMMARY.md +9 -0
- package/SYSTEMINFO.md +11 -0
- package/TROUBLESHOOT.md +47 -0
- package/adapter.js +3209 -0
- package/adapterBase.js +1787 -0
- package/entities/.generic/action.json +214 -0
- package/entities/.generic/schema.json +28 -0
- package/entities/.system/action.json +52 -0
- package/entities/.system/mockdatafiles/getToken-default.json +3 -0
- package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
- package/entities/.system/schema.json +19 -0
- package/entities/.system/schemaTokenReq.json +53 -0
- package/entities/.system/schemaTokenResp.json +53 -0
- package/entities/BasicRESTCONFFlow/action.json +130 -0
- package/entities/BasicRESTCONFFlow/mockdatafiles/getagivennetworkdevice-default.json +71 -0
- package/entities/BasicRESTCONFFlow/mockdatafiles/getallthenetworkdevices-default.json +140 -0
- package/entities/BasicRESTCONFFlow/mockdatafiles/gettheRESTCONFRoot-default.json +8 -0
- package/entities/BasicRESTCONFFlow/mockdatafiles/getthedatastore-default.json +6 -0
- package/entities/BasicRESTCONFFlow/mockdatafiles/gettheschemamounts-default.json +56 -0
- package/entities/BasicRESTCONFFlow/mockdatafiles/gettheyangLibrary-default.json +36 -0
- package/entities/BasicRESTCONFFlow/schema.json +24 -0
- package/entities/CreateConfigureAndDelete/action.json +64 -0
- package/entities/CreateConfigureAndDelete/schema.json +21 -0
- package/entities/GetBearerToken/action.json +24 -0
- package/entities/GetBearerToken/mockdatafiles/getAuthBearerToken-default.json +6 -0
- package/entities/GetBearerToken/schema.json +19 -0
- package/entities/PatchForLeafTypeEmpty/action.json +44 -0
- package/entities/PatchForLeafTypeEmpty/schema.json +31 -0
- package/entities/PlainPatch/action.json +86 -0
- package/entities/PlainPatch/mockdatafiles/getthelistofinterfaces-default.json +53 -0
- package/entities/PlainPatch/schema.json +33 -0
- package/entities/QOSPolicyGetCreateEdit/action.json +86 -0
- package/entities/QOSPolicyGetCreateEdit/mockdatafiles/getQOSSAPEgressPolicy-default.json +141 -0
- package/entities/QOSPolicyGetCreateEdit/mockdatafiles/getQoS-default.json +295 -0
- package/entities/QOSPolicyGetCreateEdit/schema.json +33 -0
- package/entities/Search/action.json +67 -0
- package/entities/Search/mockdatafiles/fieldquerytoretrieveasinglechildnodeunderthetargetresource-default.json +22 -0
- package/entities/Search/mockdatafiles/fieldquerytoselectmultiplefieldsunderthetargetresource-default.json +16 -0
- package/entities/Search/mockdatafiles/fieldquerywithsubSelectorsofanodeunderthetargetresource-default.json +17 -0
- package/entities/Search/schema.json +21 -0
- package/error.json +190 -0
- package/package.json +86 -0
- package/pronghorn.json +6190 -0
- package/propertiesDecorators.json +14 -0
- package/propertiesSchema.json +1248 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/22.11Modeled-DeviceConfiguratorRestCONFAPIs.postman_collection.json-OpenApi3Json.json +10547 -0
- package/report/adapterInfo.json +10 -0
- package/report/creationReport.json +354 -0
- package/sampleProperties.json +195 -0
- package/test/integration/adapterTestBasicGet.js +83 -0
- package/test/integration/adapterTestConnectivity.js +93 -0
- package/test/integration/adapterTestIntegration.js +1026 -0
- package/test/unit/adapterBaseTestUnit.js +949 -0
- package/test/unit/adapterTestUnit.js +2233 -0
- package/utils/adapterInfo.js +206 -0
- package/utils/addAuth.js +94 -0
- package/utils/artifactize.js +146 -0
- package/utils/basicGet.js +50 -0
- package/utils/checkMigrate.js +63 -0
- package/utils/entitiesToDB.js +178 -0
- package/utils/findPath.js +74 -0
- package/utils/methodDocumentor.js +225 -0
- package/utils/modify.js +154 -0
- package/utils/packModificationScript.js +35 -0
- package/utils/patches2bundledDeps.js +90 -0
- package/utils/pre-commit.sh +32 -0
- package/utils/removeHooks.js +20 -0
- package/utils/setup.js +33 -0
- package/utils/tbScript.js +246 -0
- package/utils/tbUtils.js +490 -0
- package/utils/testRunner.js +298 -0
- package/utils/troubleshootingAdapter.js +195 -0
- package/workflows/README.md +3 -0
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
{
|
|
2
|
+
"network-device-mgr:network-devices": {
|
|
3
|
+
"network-device": [
|
|
4
|
+
{
|
|
5
|
+
"neId": "10.10.10.1",
|
|
6
|
+
"type": "SR-7750",
|
|
7
|
+
"version": "20.10.R3",
|
|
8
|
+
"root": {
|
|
9
|
+
"yanglib:yang-library": {
|
|
10
|
+
"content-id": "NSP-19.6.0",
|
|
11
|
+
"module-set": [
|
|
12
|
+
{
|
|
13
|
+
"name": "SrosOpenConfigMDCNBI@1.0.0",
|
|
14
|
+
"module": [
|
|
15
|
+
{
|
|
16
|
+
"name": "openconfig-interfaces",
|
|
17
|
+
"namespace": "2.0.0",
|
|
18
|
+
"revision": "2.0.0"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "openconfig-lacp",
|
|
22
|
+
"namespace": "1.1.0",
|
|
23
|
+
"revision": "1.1.0"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "openconfig-network-instance",
|
|
27
|
+
"namespace": "0.8.0",
|
|
28
|
+
"revision": "0.8.0"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "openconfig-relay-agent",
|
|
32
|
+
"namespace": "0.1.0",
|
|
33
|
+
"revision": "0.1.0"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "openconfig-routing-policy",
|
|
37
|
+
"namespace": "3.0.0",
|
|
38
|
+
"revision": "3.0.0"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "openconfig-lldp",
|
|
42
|
+
"namespace": "0.1.0",
|
|
43
|
+
"revision": "0.1.0"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "openconfig-mpls",
|
|
47
|
+
"namespace": "2.3.0",
|
|
48
|
+
"revision": "2.3.0"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "openconfig-acl",
|
|
52
|
+
"namespace": "1.0.0",
|
|
53
|
+
"revision": "1.0.0"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "openconfig-bgp",
|
|
57
|
+
"namespace": "3.0.1",
|
|
58
|
+
"revision": "3.0.1"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "openconfig-local-routing",
|
|
62
|
+
"namespace": "1.0.1",
|
|
63
|
+
"revision": "1.0.1"
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"neId": "10.10.10.2",
|
|
73
|
+
"type": "SR-7750",
|
|
74
|
+
"version": "20.10.R3",
|
|
75
|
+
"root": {
|
|
76
|
+
"yanglib:yang-library": {
|
|
77
|
+
"content-id": "NSP-19.6.0",
|
|
78
|
+
"module-set": [
|
|
79
|
+
{
|
|
80
|
+
"name": "SrosOpenConfigMDCNBI@1.0.0",
|
|
81
|
+
"module": [
|
|
82
|
+
{
|
|
83
|
+
"name": "openconfig-interfaces",
|
|
84
|
+
"namespace": "2.0.0",
|
|
85
|
+
"revision": "2.0.0"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "openconfig-lacp",
|
|
89
|
+
"namespace": "1.1.0",
|
|
90
|
+
"revision": "1.1.0"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "openconfig-network-instance",
|
|
94
|
+
"namespace": "0.8.0",
|
|
95
|
+
"revision": "0.8.0"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "openconfig-relay-agent",
|
|
99
|
+
"namespace": "0.1.0",
|
|
100
|
+
"revision": "0.1.0"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "openconfig-routing-policy",
|
|
104
|
+
"namespace": "3.0.0",
|
|
105
|
+
"revision": "3.0.0"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"name": "openconfig-lldp",
|
|
109
|
+
"namespace": "0.1.0",
|
|
110
|
+
"revision": "0.1.0"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "openconfig-mpls",
|
|
114
|
+
"namespace": "2.3.0",
|
|
115
|
+
"revision": "2.3.0"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"name": "openconfig-acl",
|
|
119
|
+
"namespace": "1.0.0",
|
|
120
|
+
"revision": "1.0.0"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "openconfig-bgp",
|
|
124
|
+
"namespace": "3.0.1",
|
|
125
|
+
"revision": "3.0.1"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": "openconfig-local-routing",
|
|
129
|
+
"namespace": "1.0.1",
|
|
130
|
+
"revision": "1.0.1"
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"ietf-yang-schema-mounts:schema-mounts": {
|
|
3
|
+
"mount-point": [
|
|
4
|
+
{
|
|
5
|
+
"module": "ietf-network",
|
|
6
|
+
"label": "ne-management-nm",
|
|
7
|
+
"inline": {}
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"module": "nsp-network",
|
|
11
|
+
"label": "node-root",
|
|
12
|
+
"inline": {}
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"module": "ietf-network",
|
|
16
|
+
"label": "system-root",
|
|
17
|
+
"inline": {}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"module": "ietf-network",
|
|
21
|
+
"label": "protocol-root",
|
|
22
|
+
"inline": {}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"module": "ietf-network",
|
|
26
|
+
"label": "port-root",
|
|
27
|
+
"inline": {}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"module": "ietf-network",
|
|
31
|
+
"label": "interfaces-root",
|
|
32
|
+
"inline": {}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"module": "ietf-network",
|
|
36
|
+
"label": "routing-root",
|
|
37
|
+
"inline": {}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"module": "nsp-service-intent",
|
|
41
|
+
"label": "intent",
|
|
42
|
+
"inline": {}
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"module": "nsp-tunnel-intent",
|
|
46
|
+
"label": "intent",
|
|
47
|
+
"inline": {}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"module": "network-device-mgr",
|
|
51
|
+
"label": "root",
|
|
52
|
+
"inline": {}
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"ietf-yang-library:yang-library": {
|
|
3
|
+
"content-id": "NSP-2019-05-20",
|
|
4
|
+
"module-set": [
|
|
5
|
+
{
|
|
6
|
+
"name": "NSP-MDC-2019-05-20",
|
|
7
|
+
"module": [
|
|
8
|
+
{
|
|
9
|
+
"name": "network-device-mgr",
|
|
10
|
+
"revision": "2018-06-06",
|
|
11
|
+
"namespace": "urn:nokia:nsp:mdm:network-device-mgr",
|
|
12
|
+
"conformance-type": "implement"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "ietf-yang-library",
|
|
16
|
+
"revision": "2019-01-04",
|
|
17
|
+
"namespace": "urn:ietf:params:xml:ns:yang:ietf-yang-library",
|
|
18
|
+
"conformance-type": "implement"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "ietf-yang-schema-mount",
|
|
22
|
+
"revision": "2017-10-09",
|
|
23
|
+
"namespace": "urn:ietf:params:xml:ns:yang:ietf-yang-schema-mount",
|
|
24
|
+
"conformance-type": "implement"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "ietf-restconf",
|
|
28
|
+
"revision": "2016-08-15",
|
|
29
|
+
"namespace": "urn:ietf:params:xml:ns:yang:ietf-restconf",
|
|
30
|
+
"conformance-type": "implement"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": false,
|
|
6
|
+
"dynamicfields": true,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ph_request_type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "type of request (internal to adapter)",
|
|
11
|
+
"default": "gettheRESTCONFRoot",
|
|
12
|
+
"enum": [
|
|
13
|
+
"gettheRESTCONFRoot",
|
|
14
|
+
"getthedatastore",
|
|
15
|
+
"gettheyangLibrary",
|
|
16
|
+
"gettheschemamounts",
|
|
17
|
+
"getallthenetworkdevices",
|
|
18
|
+
"getagivennetworkdevice"
|
|
19
|
+
],
|
|
20
|
+
"external_name": "ph_request_type"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"definitions": {}
|
|
24
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "createMDA",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "POST",
|
|
7
|
+
"entitypath": "{base_path}/{version}/restconf/data/network-device-mgr:network-devices/{pathv1}/root/nokia-conf:configure/{pathv2}?{query}",
|
|
8
|
+
"requestSchema": "schema.json",
|
|
9
|
+
"responseSchema": "schema.json",
|
|
10
|
+
"timeout": 0,
|
|
11
|
+
"sendEmpty": false,
|
|
12
|
+
"requestDatatype": "JSON",
|
|
13
|
+
"responseDatatype": "JSON",
|
|
14
|
+
"headers": {},
|
|
15
|
+
"responseObjects": [
|
|
16
|
+
{
|
|
17
|
+
"type": "default",
|
|
18
|
+
"key": "",
|
|
19
|
+
"mockFile": ""
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "configureMDA",
|
|
25
|
+
"protocol": "REST",
|
|
26
|
+
"method": "PUT",
|
|
27
|
+
"entitypath": "{base_path}/{version}/restconf/data/network-device-mgr:network-devices/{pathv1}/root/nokia-conf:configure/{pathv2}/{pathv3}?{query}",
|
|
28
|
+
"requestSchema": "schema.json",
|
|
29
|
+
"responseSchema": "schema.json",
|
|
30
|
+
"timeout": 0,
|
|
31
|
+
"sendEmpty": false,
|
|
32
|
+
"requestDatatype": "JSON",
|
|
33
|
+
"responseDatatype": "JSON",
|
|
34
|
+
"headers": {},
|
|
35
|
+
"responseObjects": [
|
|
36
|
+
{
|
|
37
|
+
"type": "default",
|
|
38
|
+
"key": "",
|
|
39
|
+
"mockFile": ""
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "deleteMDA",
|
|
45
|
+
"protocol": "REST",
|
|
46
|
+
"method": "DELETE",
|
|
47
|
+
"entitypath": "{base_path}/{version}/restconf/data/network-device-mgr:network-devices/{pathv1}/root/nokia-conf:/configure/{pathv2}/{pathv3}?{query}",
|
|
48
|
+
"requestSchema": "schema.json",
|
|
49
|
+
"responseSchema": "schema.json",
|
|
50
|
+
"timeout": 0,
|
|
51
|
+
"sendEmpty": false,
|
|
52
|
+
"requestDatatype": "JSON",
|
|
53
|
+
"responseDatatype": "JSON",
|
|
54
|
+
"headers": {},
|
|
55
|
+
"responseObjects": [
|
|
56
|
+
{
|
|
57
|
+
"type": "default",
|
|
58
|
+
"key": "",
|
|
59
|
+
"mockFile": ""
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": false,
|
|
6
|
+
"dynamicfields": true,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ph_request_type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "type of request (internal to adapter)",
|
|
11
|
+
"default": "createMDA",
|
|
12
|
+
"enum": [
|
|
13
|
+
"createMDA",
|
|
14
|
+
"configureMDA",
|
|
15
|
+
"deleteMDA"
|
|
16
|
+
],
|
|
17
|
+
"external_name": "ph_request_type"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"definitions": {}
|
|
21
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "getAuthBearerToken",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "POST",
|
|
7
|
+
"entitypath": "{base_path}/{version}/rest-gateway/rest/api/v1/auth/token?{query}",
|
|
8
|
+
"requestSchema": "schema.json",
|
|
9
|
+
"responseSchema": "schema.json",
|
|
10
|
+
"timeout": 0,
|
|
11
|
+
"sendEmpty": false,
|
|
12
|
+
"requestDatatype": "JSON",
|
|
13
|
+
"responseDatatype": "JSON",
|
|
14
|
+
"headers": {},
|
|
15
|
+
"responseObjects": [
|
|
16
|
+
{
|
|
17
|
+
"type": "default",
|
|
18
|
+
"key": "",
|
|
19
|
+
"mockFile": "mockdatafiles/getAuthBearerToken-default.json"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": false,
|
|
6
|
+
"dynamicfields": true,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ph_request_type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "type of request (internal to adapter)",
|
|
11
|
+
"default": "getAuthBearerToken",
|
|
12
|
+
"enum": [
|
|
13
|
+
"getAuthBearerToken"
|
|
14
|
+
],
|
|
15
|
+
"external_name": "ph_request_type"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"definitions": {}
|
|
19
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "addEmptytype",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "PATCH",
|
|
7
|
+
"entitypath": "{base_path}/{version}/restconf/data/network-device-mgr:network-devices/{pathv1}/root/junos-conf-root:configuration/interfaces/{pathv2}?{query}",
|
|
8
|
+
"requestSchema": "schema.json",
|
|
9
|
+
"responseSchema": "schema.json",
|
|
10
|
+
"timeout": 0,
|
|
11
|
+
"sendEmpty": false,
|
|
12
|
+
"requestDatatype": "JSON",
|
|
13
|
+
"responseDatatype": "JSON",
|
|
14
|
+
"headers": {},
|
|
15
|
+
"responseObjects": [
|
|
16
|
+
{
|
|
17
|
+
"type": "default",
|
|
18
|
+
"key": "",
|
|
19
|
+
"mockFile": ""
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "removeEmptytype",
|
|
25
|
+
"protocol": "REST",
|
|
26
|
+
"method": "DELETE",
|
|
27
|
+
"entitypath": "{base_path}/{version}/restconf/data/network-device-mgr:network-devices/{pathv1}/root/junos-conf-root:configuration/interfaces/{pathv2}/disable?{query}",
|
|
28
|
+
"requestSchema": "schema.json",
|
|
29
|
+
"responseSchema": "schema.json",
|
|
30
|
+
"timeout": 0,
|
|
31
|
+
"sendEmpty": false,
|
|
32
|
+
"requestDatatype": "JSON",
|
|
33
|
+
"responseDatatype": "JSON",
|
|
34
|
+
"headers": {},
|
|
35
|
+
"responseObjects": [
|
|
36
|
+
{
|
|
37
|
+
"type": "default",
|
|
38
|
+
"key": "",
|
|
39
|
+
"mockFile": ""
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": true,
|
|
6
|
+
"dynamicfields": true,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ph_request_type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "type of request (internal to adapter)",
|
|
11
|
+
"default": "addEmptytype",
|
|
12
|
+
"enum": [
|
|
13
|
+
"addEmptytype",
|
|
14
|
+
"removeEmptytype"
|
|
15
|
+
],
|
|
16
|
+
"external_name": "ph_request_type"
|
|
17
|
+
},
|
|
18
|
+
"interfaceParam": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "",
|
|
21
|
+
"parse": false,
|
|
22
|
+
"encode": false,
|
|
23
|
+
"encrypt": {
|
|
24
|
+
"type": "AES",
|
|
25
|
+
"key": ""
|
|
26
|
+
},
|
|
27
|
+
"external_name": "interface"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"definitions": {}
|
|
31
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "createInterface",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "PUT",
|
|
7
|
+
"entitypath": "{base_path}/{version}/restconf/data/network-device-mgr:network-devices/{pathv1}/root/nokia-conf:configure/{pathv2}/{pathv3}?{query}",
|
|
8
|
+
"requestSchema": "schema.json",
|
|
9
|
+
"responseSchema": "schema.json",
|
|
10
|
+
"timeout": 0,
|
|
11
|
+
"sendEmpty": false,
|
|
12
|
+
"requestDatatype": "JSON",
|
|
13
|
+
"responseDatatype": "JSON",
|
|
14
|
+
"headers": {},
|
|
15
|
+
"responseObjects": [
|
|
16
|
+
{
|
|
17
|
+
"type": "default",
|
|
18
|
+
"key": "",
|
|
19
|
+
"mockFile": ""
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "getthelistofinterfaces",
|
|
25
|
+
"protocol": "REST",
|
|
26
|
+
"method": "GET",
|
|
27
|
+
"entitypath": "{base_path}/{version}/restconf/data/network-device-mgr:network-devices/{pathv1}/root/nokia-conf:configure/{pathv2}/interface?{query}",
|
|
28
|
+
"requestSchema": "schema.json",
|
|
29
|
+
"responseSchema": "schema.json",
|
|
30
|
+
"timeout": 0,
|
|
31
|
+
"sendEmpty": false,
|
|
32
|
+
"sendGetBody": false,
|
|
33
|
+
"requestDatatype": "JSON",
|
|
34
|
+
"responseDatatype": "JSON",
|
|
35
|
+
"headers": {},
|
|
36
|
+
"responseObjects": [
|
|
37
|
+
{
|
|
38
|
+
"type": "default",
|
|
39
|
+
"key": "",
|
|
40
|
+
"mockFile": "mockdatafiles/getthelistofinterfaces-default.json"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "verifyyangDataJsoninAcceptPatchheader",
|
|
46
|
+
"protocol": "REST",
|
|
47
|
+
"method": "GET",
|
|
48
|
+
"entitypath": "{base_path}/{version}/restconf/data/network-device-mgr:network-devices/{pathv1}/root/nokia-conf:configure/{pathv2}?{query}",
|
|
49
|
+
"requestSchema": "schema.json",
|
|
50
|
+
"responseSchema": "schema.json",
|
|
51
|
+
"timeout": 0,
|
|
52
|
+
"sendEmpty": false,
|
|
53
|
+
"sendGetBody": false,
|
|
54
|
+
"requestDatatype": "JSON",
|
|
55
|
+
"responseDatatype": "JSON",
|
|
56
|
+
"headers": {},
|
|
57
|
+
"responseObjects": [
|
|
58
|
+
{
|
|
59
|
+
"type": "default",
|
|
60
|
+
"key": "",
|
|
61
|
+
"mockFile": ""
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "patchMultipleinterfaces",
|
|
67
|
+
"protocol": "REST",
|
|
68
|
+
"method": "PATCH",
|
|
69
|
+
"entitypath": "{base_path}/{version}/restconf/data/network-device-mgr:network-devices/{pathv1}/root/nokia-conf:configure/{pathv2}?{query}",
|
|
70
|
+
"requestSchema": "schema.json",
|
|
71
|
+
"responseSchema": "schema.json",
|
|
72
|
+
"timeout": 0,
|
|
73
|
+
"sendEmpty": false,
|
|
74
|
+
"requestDatatype": "JSON",
|
|
75
|
+
"responseDatatype": "JSON",
|
|
76
|
+
"headers": {},
|
|
77
|
+
"responseObjects": [
|
|
78
|
+
{
|
|
79
|
+
"type": "default",
|
|
80
|
+
"key": "",
|
|
81
|
+
"mockFile": ""
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"nokia-conf:interface": [
|
|
3
|
+
{
|
|
4
|
+
"ipv4": {
|
|
5
|
+
"primary": {
|
|
6
|
+
"prefix-length": 24,
|
|
7
|
+
"address": "10.0.0.2"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"port": "1/1/1",
|
|
11
|
+
"interface-name": "if1"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"ipv4": {
|
|
15
|
+
"primary": {
|
|
16
|
+
"prefix-length": 24,
|
|
17
|
+
"address": "10.18.1.1"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"interface-name": "plain_patch_1",
|
|
21
|
+
"description": "To be modified by plain patch"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"ipv4": {
|
|
25
|
+
"primary": {
|
|
26
|
+
"prefix-length": 24,
|
|
27
|
+
"address": "10.18.2.1"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"interface-name": "plain_patch_2",
|
|
31
|
+
"description": "To be modified by plain patch"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"ipv4": {
|
|
35
|
+
"primary": {
|
|
36
|
+
"prefix-length": 24,
|
|
37
|
+
"address": "10.18.3.1"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"interface-name": "plain_patch_3",
|
|
41
|
+
"description": "To be modified by plain patch"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"ipv4": {
|
|
45
|
+
"primary": {
|
|
46
|
+
"prefix-length": 32,
|
|
47
|
+
"address": "10.10.10.2"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"interface-name": "system"
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": true,
|
|
6
|
+
"dynamicfields": true,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ph_request_type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "type of request (internal to adapter)",
|
|
11
|
+
"default": "createInterface",
|
|
12
|
+
"enum": [
|
|
13
|
+
"createInterface",
|
|
14
|
+
"getthelistofinterfaces",
|
|
15
|
+
"verifyyangDataJsoninAcceptPatchheader",
|
|
16
|
+
"patchMultipleinterfaces"
|
|
17
|
+
],
|
|
18
|
+
"external_name": "ph_request_type"
|
|
19
|
+
},
|
|
20
|
+
"interfaceParam": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "",
|
|
23
|
+
"parse": false,
|
|
24
|
+
"encode": false,
|
|
25
|
+
"encrypt": {
|
|
26
|
+
"type": "AES",
|
|
27
|
+
"key": ""
|
|
28
|
+
},
|
|
29
|
+
"external_name": "interface"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"definitions": {}
|
|
33
|
+
}
|