Skip to content

Commit 254f993

Browse files
committed
Change localhost to hostname
Signed-off-by: tobias.pobocik <[email protected]>
1 parent eac0dba commit 254f993

File tree

43 files changed

+106
-106
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+106
-106
lines changed

lighty-applications/lighty-rcgnmi-app-aggregator/README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Both of these options will load the YANG files into data-store, from which **lig
7373
2. Add the YANG model with the RPC request to the running app
7474
- 'YANG_MODEL' - Should have included escape characters before each double quotation marks character.
7575
```
76-
curl --request POST 'http://127.0.0.1:8888/restconf/operations/gnmi-yang-storage:upload-yang-model' \
76+
curl --request POST 'http://127.0.1.1:8888/restconf/operations/gnmi-yang-storage:upload-yang-model' \
7777
--header 'Content-Type: application/json' \
7878
--data-raw '{
7979
"input": {
@@ -90,7 +90,7 @@ If the ```force-capability``` is specified, each ```GetRequest``` request contai
9090
9191
```
9292
curl -X PUT \
93-
http://127.0.0.1:8888/restconf/data/network-topology:network-topology/topology=gnmi-topology/node=node-id-1 \
93+
http://127.0.1.1:8888/restconf/data/network-topology:network-topology/topology=gnmi-topology/node=node-id-1 \
9494
-H 'Content-Type: application/json' \
9595
-d '{
9696
"node": [
@@ -129,7 +129,7 @@ lighty.io gNMI Southbound stores each of it's TLS client certificates in an MD-S
129129
##### Add Certificate
130130
To add a client certificate, execute RPC `gnmi-certificate-storage:add-keystore-certificate`, for example:
131131
```
132-
curl --request POST 'http://127.0.0.1:8888/restconf/operations/gnmi-certificate-storage:add-keystore-certificate' \
132+
curl --request POST 'http://127.0.1.1:8888/restconf/operations/gnmi-certificate-storage:add-keystore-certificate' \
133133
--header 'Content-Type: application/json' \
134134
--data-raw '{
135135
"input": {
@@ -154,7 +154,7 @@ By using this RPC, the client-key and passphrase will be encrypted using OpenDay
154154
To remove a certificate, execute RPC `gnmi-certificate-storage:remove-keystore-certificate`, for example, to delete a certificate stored under id `keystore-id-1`:
155155
156156
```
157-
curl --location --request POST 'http://127.0.0.1:8888/restconf/operations/gnmi-certificate-storage:remove-keystore-certificate' \
157+
curl --location --request POST 'http://127.0.1.1:8888/restconf/operations/gnmi-certificate-storage:remove-keystore-certificate' \
158158
--header 'Content-Type: application/json' \
159159
--data-raw '{
160160
"input": {
@@ -191,14 +191,14 @@ To establish connection and communication with gNMI device via RESTCONF, one nee
191191
To connect to a device with an [INSECURE/PLAINTEXT](#insecure-connection) connection, execute the following RESTCONF request:
192192
193193
```
194-
curl --request PUT 'http://127.0.0.1:8888/restconf/data/network-topology:network-topology/topology=gnmi-topology/node=node-id-1' \
194+
curl --request PUT 'http://127.0.1.1:8888/restconf/data/network-topology:network-topology/topology=gnmi-topology/node=node-id-1' \
195195
--header 'Content-Type: application/json' \
196196
--data-raw '{
197197
"node": [
198198
{
199199
"node-id": "node-id-1",
200200
"connection-parameters": {
201-
"host": "127.0.0.1",
201+
"host": "127.0.1.1",
202202
"port": 9090,
203203
"connection-type": "INSECURE",
204204
"credentials": {
@@ -221,14 +221,14 @@ To connect to a device with TLS, one needs to provide `keystore-id` under which
221221
Example of creating mountpoint with custom certificates:
222222
223223
```
224-
curl --request PUT 'http://127.0.0.1:8888/restconf/data/network-topology:network-topology/topology=gnmi-topology/node=node-id-1' \
224+
curl --request PUT 'http://127.0.1.1:8888/restconf/data/network-topology:network-topology/topology=gnmi-topology/node=node-id-1' \
225225
--header 'Content-Type: application/json' \
226226
--data-raw '{
227227
"node": [
228228
{
229229
"node-id": "node-id-1",
230230
"connection-parameters": {
231-
"host": "127.0.0.1",
231+
"host": "127.0.1.1",
232232
"port": 9090,
233233
"keystore-id": "keystore-id-1",
234234
"credentials": {
@@ -246,14 +246,14 @@ curl --request PUT 'http://127.0.0.1:8888/restconf/data/network-topology:network
246246
### Disconnect gNMI device
247247
To disconnect the device and to delete the mount point, simply DELETE the node from `gnmi-topology`
248248
```
249-
curl --request DELETE 'http://127.0.0.1:8888/restconf/data/network-topology:network-topology/topology=gnmi-topology/node=node-id-1'
249+
curl --request DELETE 'http://127.0.1.1:8888/restconf/data/network-topology:network-topology/topology=gnmi-topology/node=node-id-1'
250250
```
251251
252252
### State of Registered gNMI device
253253
Upon sending the [connection-request](#connecting-gnmi-device), lighty gNMI southbound writes the status of the connection to the node in datastore. To see the status, execute the following RESTCONF command:
254254
255255
```
256-
curl --request GET 'http://127.0.0.1:8888/restconf/data/network-topology:network-topology/topology=gnmi-topology/node=node-id-1'
256+
curl --request GET 'http://127.0.1.1:8888/restconf/data/network-topology:network-topology/topology=gnmi-topology/node=node-id-1'
257257
```
258258
259259
If the device's mount point was created successfully, you should see `"node-status":"READY"` and all the capabilities, from which the schema context was created, in the response.
@@ -270,12 +270,12 @@ For your convenience, we provide a [postman-collection](lighty-rcgnmi-app/lighty
270270
#### Example: RESTCONF gNMI GetRequest
271271
272272
```
273-
curl --location --request GET 'http://127.0.0.1:8888/restconf/data/network-topology:network-topology/topology=gnmi-topology/node=node-id-1/yang-ext:mount/openconfig-interfaces:interfaces'
273+
curl --location --request GET 'http://127.0.1.1:8888/restconf/data/network-topology:network-topology/topology=gnmi-topology/node=node-id-1/yang-ext:mount/openconfig-interfaces:interfaces'
274274
```
275275
276276
#### Example: RESTCONF gNMI SetRequest
277277
```
278-
curl --request PUT 'http://127.0.0.1:8888/restconf/data/network-topology:network-topology/topology=gnmi-topology/node=node-id-1/yang-ext:mount/interfaces/interface=br0/ethernet/config' \
278+
curl --request PUT 'http://127.0.1.1:8888/restconf/data/network-topology:network-topology/topology=gnmi-topology/node=node-id-1/yang-ext:mount/interfaces/interface=br0/ethernet/config' \
279279
--header 'Content-Type: application/json' \
280280
--data-raw '{
281281
"openconfig-if-ethernet:config": {
@@ -417,7 +417,7 @@ For example, if your initial json data contains node in gNMI topology:
417417
{
418418
"node-id": "device1",
419419
"connection-parameters": {
420-
"host": "127.0.0.1",
420+
"host": "127.0.1.1",
421421
"port": 9090,
422422
"connection-type" : "INSECURE"
423423
}
@@ -457,7 +457,7 @@ JAVA_OPTS = -Dcom.sun.management.jmxremote
457457
-Dcom.sun.management.jmxremote.local.only=false
458458
-Dcom.sun.management.jmxremote.port=<JMX_PORT>
459459
-Dcom.sun.management.jmxremote.rmi.port=<JMX_PORT>
460-
-Djava.rmi.server.hostname=127.0.0.1
460+
-Djava.rmi.server.hostname=127.0.1.1
461461
```
462462
Then run `java $JAVA_OPTS -jar lighty-rcgnmi-app-<version> ...`
463463

lighty-applications/lighty-rcgnmi-app-aggregator/lighty-rcgnmi-app-helm/helm/lighty-rcgnmi-app-helm/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ spec:
6767
-Dcom.sun.management.jmxremote.local.only=false
6868
-Dcom.sun.management.jmxremote.port={{ .Values.lighty.jmx.jmxPort }}
6969
-Dcom.sun.management.jmxremote.rmi.port={{ .Values.lighty.jmx.jmxPort }}
70-
-Djava.rmi.server.hostname=127.0.0.1
70+
-Djava.rmi.server.hostname=127.0.1.1
7171
-Dlog4j.configurationFile={{ .Values.lighty.configDirectoryName }}/{{ .Values.lighty.loggerConfigFilename }}"
7272
{{ else }}
7373
- name: JAVA_OPTS

lighty-applications/lighty-rcgnmi-app-aggregator/lighty-rcgnmi-app/lighty-rcgnmi-app.postman_collection.json

Lines changed: 12 additions & 12 deletions
Large diffs are not rendered by default.

lighty-applications/lighty-rcgnmi-app-aggregator/lighty-rcgnmi-app/src/main/resources/example-config/initData.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{
88
"node-id": "device1",
99
"connection-parameters": {
10-
"host": "127.0.0.1",
10+
"host": "127.0.1.1",
1111
"port": 9090,
1212
"connection-type" : "INSECURE"
1313
}

lighty-applications/lighty-rcgnmi-app-aggregator/lighty-rcgnmi-app/src/main/resources/example-config/initData.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<node>
77
<node-id>device1</node-id>
88
<connection-parameters xmlns="urn:lighty:gnmi:topology">
9-
<host>127.0.0.1</host>
9+
<host>127.0.1.1</host>
1010
<port>9090</port>
1111
<connection-type>INSECURE</connection-type>
1212
</connection-parameters>

lighty-applications/lighty-rnc-app-aggregator/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ By default, a test certificate is used (`lighty-rnc-module/src/main/resources/ke
7878
For generating a JKS file `keytool` utility can be used. Example of command to regenerate keystore with self-signed certificate:
7979

8080
```
81-
keytool -genkey -alias lightyio -keyalg RSA -keystore lightyio.jks -keysize 2048 -ext san=dns:lighty.io,dns:lightyio,dns:restconf.lighty.io,dns:management.lighty.io,dns:localhost,ip:127.0.0.1,ip:0.0.0.0 -validity 2000
81+
keytool -genkey -alias lightyio -keyalg RSA -keystore lightyio.jks -keysize 2048 -ext san=dns:lighty.io,dns:lightyio,dns:restconf.lighty.io,dns:management.lighty.io,dns:localhost,ip:127.0.1.1,ip:0.0.0.0 -validity 2000
8282
```
8383
which creates new `lightyio.jks` keystore file with hostnames: `lighty.io, lightyio, restconf.lighty.io, management.lighty.io, localhost`
8484

@@ -206,7 +206,7 @@ JAVA_OPTS = -Dcom.sun.management.jmxremote
206206
-Dcom.sun.management.jmxremote.local.only=false
207207
-Dcom.sun.management.jmxremote.port=<JMX_PORT>
208208
-Dcom.sun.management.jmxremote.rmi.port=<JMX_PORT>
209-
-Djava.rmi.server.hostname=127.0.0.1
209+
-Djava.rmi.server.hostname=127.0.1.1
210210
```
211211
Then run `java $JAVA_OPTS -jar lighty-rnc-app-<version> ...`
212212

lighty-applications/lighty-rnc-app-aggregator/lighty-rnc-app-docker/example-config/initData.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"netconf-node-topology:tcp-only": false,
1212
"netconf-node-topology:username": "admin",
1313
"netconf-node-topology:password": "admin",
14-
"netconf-node-topology:host": "127.0.0.1",
14+
"netconf-node-topology:host": "127.0.1.1",
1515
"netconf-node-topology:keepalive-delay": 0
1616
}
1717
]

lighty-applications/lighty-rnc-app-aggregator/lighty-rnc-app-docker/example-config/initData.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<tcp-only xmlns="urn:opendaylight:netconf-node-topology">false</tcp-only>
1111
<username xmlns="urn:opendaylight:netconf-node-topology">admin</username>
1212
<password xmlns="urn:opendaylight:netconf-node-topology">admin</password>
13-
<host xmlns="urn:opendaylight:netconf-node-topology">127.0.0.1</host>
13+
<host xmlns="urn:opendaylight:netconf-node-topology">127.0.1.1</host>
1414
<keepalive-delay xmlns="urn:opendaylight:netconf-node-topology">0</keepalive-delay>
1515
</node>
1616
</topology>

lighty-applications/lighty-rnc-app-aggregator/lighty-rnc-app-helm/helm/lighty-rnc-app-helm/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ spec:
6969
-Dcom.sun.management.jmxremote.local.only=false
7070
-Dcom.sun.management.jmxremote.port={{ .Values.lighty.jmx.jmxPort }}
7171
-Dcom.sun.management.jmxremote.rmi.port={{ .Values.lighty.jmx.jmxPort }}
72-
-Djava.rmi.server.hostname=127.0.0.1
72+
-Djava.rmi.server.hostname=127.0.1.1
7373
-Dlog4j.configurationFile={{ .Values.lighty.configDirectoryName }}/{{ .Values.lighty.loggerConfigFilename }}"
7474
{{ else }}
7575
- name: JAVA_OPTS

lighty-applications/lighty-rnc-app-aggregator/lighty-rnc-app/Lighty-RNC.postman_collection.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
"header": [],
1717
"body": {
1818
"mode": "raw",
19-
"raw": "{\n \"netconf-topology:node\" :[ \n \t{\n\t \"node-id\": \"node-1\",\n\t \"host\": \"127.0.0.1\",\n \"port\": 17830,\n\t \"username\": \"admin\",\n\t \"password\": \"admin\",\n\t \"tcp-only\": false,\n\t \"keepalive-delay\": 0\n }\n ]\n }",
19+
"raw": "{\n \"netconf-topology:node\" :[ \n \t{\n\t \"node-id\": \"node-1\",\n\t \"host\": \"127.0.1.1\",\n \"port\": 17830,\n\t \"username\": \"admin\",\n\t \"password\": \"admin\",\n\t \"tcp-only\": false,\n\t \"keepalive-delay\": 0\n }\n ]\n }",
2020
"options": {
2121
"raw": {
2222
"language": "json"
2323
}
2424
}
2525
},
2626
"url": {
27-
"raw": "http://127.0.0.1:8888/restconf/data/network-topology:network-topology/topology=topology-netconf/node=node-1",
27+
"raw": "http://127.0.1.1:8888/restconf/data/network-topology:network-topology/topology=topology-netconf/node=node-1",
2828
"protocol": "http",
2929
"host": [
3030
"127",
@@ -50,7 +50,7 @@
5050
"method": "GET",
5151
"header": [],
5252
"url": {
53-
"raw": "http://127.0.0.1:8888/restconf/data/network-topology:network-topology/topology=topology-netconf/node=node-1",
53+
"raw": "http://127.0.1.1:8888/restconf/data/network-topology:network-topology/topology=topology-netconf/node=node-1",
5454
"protocol": "http",
5555
"host": [
5656
"127",
@@ -76,7 +76,7 @@
7676
"method": "DELETE",
7777
"header": [],
7878
"url": {
79-
"raw": "http://127.0.0.1:8888/restconf/data/network-topology:network-topology/topology=topology-netconf/node=node-1",
79+
"raw": "http://127.0.1.1:8888/restconf/data/network-topology:network-topology/topology=topology-netconf/node=node-1",
8080
"protocol": "http",
8181
"host": [
8282
"127",
@@ -107,7 +107,7 @@
107107
"method": "GET",
108108
"header": [],
109109
"url": {
110-
"raw": "http://127.0.0.1:8888/restconf/data/network-topology:network-topology/topology=topology-netconf/node=node-1/yang-ext:mount/",
110+
"raw": "http://127.0.1.1:8888/restconf/data/network-topology:network-topology/topology=topology-netconf/node=node-1/yang-ext:mount/",
111111
"protocol": "http",
112112
"host": [
113113
"127",
@@ -144,7 +144,7 @@
144144
}
145145
},
146146
"url": {
147-
"raw": "http://127.0.0.1:8888/restconf/data/network-topology:network-topology/topology=topology-netconf/node=node-1/yang-ext:mount/toaster:toaster",
147+
"raw": "http://127.0.1.1:8888/restconf/data/network-topology:network-topology/topology=topology-netconf/node=node-1/yang-ext:mount/toaster:toaster",
148148
"protocol": "http",
149149
"host": [
150150
"127",
@@ -336,7 +336,7 @@
336336
}
337337
],
338338
"url": {
339-
"raw": "http://127.0.0.1/restconf/data",
339+
"raw": "http://127.0.1.1/restconf/data",
340340
"protocol": "http",
341341
"host": [
342342
"127",

0 commit comments

Comments
 (0)