Documentation ¶
Index ¶
- Constants
- func CreatePlugin(registry *osdn.Registry, multitenant bool, hostname string, selfIP string) (api.OsdnPlugin, api.FilteringEndpointsConfigHandler, error)
- func MultiTenantPluginName() string
- func SingleTenantPluginName() string
- type FlowController
- func (c *FlowController) AddOFRules(nodeIP, nodeSubnetCIDR, localIP string) error
- func (c *FlowController) AddServiceOFRules(netID uint, IP string, protocol api.ServiceProtocol, port uint) error
- func (c *FlowController) DelOFRules(nodeIP, localIP string) error
- func (c *FlowController) DelServiceOFRules(netID uint, IP string, protocol api.ServiceProtocol, port uint) error
- func (c *FlowController) GetName() string
- func (c *FlowController) Setup(localSubnetCIDR, clusterNetworkCIDR, servicesNetworkCIDR string, mtu uint) (bool, error)
Constants ¶
View Source
const ( // rule versioning; increment each time flow rules change VERSION = 1 VERSION_TABLE = "table=253" VERSION_ACTION = "actions=note:" BR = "br0" LBR = "lbr0" TUN = "tun0" VLINUXBR = "vlinuxbr" VOVSBR = "vovsbr" VXLAN = "vxlan0" )
Variables ¶
This section is empty.
Functions ¶
func CreatePlugin ¶
func CreatePlugin(registry *osdn.Registry, multitenant bool, hostname string, selfIP string) (api.OsdnPlugin, api.FilteringEndpointsConfigHandler, error)
func MultiTenantPluginName ¶
func MultiTenantPluginName() string
func SingleTenantPluginName ¶
func SingleTenantPluginName() string
Types ¶
type FlowController ¶
type FlowController struct {
// contains filtered or unexported fields
}
func NewFlowController ¶
func NewFlowController(multitenant bool) *FlowController
func (*FlowController) AddOFRules ¶
func (c *FlowController) AddOFRules(nodeIP, nodeSubnetCIDR, localIP string) error
func (*FlowController) AddServiceOFRules ¶
func (c *FlowController) AddServiceOFRules(netID uint, IP string, protocol api.ServiceProtocol, port uint) error
func (*FlowController) DelOFRules ¶
func (c *FlowController) DelOFRules(nodeIP, localIP string) error
func (*FlowController) DelServiceOFRules ¶
func (c *FlowController) DelServiceOFRules(netID uint, IP string, protocol api.ServiceProtocol, port uint) error
func (*FlowController) GetName ¶
func (c *FlowController) GetName() string
Click to show internal directories.
Click to hide internal directories.