Add macvlan to linux multicall binary

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
Brad Davidson 2024-01-16 21:35:58 +00:00
parent 1255b64eed
commit 098cc198b7
No known key found for this signature in database
GPG Key ID: FFB7A9376A9349B9
4 changed files with 6 additions and 4 deletions

View File

@ -16,6 +16,7 @@ import (
hostlocal "github.com/containernetworking/plugins/plugins/ipam/host-local"
"github.com/containernetworking/plugins/plugins/main/bridge"
"github.com/containernetworking/plugins/plugins/main/loopback"
"github.com/containernetworking/plugins/plugins/main/macvlan"
"github.com/containernetworking/plugins/plugins/meta/bandwidth"
"github.com/containernetworking/plugins/plugins/meta/firewall"
"github.com/containernetworking/plugins/plugins/meta/flannel"
@ -30,6 +31,7 @@ func main() {
reexec.Register("flannel", flannel.Main)
reexec.Register("host-local", hostlocal.Main)
reexec.Register("loopback", loopback.Main)
reexec.Register("macvlan", macvlan.Main)
reexec.Register("portmap", portmap.Main)
if !reexec.Init() {
_, _ = fmt.Fprintln(os.Stderr, bv.BuildString("plugins"))

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package main
package macvlan
import (
"encoding/json"
@ -426,7 +426,7 @@ func cmdDel(args *skel.CmdArgs) error {
return err
}
func main() {
func Main() {
skel.PluginMain(cmdAdd, cmdCheck, cmdDel, version.All, bv.BuildString("macvlan"))
}

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package main
package macvlan_test
import (
"testing"

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package main
package macvlan
import (
"encoding/json"