summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvuko <vuko@hackerspace.pl>2021-01-11 15:29:26 +0100
committervuko <vuko@hackerspace.pl>2021-01-11 15:29:26 +0100
commit449d1fff8442d1e6413be3bb51603eb4dc194d19 (patch)
tree3bad6142c835bd50922081b9eb2eba3f664c1a05
parent2b939d21b3389458cbffd8095d95766afb334511 (diff)
downloadcheckinator-449d1fff8442d1e6413be3bb51603eb4dc194d19.tar.gz
checkinator-449d1fff8442d1e6413be3bb51603eb4dc194d19.tar.bz2
checkinator-449d1fff8442d1e6413be3bb51603eb4dc194d19.zip
fix typo in proto and add check to setup.py
-rw-r--r--at/tracker.proto6
-rw-r--r--setup.py4
2 files changed, 7 insertions, 3 deletions
diff --git a/at/tracker.proto b/at/tracker.proto
index 42f1517..138fde3 100644
--- a/at/tracker.proto
+++ b/at/tracker.proto
@@ -2,10 +2,10 @@ syntax = "proto3";
service DhcpTracker {
/* get list of clients detected in LAN network */
- rpc GetClients (ClientsRequest) returns (DhcpClients) {}
+ rpc GetClients (ClientsRequest) returns (DhcpClients) {};
/* get Layer 2 addess (MAC) for LAN ip address (v4 or v6) */
- rpc GetHwAddr (HwAddrRequest) returns (HwAddr) {}
+ rpc GetHwAddr (HwAddrRequest) returns (HwAddr) {};
}
message ClientsRequest {
@@ -26,6 +26,6 @@ message HwAddrRequest {
string ip_address = 1; // IPv4 or IPv6 address
}
-message HwAddrResponse
+message HwAddrResponse {
optional bytes hw_address = 1; // MAC address
}
diff --git a/setup.py b/setup.py
index e9a1d9c..9d42f66 100644
--- a/setup.py
+++ b/setup.py
@@ -15,6 +15,8 @@ grpc_tools.protoc.main([
'at/tracker.proto'
])
+assert Path('at/tracker_pb2.py').exists()
+
setup(
name='hswaw-at',
version='0.1',
@@ -29,6 +31,8 @@ setup(
'checkinator-list=at.cmd:list',
'checkinator-tracker=at.tracker:server',
'checkinator-tracker-list=at.cmd:tracker_list',
+ 'checkinator-tracker-get-hwaddr=at.cmd:tracker_get_hwaddr',
+ 'checkinator-web-debug=at.webapp:run_debug'
],
},
)