Commit 17c56472 authored by Federico Sismondi's avatar Federico Sismondi

fix error message description

parent 23b15f15
...@@ -257,9 +257,11 @@ For more information: README.md ...@@ -257,9 +257,11 @@ For more information: README.md
# TODO echo back to user diagram of expected network setup when using agent as a router features # TODO echo back to user diagram of expected network setup when using agent as a router features
if re_route_packets_prefix and re_route_packets_host and re_route_packets_if: if re_route_packets_prefix and re_route_packets_host and re_route_packets_if:
if 'client' in name and re_route_packets_prefix != 'aaaa': if 'client' in name and re_route_packets_prefix != 'aaaa':
raise Exception('CoAP client network prefix must be aaaa::/64 when using agent as a router mode') raise Exception(
'Client device under test network prefix must be aaaa::/64 when using agent as a router mode')
elif 'server' in name and re_route_packets_prefix != 'cccc': elif 'server' in name and re_route_packets_prefix != 'cccc':
raise Exception('CoAP server network prefix must be cccc::/64 when using agent as a router mode') raise Exception(
'Server device under test network prefix must be cccc::/64 when using agent as a router mode')
p = urlparse(url) p = urlparse(url)
data = { data = {
...@@ -311,5 +313,6 @@ def main(): ...@@ -311,5 +313,6 @@ def main():
agent = Agent() agent = Agent()
agent.run() agent.run()
if __name__ == "__main__": if __name__ == "__main__":
main() main()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment