Skip to content

Commit

Permalink
Merge pull request #594 from srl-labs/fix-save-cred
Browse files Browse the repository at this point in the history
fix user credentials for netconf save
  • Loading branch information
hellt committed Aug 25, 2021
2 parents 9c63bd6 + 1e91b5f commit d65cfdc
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion nodes/vr_csr/vr-csr.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion nodes/vr_sros/vr-sros.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion nodes/vr_veos/vr-veos.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion nodes/vr_vmx/vr-vmx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion nodes/vr_xrv/vr-xrv.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion nodes/vr_xrv9k/vr-xrv9k.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d65cfdc

Please sign in to comment.