f-34: route: add default gateway full gestion
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
d15454d35b
commit
46596f8142
13 changed files with 396 additions and 51 deletions
15
internal/subnet/mode.go
Normal file
15
internal/subnet/mode.go
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
package subnet
|
||||
|
||||
const (
|
||||
ModeVxlan = "vxlan"
|
||||
ModeBridge = "bridge"
|
||||
ModePublicIP = "public_ip"
|
||||
)
|
||||
|
||||
func ValidMode(mode string) bool {
|
||||
switch mode {
|
||||
case ModeVxlan, ModeBridge, ModePublicIP:
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue