mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 14:29:47 +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:
|
||||
data = BMPMsg.dissect(data, log_file=LOG_FILE)
|
||||
|
||||
timestamp_print(
|
||||
f"Finished dissecting data from {client_address}"
|
||||
)
|
||||
timestamp_print(f"Finished dissecting data from {client_address}")
|
||||
|
||||
except Exception as e:
|
||||
timestamp_print(f"{e}")
|
@ -1296,7 +1296,7 @@ class TopoBMPCollector(TopoHost):
|
||||
|
||||
with open(log_err, "w") as err:
|
||||
self.run(
|
||||
"{}/bmp_collector/bmpserver -a {} -p {} {}&".format(
|
||||
"{}/bmp_collector/bmpserver.py -a {} -p {} {}&".format(
|
||||
CWD, self.ip, self.port, log_arg
|
||||
),
|
||||
stdout=None,
|
||||
@ -1304,7 +1304,7 @@ class TopoBMPCollector(TopoHost):
|
||||
)
|
||||
|
||||
def stop(self):
|
||||
self.run("pkill -f bmpserver")
|
||||
self.run("pkill -f bmpserver.py")
|
||||
return ""
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user