Skip to content

Commit

Permalink
F-93: onerange plugin to onelease
Browse files Browse the repository at this point in the history
Signed-off-by: Jaime <[email protected]>
  • Loading branch information
jaimecb committed Nov 27, 2024
1 parent b598a84 commit eb37b6f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 310 deletions.
2 changes: 0 additions & 2 deletions appliances/VRouter/DHCP4v2/dhcpcore-onelease/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import (
dhcpcoreconfig "github.com/coredhcp/coredhcp/config"

pl_onelease "github.com/OpenNebula/one-apps/appliances/VRouterd/DHCP4v2/dhcpcore-onelease/plugins/onelease"
pl_onerange "github.com/OpenNebula/one-apps/appliances/VRouterd/DHCP4v2/dhcpcore-onelease/plugins/onerange"

"github.com/coredhcp/coredhcp/plugins"
pl_autoconfigure "github.com/coredhcp/coredhcp/plugins/autoconfigure"
Expand Down Expand Up @@ -72,7 +71,6 @@ var desiredPlugins = []*plugins.Plugin{
&pl_nbp.Plugin,
&pl_netmask.Plugin,
&pl_onelease.Plugin,
&pl_onerange.Plugin,
&pl_prefix.Plugin,
//&pl_range.Plugin,
&pl_router.Plugin,
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Adapted by OpenNebula Systems for the VRouter appliance
// Copyright 2024-present OpenNebula Systems

package onerange
package onelease

import (
"database/sql"
Expand All @@ -29,11 +29,11 @@ import (
"github.com/spf13/pflag"
)

var log = logger.GetLogger("plugins/onerange")
var log = logger.GetLogger("plugins/onelease")

// Plugin wraps plugin registration information
var Plugin = plugins.Plugin{
Name: "onerange",
Name: "onelease",
Setup4: setupRange,
}

Expand Down Expand Up @@ -201,7 +201,7 @@ func setupRange(args ...string) (handler.Handler4, error) {
var excludedIPs string
var macPrefix string

pluginFlags := pflag.NewFlagSet("onerange", pflag.ExitOnError)
pluginFlags := pflag.NewFlagSet("onelease", pflag.ExitOnError)

pluginFlags.StringVar(&excludedIPs, "excluded-ips", "", "Comma-separated list of excluded IP addresses")
pluginFlags.BoolVar(&p.enableMAC2IP, "mac2ip", false, "Enables MAC to IP address mapping")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Adapted by OpenNebula Systems for the VRouter appliance
// Copyright 2024-present OpenNebula Systems

package onerange
package onelease

import (
"database/sql"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Adapted by OpenNebula Systems for the VRouter appliance
// Copyright 2024-present OpenNebula Systems

package onerange
package onelease

import (
"database/sql"
Expand Down

0 comments on commit eb37b6f

Please sign in to comment.