Skip to content

Commit

Permalink
removed some unused options
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcoles committed Jun 17, 2024
1 parent 92c1736 commit 3abaf6f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
16 changes: 5 additions & 11 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ func main() {
sock := flag.String("s", "", "socket") // used internally
addr := flag.String("a", "", "address")
native := flag.Bool("n", false, "Native mode XDP")
//untagged := flag.Bool("u", false, "Untagged VLAN mode")
asn := flag.Uint("A", 0, "Autonomous system number for loopback peer")

flag.Parse()
Expand Down Expand Up @@ -105,10 +104,6 @@ func main() {
*native = true
}

//if config.Untagged {
// *untagged = true
//}

if config.Webserver != "" {
*webserver = config.Webserver
}
Expand Down Expand Up @@ -153,12 +148,11 @@ func main() {
client := &xvs.Client{
Interfaces: nics,
Address: address,
//Redirect: *untagged,
Native: *native,
VLANs: config.vlans(),
NAT: true,
Share: config.Multicast != "",
Debug: &Debug{Log: logs.sub("xvs")},
Native: *native,
VLANs: config.vlans(),
NAT: true,
Share: config.Multicast != "",
Debug: &Debug{Log: logs.sub("xvs")},
}

err = client.Start()
Expand Down
2 changes: 1 addition & 1 deletion doc/bgp.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Loopback BGP mode

If the `-A` flag is used to specify an autonomous system number then
loopback BGP mode is enabled. This will override the confing file and
loopback BGP mode is enabled. This will override the config file and
connect to a local BGP peer on the 127.0.0.1 address to advertise
VIPs. From there the prefixes can be re-advertised into your network
by your chosen implementation.
Expand Down

0 comments on commit 3abaf6f

Please sign in to comment.