Add server_address to initializer, allow for unix path (starts with /) or hostname:port address

This commit is contained in:
Pim van Pelt
2021-09-11 08:13:21 +00:00
parent 0c0e4fc14a
commit 842bce9d6e
4 changed files with 13 additions and 10 deletions

View File

@ -501,7 +501,7 @@ def main():
return
try:
a = MyAgent()
a = MyAgent(server_address='/run/vpp/agentx.sock')
a.start()
except Exception as e:
print("Unhandled exception:", e)