Skip to content

Commit

Permalink
Use correct client binary executable
Browse files Browse the repository at this point in the history
The binary executable built in mplane_client is mpc_client unlike mpclient-server specified in server.py
  • Loading branch information
farshid-cloudly committed Jan 31, 2024
1 parent 9728641 commit 98f6639
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mplane_client/example/demo/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,20 @@

NETCONF_RPC_TIMEOUT = 3

SERVER_CMD = "/mplane_client/build/wrapper.sh /mplane_client/build/mpclient-server"
SERVER_CMD = "/mplane_client/build/wrapper.sh /mplane_client/build/mpc_client"

# Alarms RPC payload
ALARMS_YIN = open("/mplane_demo/getalarms.xml", "r").read()


def start_server():
"""Start the mpclient-server application"""
"""Start the mpc_client application"""
subprocess.Popen(SERVER_CMD.split())
time.sleep(1)


def fetch_thread():
"""Periodically send an RPC to mpclient-server to fetch alarms-list"""
"""Periodically send an RPC to mpc_client to fetch alarms-list"""
stub = mpclient.MpclientStub(
grpc.secure_channel(
f"{GRPC_HOST}:{GRPC_PORT}",
Expand Down

0 comments on commit 98f6639

Please sign in to comment.