Skip to content

Commit

Permalink
Add logging for L3/L2
Browse files Browse the repository at this point in the history
Signed-off-by: Krishna Harsha Voora <[email protected]>
  • Loading branch information
krishvoor committed Nov 23, 2024
1 parent 607b288 commit 14558dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions udn-density-pods.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"time"

"github.com/kube-burner/kube-burner/pkg/workloads"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)

Expand Down Expand Up @@ -49,8 +50,10 @@ func NewUDNDensityPods(wh *workloads.WorkloadHelper) *cobra.Command {
setMetrics(cmd, metricsProfiles)
// Disable l3 when the user chooses l2
if l3 {
log.Info("Layer 3 is enabled")
os.Setenv("ENABLE_LAYER_3", "true")
} else {
log.Info("Layer 2 is enabled")
os.Setenv("ENABLE_LAYER_3", "false")
}
rc = wh.Run("udn-density-pods")
Expand Down

0 comments on commit 14558dd

Please sign in to comment.