mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 14:34:22 +00:00
Merge pull request #6581 from volta-networks/fix_frr_reload_daemon
tools: fix frr-reload.py daemon option
This commit is contained in:
commit
f3f2545103
@ -146,9 +146,10 @@ class Vtysh(object):
|
|||||||
return stdout.decode('UTF-8')
|
return stdout.decode('UTF-8')
|
||||||
|
|
||||||
def mark_show_run(self, daemon = None):
|
def mark_show_run(self, daemon = None):
|
||||||
cmd = 'show running-config no-header'
|
cmd = 'show running-config'
|
||||||
if daemon:
|
if daemon:
|
||||||
cmd += ' %s' % daemon
|
cmd += ' %s' % daemon
|
||||||
|
cmd += ' no-header'
|
||||||
show_run = self._call_cmd(cmd, stdout=subprocess.PIPE)
|
show_run = self._call_cmd(cmd, stdout=subprocess.PIPE)
|
||||||
mark = self._call(['-m', '-f', '-'], stdin=show_run.stdout, stdout=subprocess.PIPE)
|
mark = self._call(['-m', '-f', '-'], stdin=show_run.stdout, stdout=subprocess.PIPE)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user