File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,26 @@ This tool contains 5 device examples, to demonstrate the usage of the NETCONF De
3131
3232[ Read about the background of this project here.] ( https://pantheon.tech/netconf-monitoring-get-schema/ )
3333
34+ ## Running the application using docker
35+ 1 . Build the application dockerfile using ` docker build -t lighty-netconf-simulator . `
36+ 2 . Run the dockerfile using ` docker run --name lighty-netconf-simulator -p 17830:17830 lighty-netconf-simulator -i resources/ -o resources/ `
37+ 3 . Get ip address using ` docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' lighty-netconf-simulator `
38+ 4 . Start lighty.io or other controller and connect to the device
39+ 5 . Make changes to the device. example:
40+ ```
41+ curl --location 'http://localhost:8888/restconf/data/network-topology:network-topology/topology=topology-netconf/node=new-netconf-device/yang-ext:mount/network-topology:network-topology/topology=default-topology' \
42+ --header 'Content-Type: application/json' \
43+ --data '{
44+ "node": [
45+ {
46+ "node-id": "test-12345"
47+ }
48+ ]
49+ }'
50+ ```
51+ 6 . Stop the docker container
52+ 7 . Restart the docker container using ` docker start lighty-netconf-simulator `
53+
3454## Known Issues
3555
3656** Problem:** Creating multiple simulators takes a long time.
You can’t perform that action at this time.
0 commit comments