Skip to content

Commit 607756e

Browse files
committed
fix(godpu): restore missing test file
Signed-off-by: Mark Sanders <marksanders194@gmail.com>
1 parent 441f270 commit 607756e

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

cmd/network/evpn/evpn-test.go

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
// SPDX-License-Identifier: Apache-2.0
2+
// Copyright (c) 2022-2023 Intel Corporation, or its subsidiaries.
3+
// Copyright (c) 2022-2023 Dell Inc, or its subsidiaries.
4+
5+
// Package evpn implements the evpn related CLI commands
6+
package evpn
7+
8+
import (
9+
"log"
10+
11+
"github.com/spf13/cobra"
12+
)
13+
14+
// NewEvpnCommand tests the EVPN functionality command
15+
func NewEvpnCommand() *cobra.Command {
16+
cmd := &cobra.Command{
17+
Use: "evpn",
18+
Aliases: []string{"g"},
19+
Short: "Tests DPU evpn functionality",
20+
Args: cobra.NoArgs,
21+
Run: func(cmd *cobra.Command, _ []string) {
22+
err := cmd.Help()
23+
if err != nil {
24+
log.Fatalf("[ERROR] %s", err.Error())
25+
}
26+
},
27+
}
28+
// Bridge cli's
29+
cmd.AddCommand(CreateLogicalBridge())
30+
cmd.AddCommand(DeleteLogicalBridge())
31+
cmd.AddCommand(GetLogicalBridge())
32+
cmd.AddCommand(ListLogicalBridges())
33+
cmd.AddCommand(UpdateLogicalBridge())
34+
// Port cli's
35+
cmd.AddCommand(CreateBridgePort())
36+
cmd.AddCommand(DeleteBridgePort())
37+
cmd.AddCommand(GetBridgePort())
38+
cmd.AddCommand(ListBridgePorts())
39+
cmd.AddCommand(UpdateBridgePort())
40+
// VRF cli's
41+
cmd.AddCommand(CreateVRF())
42+
cmd.AddCommand(DeleteVRF())
43+
cmd.AddCommand(GetVRF())
44+
cmd.AddCommand(ListVRFs())
45+
cmd.AddCommand(UpdateVRF())
46+
// SVI cli's
47+
cmd.AddCommand(CreateSVI())
48+
cmd.AddCommand(DeleteSVI())
49+
cmd.AddCommand(GetSVI())
50+
cmd.AddCommand(ListSVIs())
51+
cmd.AddCommand(UpdateSVI())
52+
53+
return cmd
54+
}

0 commit comments

Comments
 (0)