Skip to content

huyinhou/CNI-macvtap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

macvtap plugin

Overview

This project modified from cni macvlan

Example configuration

{
	"name": "mynet",
	"type": "macvtap",
	"master": "eth0",
	"ipam": {
		"type": "dhcp"
	}
}

Network configuration reference

  • name (string, required): the name of the network
  • type (string, required): "macvtap"
  • master (string, optional): name of the host interface to enslave. Defaults to default route interface.
  • mode (string, optional): one of "bridge", "private", "vepa", "passthru". Defaults to "bridge".
  • mtu (integer, optional): explicitly set MTU to the specified value. Defaults to the value chosen by the kernel. The value must be [0, master's MTU].
  • ipam (dictionary, required): IPAM configuration to be used for this network. For interface only without ip address, create empty dictionary.

Build and test

# build this project
go build

The project needs to run test cases with root privileges.

export PATH=/opt/cni/bin/:$PATH
go test -ginkgo.v

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages