Skip to content

Commit 06773d7

Browse files
author
schavezc
committed
make format
1 parent 1e00773 commit 06773d7

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

nodes/sros/sros.go

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ var (
157157
e1-x2-3-4 -> card 1, xiom 2, mda 3, port 4
158158
e1-x2-3-c4-5 -> card 1, xiom 2, mda 3, connector 4, port 5
159159
eth[0-9], for management interfaces of CPM-A/CPM-B or for fabric interfaces`
160-
// Auxiliary regexps for IXR/SAR detection
160+
// Auxiliary regexps for IXR/SAR detection.
161161
sarRegexp = regexp.MustCompile(`(?i)\bsar-`)
162162
sarHmRegexp = regexp.MustCompile(`(?i)\b(sar-hm|sar-hmc)\b`)
163163

@@ -1156,7 +1156,6 @@ func (n *sros) prepareConfigTemplateData() (*srosTemplateData, error) {
11561156

11571157
// applyNodeTypeSpecificConfig applies node-type and security specific overrides.
11581158
func (n *sros) applyNodeTypeSpecificConfig(tplData *srosTemplateData) {
1159-
11601159
// SR OS nodes with insecure gRPC, non-IXR/SAR
11611160
if !tplData.IsSecureGrpc {
11621161
tplData.GRPCConfig = grpcConfigInsecure
@@ -1179,22 +1178,25 @@ func (n *sros) applyNodeTypeSpecificConfig(tplData *srosTemplateData) {
11791178
if isSAR {
11801179
tplData.SystemConfig = systemCfgSAR
11811180
tplData.GRPCConfig = grpcConfigSAR
1182-
//SAR with insecure gRPC
1181+
// SAR with insecure gRPC
11831182
if !tplData.IsSecureGrpc {
11841183
tplData.GRPCConfig = grpcConfigSARInsecure
11851184
}
11861185
isSARHm := sarHmRegexp.MatchString(n.Cfg.NodeType)
1187-
if isSARHm { //MD disabled on SAR-Hm nodes
1186+
if isSARHm { // MD disabled on SAR-Hm nodes
11881187
if tplData.ConfigurationMode != "classic" {
1189-
log.Warn("SAR-Hm nodes only support classic configuration mode. Overriding configuration mode to 'classic'",
1190-
"node", n.Cfg.LongName,
1191-
"node-type", tplData.NodeType)
1188+
log.Warn(
1189+
"SAR-Hm nodes only support classic configuration mode. Overriding configuration mode to 'classic'",
1190+
"node",
1191+
n.Cfg.LongName,
1192+
"node-type",
1193+
tplData.NodeType,
1194+
)
11921195
tplData.ConfigurationMode = "classic"
11931196
n.Cfg.Env[envSrosConfigMode] = "classic"
11941197
}
11951198
}
11961199
}
1197-
11981200
}
11991201

12001202
// selectConfigTemplate chooses the appropriate config template based on template data.

runtime/ignite/ignite.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,10 +531,10 @@ func (*IgniteRuntime) StreamEvents(
531531
) (<-chan clabruntime.ContainerEvent, <-chan error, error) {
532532
return nil, nil, fmt.Errorf("StreamEvents is not implemented for Ignite runtime")
533533
}
534+
534535
func (*IgniteRuntime) InspectImage(
535536
ctx context.Context,
536537
imageName string,
537538
) (*runtime.ImageInspect, error) {
538539
return nil, fmt.Errorf("InspectImage not implemented for Ignite runtime")
539540
}
540-

runtime/podman/podman.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,9 @@ func (*PodmanRuntime) StreamEvents(
502502
return nil, nil, fmt.Errorf("StreamEvents is not implemented for Podman runtime")
503503
}
504504

505-
func (p *PodmanRuntime) InspectImage(ctx context.Context, imageName string) (*runtime.ImageInspect, error) {
505+
func (p *PodmanRuntime) InspectImage(
506+
ctx context.Context,
507+
imageName string,
508+
) (*runtime.ImageInspect, error) {
506509
return nil, fmt.Errorf("InspectImage not implemented for Podman runtime")
507510
}

0 commit comments

Comments
 (0)