aboutsummaryrefslogtreecommitdiff
path: root/cmd/vhost
diff options
context:
space:
mode:
authorDavid Doan <daviddoan@Davids-MacBook-Pro-70.local>2023-10-23 14:53:30 -0400
committerDavid Doan <daviddoan@Davids-MacBook-Pro-70.local>2023-10-23 14:53:30 -0400
commit972cc0287e2e1231b7b67177e5bc89af5dead23c (patch)
treefe1012417c06775c98e81c4d88372c691f0ba1bd /cmd/vhost
parent0d68d5aa82a980b10b8afd00e054f6c126e50d93 (diff)
comments and refactoring
Diffstat (limited to 'cmd/vhost')
-rw-r--r--cmd/vhost/main.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/cmd/vhost/main.go b/cmd/vhost/main.go
index dbf899a..26280ef 100644
--- a/cmd/vhost/main.go
+++ b/cmd/vhost/main.go
@@ -84,6 +84,16 @@ func main() {
ifaceName := line[3:]
ipstack.InterfaceUpREPL(ifaceName)
}
+ } else {
+ fmt.Println("Invalid command: ", line)
+ fmt.Println("Commands: ")
+ fmt.Println(" exit Terminate this program")
+ fmt.Println(" li List interfaces")
+ fmt.Println(" lr List routes")
+ fmt.Println(" ln List available neighbors")
+ fmt.Println(" up Enable an interface")
+ fmt.Println(" down Disable an interface")
+ fmt.Println(" send Send test packet")
}
continue
}