summaryrefslogtreecommitdiff
path: root/lib/oxidized/model
diff options
context:
space:
mode:
authorja-frog <31773963+ja-frog@users.noreply.github.com>2017-09-22 13:36:23 -0500
committerGitHub <noreply@github.com>2017-09-22 13:36:23 -0500
commitbed69a08ed9281919f44c4448ece46d4eaac6e84 (patch)
tree5e948ca0dfbb804b7c5798575422873bd62793f6 /lib/oxidized/model
parent7f64e0770f07170d29d2bb816def0465cc3178f5 (diff)
Suppress timestamp response to ios xr commands
At least some versions of ios xr output a timestamp after each input command. This will cause Oxidized to have a different version of the config for every poll of the device. I added the per-session command to suppress timestamps.
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r--lib/oxidized/model/iosxr.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/oxidized/model/iosxr.rb b/lib/oxidized/model/iosxr.rb
index bf01140..ac2f798 100644
--- a/lib/oxidized/model/iosxr.rb
+++ b/lib/oxidized/model/iosxr.rb
@@ -36,6 +36,7 @@ class IOSXR < Oxidized::Model
cfg :telnet, :ssh do
post_login 'terminal length 0'
post_login 'terminal width 0'
+ post_login 'terminal exec prompt no-timestamp'
if vars :enable
post_login do
send "enable\n"