mirror of
https://github.com/danderson/netboot.git
synced 2025-10-16 18:11:21 +02:00
Merged pixicorev6 package into pixicore
This commit is contained in:
parent
1ae9c3ab68
commit
8f56f51bbb
@ -1,4 +1,4 @@
|
||||
package pixiecorev6
|
||||
package pixiecore
|
||||
|
||||
import (
|
||||
"net/http"
|
@ -3,11 +3,11 @@ package cli
|
||||
import (
|
||||
"github.com/spf13/cobra"
|
||||
"fmt"
|
||||
"go.universe.tf/netboot/pixiecorev6"
|
||||
"go.universe.tf/netboot/dhcp6"
|
||||
"go.universe.tf/netboot/dhcp6/pool"
|
||||
"net"
|
||||
"strings"
|
||||
"go.universe.tf/netboot/pixiecore"
|
||||
)
|
||||
|
||||
// pixiecore bootipv6 --listen-addr=2001:db8:f00f:cafe::4/64 --httpboot-url=http://[2001:db8:f00f:cafe::4]/bootx64.efi --ipxe-url=http://[2001:db8:f00f:cafe::4]/script.ipxe
|
||||
@ -28,7 +28,7 @@ var bootIPv6Cmd = &cobra.Command{
|
||||
fatalf("Error reading flag: %s", err)
|
||||
}
|
||||
|
||||
s := pixiecorev6.NewServerV6()
|
||||
s := pixiecore.NewServerV6()
|
||||
|
||||
s.Log = logWithStdFmt
|
||||
debug, err := cmd.Flags().GetBool("debug")
|
||||
@ -63,7 +63,7 @@ var bootIPv6Cmd = &cobra.Command{
|
||||
dnsServerAddresses = append(dnsServerAddresses, net.ParseIP(dnsServerAddress))
|
||||
}
|
||||
}
|
||||
s.BootConfig = pixiecorev6.MakeStaticBootConfiguration(httpBootURL, ipxeURL, preference,
|
||||
s.BootConfig = pixiecore.MakeStaticBootConfiguration(httpBootURL, ipxeURL, preference,
|
||||
cmd.Flags().Changed("preference"), dnsServerAddresses)
|
||||
|
||||
addressPoolStart, err := cmd.Flags().GetString("address-pool-start")
|
||||
|
@ -3,12 +3,12 @@ package cli
|
||||
import (
|
||||
"github.com/spf13/cobra"
|
||||
"fmt"
|
||||
"go.universe.tf/netboot/pixiecorev6"
|
||||
"go.universe.tf/netboot/dhcp6"
|
||||
"go.universe.tf/netboot/dhcp6/pool"
|
||||
"time"
|
||||
"net"
|
||||
"strings"
|
||||
"go.universe.tf/netboot/pixiecore"
|
||||
)
|
||||
|
||||
// pixiecore ipv6api --listen-addr=2001:db8:f00f:cafe::4 --api-request-url=http://[2001:db8:f00f:cafe::4]:8888
|
||||
@ -30,7 +30,7 @@ var ipv6ApiCmd = &cobra.Command{
|
||||
fatalf("Error reading flag: %s", err)
|
||||
}
|
||||
|
||||
s := pixiecorev6.NewServerV6()
|
||||
s := pixiecore.NewServerV6()
|
||||
s.Log = logWithStdFmt
|
||||
debug, err := cmd.Flags().GetBool("debug")
|
||||
if err != nil {
|
||||
@ -60,7 +60,7 @@ var ipv6ApiCmd = &cobra.Command{
|
||||
dnsServerAddresses = append(dnsServerAddresses, net.ParseIP(dnsServerAddress))
|
||||
}
|
||||
}
|
||||
s.BootConfig = pixiecorev6.MakeAPIBootConfiguration(apiURL, apiTimeout, preference,
|
||||
s.BootConfig = pixiecore.MakeAPIBootConfiguration(apiURL, apiTimeout, preference,
|
||||
cmd.Flags().Changed("preference"), dnsServerAddresses)
|
||||
|
||||
addressPoolStart, err := cmd.Flags().GetString("address-pool-start")
|
||||
|
@ -1,4 +1,4 @@
|
||||
package pixiecorev6
|
||||
package pixiecore
|
||||
|
||||
import (
|
||||
"go.universe.tf/netboot/dhcp6"
|
@ -1,4 +1,4 @@
|
||||
package pixiecorev6
|
||||
package pixiecore
|
||||
|
||||
import (
|
||||
"go.universe.tf/netboot/dhcp6"
|
Loading…
x
Reference in New Issue
Block a user