Skip to content

Commit aa2087d

Browse files
committed
fix(iosxe): enabling iosxe support in docker
1 parent be8ab35 commit aa2087d

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
.env
2-
.vscode
2+
.vscode
33
config.yaml
44
__debug*
5+
sub.pem
56

67
# Created by https://www.toptal.com/developers/gitignore/api/go
78
# Edit at https://www.toptal.com/developers/gitignore?templates=go
@@ -29,4 +30,4 @@ __debug*
2930
# Go workspace file
3031
go.work
3132

32-
# End of https://www.toptal.com/developers/gitignore/api/go
33+
# End of https://www.toptal.com/developers/gitignore/api/go

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ RUN CGO_ENABLED=0 GOOS=${TARGET_OS} GOARCH=${TARGETARCH} go build -o ./cmd/netb
1414

1515
FROM alpine:3.20.0@sha256:77726ef6b57ddf65bb551896826ec38bc3e53f75cdde31354fbffb4f25238ebd
1616

17+
# Install openssh required for netconf
18+
RUN apk add openssh
19+
1720
WORKDIR /app
1821

1922
COPY --from=builder /app/cmd/netbox-ssot/main ./main

internal/source/ios-xe/iosxe.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ func (is *IOSXESource) Init() error {
123123
options.WithAuthUsername(is.SourceConfig.Username),
124124
options.WithAuthPassword(is.SourceConfig.Password),
125125
options.WithPort(is.SourceConfig.Port),
126+
options.WithAuthNoStrictKey(), // inside container we can't confirm ssh key
126127
)
127128
if err != nil {
128129
return fmt.Errorf("failed to create driver: %s", err)

0 commit comments

Comments
 (0)