From 86bf25830959a5b3f6fb524174d334bf5dc5cfcf Mon Sep 17 00:00:00 2001 From: derekdainys Date: Tue, 30 Jul 2024 18:01:22 -0500 Subject: [PATCH] fix banner when transport is ssh --- napalm/eos/eos.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/napalm/eos/eos.py b/napalm/eos/eos.py index f31f2ad44..c19b65a9e 100644 --- a/napalm/eos/eos.py +++ b/napalm/eos/eos.py @@ -427,10 +427,11 @@ def _load_config(self, filename=None, config=None, replace=True): continue commands.append(line) - for start, depth in [ - (s, d) for (s, d) in self.HEREDOC_COMMANDS if s in commands - ]: - commands = self._multiline_convert(commands, start=start, depth=depth) + if self.transport != "ssh": + for start, depth in [ + (s, d) for (s, d) in self.HEREDOC_COMMANDS if s in commands + ]: + commands = self._multiline_convert(commands, start=start, depth=depth) commands = self._mode_comment_convert(commands)