mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 12:39:21 +00:00
tests: add py extension to bmpserver
to help identify the file type. And apply black. Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
This commit is contained in:
parent
1ea8ba5902
commit
bbf8ee1769
@ -80,9 +80,7 @@ def main():
|
|||||||
while len(data) > BMPMsg.MIN_LEN:
|
while len(data) > BMPMsg.MIN_LEN:
|
||||||
data = BMPMsg.dissect(data, log_file=LOG_FILE)
|
data = BMPMsg.dissect(data, log_file=LOG_FILE)
|
||||||
|
|
||||||
timestamp_print(
|
timestamp_print(f"Finished dissecting data from {client_address}")
|
||||||
f"Finished dissecting data from {client_address}"
|
|
||||||
)
|
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
timestamp_print(f"{e}")
|
timestamp_print(f"{e}")
|
@ -1296,7 +1296,7 @@ class TopoBMPCollector(TopoHost):
|
|||||||
|
|
||||||
with open(log_err, "w") as err:
|
with open(log_err, "w") as err:
|
||||||
self.run(
|
self.run(
|
||||||
"{}/bmp_collector/bmpserver -a {} -p {} {}&".format(
|
"{}/bmp_collector/bmpserver.py -a {} -p {} {}&".format(
|
||||||
CWD, self.ip, self.port, log_arg
|
CWD, self.ip, self.port, log_arg
|
||||||
),
|
),
|
||||||
stdout=None,
|
stdout=None,
|
||||||
@ -1304,7 +1304,7 @@ class TopoBMPCollector(TopoHost):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
self.run("pkill -f bmpserver")
|
self.run("pkill -f bmpserver.py")
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user