sdn-sense / siterm

Apache License 2.0
3 stars 5 forks source link

Agent Debug service request should check ip and split netmask out #576

Closed juztas closed 3 weeks ago

juztas commented 1 month ago

Agent should check and split out netmask if it is present

{"id": 2, "hostname": "transfer-11.ultralight.org", "state": "new", "requestdict": "{\"hostname\": \"transfer-11.ultralight.org\", \"type\": \"rapid-ping\", \"sitename\": \"T2_US_Caltech\", \"ip\": \"10.251.87.141/30\", \"packetsize\": 56, \"interval\": 5, \"interface\": \"enp65s0np0\", \"time\": 300}", "output": "", "insertdate": 1718901970, "updatedate": 1718901970}{"rapid-ping": {"exitCode": 0, "output": []}}Running command: ping -i 5 -w 300 10.251.87.141/30 -s 56 -I enp65s0np0
====== RapidPing Finish Work. Config: {'id': 2, 'hostname': 'transfer-11.ultralight.org', 'state': 'new', 'requestdict': {'hostname': 'transfer-11.ultralight.org', 'type': 'rapid-ping', 'sitename': 'T2_US_Caltech', 'ip': '10.251.87.141/30', 'packetsize': 56, 'interval': 5, 'interface': 'enp65s0np0', 'time': 300}, 'output': '', 'insertdate': 1718901970, 'updatedate': 1718901970}
juztas commented 3 weeks ago

https://github.com/sdn-sense/siterm/pull/583