Documentation ¶
Index ¶
- Constants
- type AutoParams
- type Cfg
- func (gc *Cfg) AllocSubnet(ra core.ResourceManager) (string, error)
- func (gc *Cfg) AllocVlan(ra core.ResourceManager) (uint, error)
- func (gc *Cfg) AllocVxlan(ra core.ResourceManager) (vxlan uint, localVlan uint, err error)
- func (gc *Cfg) Clear() error
- func (gc *Cfg) Dump() error
- func (gc *Cfg) FreeSubnet(ra core.ResourceManager, subnetIp string) error
- func (gc *Cfg) FreeVlan(ra core.ResourceManager, vlan uint) error
- func (gc *Cfg) FreeVxlan(ra core.ResourceManager, vxlan uint, localVlan uint) error
- func (gc *Cfg) Process(ra core.ResourceManager) error
- func (gc *Cfg) Read(tenant string) error
- func (gc *Cfg) ReadAll() ([]core.State, error)
- func (gc *Cfg) Write() error
- type DeployParams
- type Oper
Constants ¶
View Source
const ( BASE_GLOBAL = "/contiv/" CFG_GLOBAL_PREFIX = BASE_GLOBAL + "config/global/" CFG_GLOBAL_PATH = CFG_GLOBAL_PREFIX + "%s" OPER_GLOBAL_PREFIX = BASE_GLOBAL + "oper/global/" OPER_GLOBAL_PATH = OPER_GLOBAL_PREFIX + "%s" )
View Source
const (
VersionBeta1 = "0.01"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoParams ¶
type AutoParams struct { SubnetPool string `json:"subnetPool"` SubnetLen uint `json:"subnetLen"` AllocSubnetLen uint `json:"AllocSubnetLen"` Vlans string `json:"Vlans"` Vxlans string `json:"Vxlans"` }
specifies various parameters to choose the auto allocation values to pick from this allows mostly hands-free allocation of networks, endpoints, attach/detach operations without having to specify these each time an entity gets created
type Cfg ¶
type Cfg struct { core.CommonState Version string `json:"version"` Tenant string `json:"tenant"` Auto AutoParams `json:auto"` Deploy DeployParams `json:"deploy"` }
global state of the network plugin
func (*Cfg) AllocSubnet ¶
func (gc *Cfg) AllocSubnet(ra core.ResourceManager) (string, error)
func (*Cfg) AllocVxlan ¶
func (*Cfg) FreeSubnet ¶
func (gc *Cfg) FreeSubnet(ra core.ResourceManager, subnetIp string) error
type DeployParams ¶
type DeployParams struct {
DefaultNetType string `json:"defaultNetType"`
}
specifies parameters that decides the deployment choices
Click to show internal directories.
Click to hide internal directories.