Return compute port information via API. Ref #1420.

This commit is contained in:
grossmj committed 2018-10-05 12:48:20 +02:00
1 parent eb97ebf311
commit 22f7ca0243
5 files changed
+98 -2

No files matched your search

@@ -49,3 +49,11 @@ class NetworkHandler:
network_interfaces = interfaces()
response.json(network_interfaces)
@Route.get(
r"/network/ports",
description="List all the ports used by the server")
def network_ports(request, response):
m = PortManager.instance()
response.json(m)