@itentialopensource/adapter-viavi_xpertrak 1.0.12 → 1.0.13
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/CHANGELOG.md +8 -0
- package/TAB2.md +13 -0
- package/package.json +2 -2
- package/propertiesSchema.json +113 -0
- package/sampleProperties.json +13 -0
package/CHANGELOG.md
CHANGED
package/TAB2.md
CHANGED
|
@@ -321,6 +321,19 @@ Sample Properties can be used to help you configure the adapter in the Itential
|
|
|
321
321
|
]
|
|
322
322
|
}
|
|
323
323
|
]
|
|
324
|
+
},
|
|
325
|
+
"gatewayRouting": {
|
|
326
|
+
"enabled": false,
|
|
327
|
+
"cluster": "",
|
|
328
|
+
"executionMode": "cluster_no_proxy",
|
|
329
|
+
"proxy": {
|
|
330
|
+
"enabled": false,
|
|
331
|
+
"host": "",
|
|
332
|
+
"port": 1,
|
|
333
|
+
"protocol": "http",
|
|
334
|
+
"username": "",
|
|
335
|
+
"password": ""
|
|
336
|
+
}
|
|
324
337
|
}
|
|
325
338
|
}
|
|
326
339
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itentialopensource/adapter-viavi_xpertrak",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"description": "This adapter integrates with system described as: viaviXpertrakApi.",
|
|
5
5
|
"main": "adapter.js",
|
|
6
6
|
"systemName": "Viavi_xpertrak",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"author": "Itential",
|
|
51
51
|
"homepage": "https://gitlab.com/itentialopensource/adapters/adapter-viavi_xpertrak#readme",
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@itentialopensource/adapter-utils": "7.0
|
|
53
|
+
"@itentialopensource/adapter-utils": "7.1.0",
|
|
54
54
|
"acorn": "8.16.0",
|
|
55
55
|
"ajv": "8.20.0",
|
|
56
56
|
"axios": "1.20.0",
|
package/propertiesSchema.json
CHANGED
|
@@ -117,6 +117,9 @@
|
|
|
117
117
|
},
|
|
118
118
|
"cache": {
|
|
119
119
|
"$ref": "#/definitions/cache"
|
|
120
|
+
},
|
|
121
|
+
"gatewayRouting": {
|
|
122
|
+
"$ref": "#/definitions/gatewayRouting"
|
|
120
123
|
}
|
|
121
124
|
},
|
|
122
125
|
"required": [
|
|
@@ -1767,6 +1770,116 @@
|
|
|
1767
1770
|
}
|
|
1768
1771
|
}
|
|
1769
1772
|
}
|
|
1773
|
+
},
|
|
1774
|
+
"gatewayRouting": {
|
|
1775
|
+
"type": "object",
|
|
1776
|
+
"description": "Route requests through a Gateway Manager cluster instead of connecting directly.",
|
|
1777
|
+
"properties": {
|
|
1778
|
+
"enabled": {
|
|
1779
|
+
"type": "boolean",
|
|
1780
|
+
"description": "When true, requests from this adapter are routed through a Gateway Manager cluster instead of connecting directly.",
|
|
1781
|
+
"default": false
|
|
1782
|
+
},
|
|
1783
|
+
"cluster": {
|
|
1784
|
+
"type": "string",
|
|
1785
|
+
"description": "The Gateway Manager cluster (gateway id) to route requests through. Required when enabled is true.",
|
|
1786
|
+
"default": ""
|
|
1787
|
+
},
|
|
1788
|
+
"executionMode": {
|
|
1789
|
+
"type": "string",
|
|
1790
|
+
"description": "How to route once enabled. 'cluster_no_proxy' routes through the cluster directly; 'proxy' also routes through an outbound proxy server on that cluster.",
|
|
1791
|
+
"default": "cluster_no_proxy",
|
|
1792
|
+
"enum": [
|
|
1793
|
+
"cluster_no_proxy",
|
|
1794
|
+
"proxy"
|
|
1795
|
+
]
|
|
1796
|
+
},
|
|
1797
|
+
"proxy": {
|
|
1798
|
+
"type": "object",
|
|
1799
|
+
"description": "Proxy server the cluster should use when relaying this request. Applies only when executionMode is 'proxy'.",
|
|
1800
|
+
"properties": {
|
|
1801
|
+
"enabled": {
|
|
1802
|
+
"type": "boolean",
|
|
1803
|
+
"description": "Whether or not there is a proxy for the gateway to use",
|
|
1804
|
+
"default": false
|
|
1805
|
+
},
|
|
1806
|
+
"host": {
|
|
1807
|
+
"type": "string",
|
|
1808
|
+
"description": "hostname of the proxy for the gateway to use",
|
|
1809
|
+
"default": ""
|
|
1810
|
+
},
|
|
1811
|
+
"port": {
|
|
1812
|
+
"type": "integer",
|
|
1813
|
+
"description": "port on which the gateway should connect to the proxy",
|
|
1814
|
+
"default": 1,
|
|
1815
|
+
"minimum": 1,
|
|
1816
|
+
"maximum": 65535
|
|
1817
|
+
},
|
|
1818
|
+
"protocol": {
|
|
1819
|
+
"type": "string",
|
|
1820
|
+
"description": "the protocol the gateway should use to connect to the proxy",
|
|
1821
|
+
"default": "http",
|
|
1822
|
+
"enum": [
|
|
1823
|
+
"http",
|
|
1824
|
+
"https"
|
|
1825
|
+
]
|
|
1826
|
+
},
|
|
1827
|
+
"username": {
|
|
1828
|
+
"type": "string",
|
|
1829
|
+
"description": "username for proxy authentication",
|
|
1830
|
+
"default": ""
|
|
1831
|
+
},
|
|
1832
|
+
"password": {
|
|
1833
|
+
"type": "string",
|
|
1834
|
+
"description": "password for proxy authentication",
|
|
1835
|
+
"default": ""
|
|
1836
|
+
}
|
|
1837
|
+
},
|
|
1838
|
+
"required": [
|
|
1839
|
+
"enabled"
|
|
1840
|
+
],
|
|
1841
|
+
"allOf": [
|
|
1842
|
+
{
|
|
1843
|
+
"if": {
|
|
1844
|
+
"properties": {
|
|
1845
|
+
"enabled": {
|
|
1846
|
+
"enum": [
|
|
1847
|
+
true
|
|
1848
|
+
]
|
|
1849
|
+
}
|
|
1850
|
+
}
|
|
1851
|
+
},
|
|
1852
|
+
"then": {
|
|
1853
|
+
"required": [
|
|
1854
|
+
"host",
|
|
1855
|
+
"port"
|
|
1856
|
+
]
|
|
1857
|
+
}
|
|
1858
|
+
}
|
|
1859
|
+
]
|
|
1860
|
+
}
|
|
1861
|
+
},
|
|
1862
|
+
"required": [
|
|
1863
|
+
"enabled"
|
|
1864
|
+
],
|
|
1865
|
+
"allOf": [
|
|
1866
|
+
{
|
|
1867
|
+
"if": {
|
|
1868
|
+
"properties": {
|
|
1869
|
+
"enabled": {
|
|
1870
|
+
"enum": [
|
|
1871
|
+
true
|
|
1872
|
+
]
|
|
1873
|
+
}
|
|
1874
|
+
}
|
|
1875
|
+
},
|
|
1876
|
+
"then": {
|
|
1877
|
+
"required": [
|
|
1878
|
+
"cluster"
|
|
1879
|
+
]
|
|
1880
|
+
}
|
|
1881
|
+
}
|
|
1882
|
+
]
|
|
1770
1883
|
}
|
|
1771
1884
|
}
|
|
1772
1885
|
}
|
package/sampleProperties.json
CHANGED
|
@@ -267,6 +267,19 @@
|
|
|
267
267
|
]
|
|
268
268
|
}
|
|
269
269
|
]
|
|
270
|
+
},
|
|
271
|
+
"gatewayRouting": {
|
|
272
|
+
"enabled": false,
|
|
273
|
+
"cluster": "",
|
|
274
|
+
"executionMode": "cluster_no_proxy",
|
|
275
|
+
"proxy": {
|
|
276
|
+
"enabled": false,
|
|
277
|
+
"host": "",
|
|
278
|
+
"port": 1,
|
|
279
|
+
"protocol": "http",
|
|
280
|
+
"username": "",
|
|
281
|
+
"password": ""
|
|
282
|
+
}
|
|
270
283
|
}
|
|
271
284
|
},
|
|
272
285
|
"groups": [],
|