Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions napalm/junos/junos.py
Original file line number Diff line number Diff line change
Expand Up @@ -1102,6 +1102,11 @@ def _process_pipe(cmd, txt):
exploded_pipe = pipe.split()
pipe_oper = exploded_pipe[0] # always there
pipe_args = "".join(exploded_pipe[1:2])
enclosed_arg = re.match(r'"(.+)"', " ".join(exploded_pipe[1:]))
if enclosed_arg:
pipe_args = enclosed_arg.group().strip('"')
else:
pipe_args = "".join(exploded_pipe[1:2])
# will not throw error when there's no arg
pipe_oper_args[pipe_oper] = pipe_args
for oper in _OF_MAP.keys():
Expand Down