f-14: bin: update bin #14
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
9fb4d10d27
commit
d050568638
1 changed files with 6 additions and 3 deletions
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"git.g3e.fr/syonad/two/internal/netif"
|
"git.g3e.fr/syonad/two/internal/vpc"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
@ -19,8 +19,11 @@ func main() {
|
||||||
|
|
||||||
switch *action {
|
switch *action {
|
||||||
case "create":
|
case "create":
|
||||||
err := netif.CreateVethToNetns("veth"+*name+"ext", "veth"+*name+"int", "/var/run/netns/"+*netns, 9000)
|
if err := vpc.CreateVPC(*name); err != nil {
|
||||||
if err != nil {
|
fmt.Println(err)
|
||||||
|
}
|
||||||
|
case "delete":
|
||||||
|
if err := vpc.DeleteVPC(*name); err != nil {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue