Skip to content

Commit

Permalink
Update GNMI device simulator readme
Browse files Browse the repository at this point in the history
Update this readme file as it contains no longer existing
classes and methods.

JIRA: LIGHTY-264
Signed-off-by: tobias.pobocik <tobias.pobocik@pantheon.tech>
  • Loading branch information
Tobianas authored and ihrasko committed Nov 15, 2023
1 parent b86ae4a commit 334aba4
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions lighty-modules/lighty-gnmi/lighty-gnmi-device-simulator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ This simulator provides gNMI device driven by gNMI proto files, with datastore d
Build and start gNMI simulator device:
```
final SimulatedGnmiDevice simulatedGnmiDevice
= new SimulatedGnmiDeviceBuilder()
= new SimulatedGnmiDevice()
.from(gnmiSimulatorConfiguration)
.build();
simulatedGnmiDevice.start();
Expand Down Expand Up @@ -150,15 +150,18 @@ This example will show how to execute basic operations on lighty.io gNMI device
- [INITIAL_CONFIGURATION_PATH](src/test/resources/initData/config.json)
- SERVER_CERTIFICATE / SERVER_PKCS8_KEY - was generated with script inside lighty-gnmi-connector module.
```
SimulatedGnmiDevice device = new SimulatedGnmiDeviceBuilder()
GnmiSimulatorConfiguration gnmiSimulatorConfiguration = new GnmiSimulatorConfiguration()
.setYangsPath(YANG_MODELS_PATH)
.setInitialConfigDataPath(INITIAL_CONFIGURATION_PATH)
.setHost("127.0.0.1")
.setCertificatePath(SERVER_CERTIFICATE)
.setKeyPath(SERVER_PKCS8_KEY)
.setUsernamePasswordAuth("Admin", "Admin")
.setPort(9090)
.setTargetAddress("127.0.0.1")
.setCertPath(SERVER_CERTIFICATE)
.setCertKeyPath(SERVER_PKCS8_KEY)
.setUsername("Admin")
.setPassword("Admin")
.setTargetPort(9090)
.build();
SimulatedGnmiDevice device = new SimulatedGnmiDevice(gnmiSimulatorConfiguration);
device.start();
```

Expand Down

0 comments on commit 334aba4

Please sign in to comment.