Skip to content

Commit

Permalink
refactor(network): move evpn cmd files in network dir
Browse files Browse the repository at this point in the history
Signed-off-by: Artsiom Koltun <artsiom.koltun@intel.com>
  • Loading branch information
artek-koltun committed Jan 29, 2024
1 parent 0d88974 commit 89f9207
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions cmd/evpn-bridge-port.go → cmd/network/evpn-bridge-port.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Copyright (c) 2022-2023 Intel Corporation, or its subsidiaries.
// Copyright (c) 2022-2023 Dell Inc, or its subsidiaries.

// Package cmd implements the CLI commands
package cmd
// Package network implements the network related CLI commands
package network

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Copyright (c) 2022-2023 Intel Corporation, or its subsidiaries.
// Copyright (c) 2022-2023 Dell Inc, or its subsidiaries.

// Package cmd implements the CLI commands
package cmd
// Package network implements the network related CLI commands
package network

import (
"context"
Expand Down
4 changes: 2 additions & 2 deletions cmd/evpn-svi.go → cmd/network/evpn-svi.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Copyright (c) 2022-2023 Intel Corporation, or its subsidiaries.
// Copyright (c) 2022-2023 Dell Inc, or its subsidiaries.

// Package cmd implements the CLI commands
package cmd
// Package network implements the network related CLI commands
package network

import (
"context"
Expand Down
4 changes: 2 additions & 2 deletions cmd/evpn-test.go → cmd/network/evpn-test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Copyright (c) 2022-2023 Intel Corporation, or its subsidiaries.
// Copyright (c) 2022-2023 Dell Inc, or its subsidiaries.

// Package cmd implements the CLI commands
package cmd
// Package network implements the network related CLI commands
package network

import (
"log"
Expand Down
4 changes: 2 additions & 2 deletions cmd/evpn-vrf.go → cmd/network/evpn-vrf.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Copyright (c) 2022-2023 Intel Corporation, or its subsidiaries.
// Copyright (c) 2022-2023 Dell Inc, or its subsidiaries.

// Package cmd implements the CLI commands
package cmd
// Package network implements the network related CLI commands
package network

import (
"context"
Expand Down
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"os"

"github.com/opiproject/godpu/cmd"
"github.com/opiproject/godpu/cmd/network"
"github.com/opiproject/godpu/cmd/storage"
"github.com/spf13/cobra"
)
Expand Down Expand Up @@ -39,6 +40,6 @@ func newCommand() *cobra.Command {
c.AddCommand(cmd.NewInventoryCommand())
c.AddCommand(cmd.NewIPSecCommand())
c.AddCommand(storage.NewStorageCommand())
c.AddCommand(cmd.NewEvpnCommand())
c.AddCommand(network.NewEvpnCommand())
return c
}

0 comments on commit 89f9207

Please sign in to comment.