summaryrefslogtreecommitdiff
path: root/tests/topotests/bgp_vrf_netns
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2021-08-22 02:28:24 -0400
committerChristian Hopps <chopps@labn.net>2021-09-04 09:04:47 -0400
commitf862fe55a48ea5177a04971c6a0b810d46dfa3e6 (patch)
tree9d8943f7fc76b73b35244c21855d9e61f26e07fe /tests/topotests/bgp_vrf_netns
parent2905398814bed538c841c49c5ece769d40dd5d97 (diff)
tests: use common exa-receive.py script
New generic script uses a new default node specific log dir to avoid collisions when running in parallel. Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'tests/topotests/bgp_vrf_netns')
-rwxr-xr-xtests/topotests/bgp_vrf_netns/peer1/exa-receive.py38
1 files changed, 0 insertions, 38 deletions
diff --git a/tests/topotests/bgp_vrf_netns/peer1/exa-receive.py b/tests/topotests/bgp_vrf_netns/peer1/exa-receive.py
deleted file mode 100755
index 031ff455ca..0000000000
--- a/tests/topotests/bgp_vrf_netns/peer1/exa-receive.py
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/usr/bin/env python
-
-"""
-exa-receive.py: Save received routes form ExaBGP into file
-"""
-
-from sys import stdin, argv
-from datetime import datetime
-
-# 1st arg is peer number
-peer = int(argv[1])
-
-# When the parent dies we are seeing continual newlines, so we only access so many before stopping
-counter = 0
-
-routesavefile = open("/tmp/peer%s-received.log" % peer, "w")
-
-while True:
- try:
- line = stdin.readline()
- timestamp = datetime.now().strftime("%Y%m%d_%H:%M:%S - ")
- routesavefile.write(timestamp + line)
- routesavefile.flush()
-
- if line == "":
- counter += 1
- if counter > 100:
- break
- continue
-
- counter = 0
- except KeyboardInterrupt:
- pass
- except IOError:
- # most likely a signal during readline
- pass
-
-routesavefile.close()