diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-05-12 19:31:05 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-05-12 19:31:09 +0200 |
commit | b2be8c9286bf2e01880e652c731618dc019c4d2f (patch) | |
tree | 7e6481280070b8bbcf7b52e0bcca105f668e2751 /tools/frr-reload.py | |
parent | Merge pull request #6334 from ton31337/fix/labeled_unicast_table_scount (diff) | |
download | frr-b2be8c9286bf2e01880e652c731618dc019c4d2f.tar.xz frr-b2be8c9286bf2e01880e652c731618dc019c4d2f.zip |
tools: revert frr-reload.py remove stderr redirects"
This reverts commit 3fa139a65be70e5a81b5f078530094f09a247416.
This is being reverted because this commit completely
breaks the invocation of frr-reload.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'tools/frr-reload.py')
-rwxr-xr-x | tools/frr-reload.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/frr-reload.py b/tools/frr-reload.py index 123c11db3..c10eb487e 100755 --- a/tools/frr-reload.py +++ b/tools/frr-reload.py @@ -155,7 +155,7 @@ class Config(object): try: config_text = subprocess.check_output( bindir + "/vtysh --config_dir " + confdir + " -c 'show run " + daemon + "' | /usr/bin/tail -n +4 | " + bindir + "/vtysh --config_dir " + confdir + " -m -f -", - shell=True) + shell=True, stderr=subprocess.STDOUT) except subprocess.CalledProcessError as e: ve = VtyshMarkException(e) ve.output = e.output @@ -1136,7 +1136,7 @@ def vtysh_config_available(bindir, confdir): try: cmd = [str(bindir + '/vtysh'), '--config_dir', confdir, '-c', 'conf t'] - output = subprocess.check_output(cmd).strip() + output = subprocess.check_output(cmd, stderr=subprocess.STDOUT).strip() if 'VTY configuration is locked by other VTY' in output.decode('utf-8'): print(output) @@ -1394,7 +1394,7 @@ if __name__ == '__main__': while True: try: - _ = subprocess.check_output(cmd) + _ = subprocess.check_output(cmd, stderr=subprocess.STDOUT) except subprocess.CalledProcessError: @@ -1444,7 +1444,7 @@ if __name__ == '__main__': fh.write(line + '\n') try: - subprocess.check_output([str(args.bindir + '/vtysh'), '--config_dir', args.confdir, '-f', filename]) + subprocess.check_output([str(args.bindir + '/vtysh'), '--config_dir', args.confdir, '-f', filename], stderr=subprocess.STDOUT) except subprocess.CalledProcessError as e: log.warning("frr-reload.py failed due to\n%s" % e.output) reload_ok = False |