From 1e91b5f56eafc4480786ced601fd4b4cad8ba8c8 Mon Sep 17 00:00:00 2001 From: Roman Dodin Date: Wed, 25 Aug 2021 09:16:40 +0200 Subject: [PATCH] fix password accessor --- nodes/vr_csr/vr-csr.go | 2 +- nodes/vr_sros/vr-sros.go | 2 +- nodes/vr_veos/vr-veos.go | 2 +- nodes/vr_vmx/vr-vmx.go | 2 +- nodes/vr_xrv/vr-xrv.go | 2 +- nodes/vr_xrv9k/vr-xrv9k.go | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/nodes/vr_csr/vr-csr.go b/nodes/vr_csr/vr-csr.go index 5a32ba2da..bb5e49a7f 100644 --- a/nodes/vr_csr/vr-csr.go +++ b/nodes/vr_csr/vr-csr.go @@ -82,7 +82,7 @@ func (s *vrCsr) Delete(ctx context.Context) error { func (s *vrCsr) SaveConfig(ctx context.Context) error { err := utils.SaveCfgViaNetconf(s.cfg.LongName, nodes.DefaultCredentials[s.cfg.Kind][0], - nodes.DefaultCredentials[s.cfg.Kind][0], + nodes.DefaultCredentials[s.cfg.Kind][1], ) if err != nil { diff --git a/nodes/vr_sros/vr-sros.go b/nodes/vr_sros/vr-sros.go index 2b32f6752..1d78c1beb 100644 --- a/nodes/vr_sros/vr-sros.go +++ b/nodes/vr_sros/vr-sros.go @@ -101,7 +101,7 @@ func (s *vrSROS) GetImages() map[string]string { func (s *vrSROS) SaveConfig(ctx context.Context) error { err := utils.SaveCfgViaNetconf(s.cfg.LongName, nodes.DefaultCredentials[s.cfg.Kind][0], - nodes.DefaultCredentials[s.cfg.Kind][0], + nodes.DefaultCredentials[s.cfg.Kind][1], ) if err != nil { diff --git a/nodes/vr_veos/vr-veos.go b/nodes/vr_veos/vr-veos.go index f130e186c..ef5b5ac8c 100644 --- a/nodes/vr_veos/vr-veos.go +++ b/nodes/vr_veos/vr-veos.go @@ -82,7 +82,7 @@ func (s *vrVEOS) Delete(ctx context.Context) error { func (s *vrVEOS) SaveConfig(ctx context.Context) error { err := utils.SaveCfgViaNetconf(s.cfg.LongName, nodes.DefaultCredentials[s.cfg.Kind][0], - nodes.DefaultCredentials[s.cfg.Kind][0], + nodes.DefaultCredentials[s.cfg.Kind][1], ) if err != nil { diff --git a/nodes/vr_vmx/vr-vmx.go b/nodes/vr_vmx/vr-vmx.go index 01ad1a552..37a83fd2f 100644 --- a/nodes/vr_vmx/vr-vmx.go +++ b/nodes/vr_vmx/vr-vmx.go @@ -86,7 +86,7 @@ func (s *vrVMX) Delete(ctx context.Context) error { func (s *vrVMX) SaveConfig(ctx context.Context) error { err := utils.SaveCfgViaNetconf(s.cfg.LongName, nodes.DefaultCredentials[s.cfg.Kind][0], - nodes.DefaultCredentials[s.cfg.Kind][0], + nodes.DefaultCredentials[s.cfg.Kind][1], ) if err != nil { diff --git a/nodes/vr_xrv/vr-xrv.go b/nodes/vr_xrv/vr-xrv.go index 966886300..afd80ea78 100644 --- a/nodes/vr_xrv/vr-xrv.go +++ b/nodes/vr_xrv/vr-xrv.go @@ -85,7 +85,7 @@ func (s *vrXRV) Delete(ctx context.Context) error { func (s *vrXRV) SaveConfig(ctx context.Context) error { err := utils.SaveCfgViaNetconf(s.cfg.LongName, nodes.DefaultCredentials[s.cfg.Kind][0], - nodes.DefaultCredentials[s.cfg.Kind][0], + nodes.DefaultCredentials[s.cfg.Kind][1], ) if err != nil { diff --git a/nodes/vr_xrv9k/vr-xrv9k.go b/nodes/vr_xrv9k/vr-xrv9k.go index 5a5f438c0..66e06d6aa 100644 --- a/nodes/vr_xrv9k/vr-xrv9k.go +++ b/nodes/vr_xrv9k/vr-xrv9k.go @@ -90,7 +90,7 @@ func (s *vrXRV9K) Delete(ctx context.Context) error { func (s *vrXRV9K) SaveConfig(ctx context.Context) error { err := utils.SaveCfgViaNetconf(s.cfg.LongName, nodes.DefaultCredentials[s.cfg.Kind][0], - nodes.DefaultCredentials[s.cfg.Kind][0], + nodes.DefaultCredentials[s.cfg.Kind][1], ) if err != nil {