Documentation ¶
Index ¶
- func NewPlaybookBrVlanYamlTemplate() *template.Template
- func NewPlaybookDaemonsTemplate() *template.Template
- func NewPlaybookFibcYamlTemplate() *template.Template
- func NewPlaybookFrrConfTemplate() *template.Template
- func NewPlaybookGoBGPConfTemplate() *template.Template
- func NewPlaybookGoBGPdConfTemplate() *template.Template
- func NewPlaybookInventoryTemplate() *template.Template
- func NewPlaybookLXDProfileTemplate() *template.Template
- func NewPlaybookNetplanYamlTemplate() *template.Template
- func NewPlaybookRibtdConfTemplate() *template.Template
- func NewPlaybookRibxdConfTemplate() *template.Template
- func NewPlaybookSnmpConfTemplate() *template.Template
- func NewPlaybookSnmpProxydConfTemplate() *template.Template
- func NewPlaybookSnmpProxydYamlTemplate() *template.Template
- func NewPlaybookSnmpdConfTemplate() *template.Template
- func NewPlaybookSysctlConfTemplate() *template.Template
- func NewPlaybookTemplate() *template.Template
- type Playbook
- type PlaybookBrVlanVlan
- type PlaybookBrVlanYaml
- type PlaybookDaemon
- type PlaybookDaemons
- type PlaybookFibcPort
- type PlaybookFibcYaml
- type PlaybookFrrConf
- type PlaybookGoBGPConf
- type PlaybookGoBGPdConf
- type PlaybookInventory
- type PlaybookNetplanEth
- type PlaybookNetplanVlan
- type PlaybookNetplanYaml
- type PlaybookRibtdConf
- type PlaybookRibxdConf
- type PlaybookSnmpConf
- type PlaybookSnmpProxydConf
- type PlaybookSnmpProxydYaml
- type PlaybookSnmpdConf
- type PlaybookSysctlConf
- type PlybookLXDProfile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPlaybookBrVlanYamlTemplate ¶ added in v0.4.0
func NewPlaybookSnmpConfTemplate ¶ added in v0.4.0
func NewPlaybookSnmpdConfTemplate ¶ added in v0.4.0
func NewPlaybookTemplate ¶
Types ¶
type PlaybookBrVlanVlan ¶ added in v0.4.0
func NewPlaybookBrVlanVlan ¶ added in v0.4.0
func NewPlaybookBrVlanVlan(ifname string) *PlaybookBrVlanVlan
type PlaybookBrVlanYaml ¶ added in v0.4.0
type PlaybookBrVlanYaml struct {
Vlans []*PlaybookBrVlanVlan
}
func NewPlaybookBrVlanYaml ¶ added in v0.4.0
func NewPlaybookBrVlanYaml() *PlaybookBrVlanYaml
func (*PlaybookBrVlanYaml) AddAccessPort ¶ added in v0.4.0
func (p *PlaybookBrVlanYaml) AddAccessPort(index uint, vid uint)
func (*PlaybookBrVlanYaml) AddTrunkPort ¶ added in v0.4.0
func (p *PlaybookBrVlanYaml) AddTrunkPort(index uint, vids ...uint)
type PlaybookDaemon ¶
func NewPlaybookDaemon ¶
func NewPlaybookDaemon(name, arg string) *PlaybookDaemon
type PlaybookDaemons ¶
type PlaybookDaemons struct {
// contains filtered or unexported fields
}
func NewPlaybookDaemons ¶
func NewPlaybookDaemons() *PlaybookDaemons
func (*PlaybookDaemons) Set ¶
func (p *PlaybookDaemons) Set(daemon, arg string)
func (*PlaybookDaemons) SetMap ¶
func (p *PlaybookDaemons) SetMap(m map[string]string)
func (*PlaybookDaemons) SetNo ¶
func (p *PlaybookDaemons) SetNo(daemons ...string)
func (*PlaybookDaemons) SetYes ¶
func (p *PlaybookDaemons) SetYes(daemons ...string)
type PlaybookFibcPort ¶
func NewPlaybookFibcPort ¶
func NewPlaybookFibcPort(pport, lport uint) *PlaybookFibcPort
func (*PlaybookFibcPort) Ifname ¶
func (p *PlaybookFibcPort) Ifname() string
type PlaybookFibcYaml ¶
type PlaybookFibcYaml struct { Desc string ReID string DpName string DpID uint64 DpMode string Ports []*PlaybookFibcPort }
func NewPlaybookFibcYaml ¶
func NewPlaybookFibcYaml(reID, dpName string) *PlaybookFibcYaml
func (*PlaybookFibcYaml) AddPort ¶
func (p *PlaybookFibcYaml) AddPort(pport, lport uint)
func (*PlaybookFibcYaml) AddPorts ¶
func (p *PlaybookFibcYaml) AddPorts(m map[uint]uint)
type PlaybookFrrConf ¶
func NewPlaybookFrrConf ¶
func NewPlaybookFrrConf(routerID string) *PlaybookFrrConf
func (*PlaybookFrrConf) AddIface ¶
func (p *PlaybookFrrConf) AddIface(index, vid uint)
type PlaybookGoBGPConf ¶
type PlaybookGoBGPConf struct { }
func NewPlaybookGoBGPConf ¶
func NewPlaybookGoBGPConf() *PlaybookGoBGPConf
type PlaybookGoBGPdConf ¶
func NewPlaybookGoBGPdConf ¶
func NewPlaybookGoBGPdConf() *PlaybookGoBGPdConf
type PlaybookInventory ¶
func NewPlaybookInventory ¶
func NewPlaybookInventory() *PlaybookInventory
func (*PlaybookInventory) AddHost ¶
func (p *PlaybookInventory) AddHost(host string)
func (*PlaybookInventory) AddHosts ¶
func (p *PlaybookInventory) AddHosts(hosts ...string)
type PlaybookNetplanEth ¶
func NewPlaybookNetplanEth ¶
func NewPlaybookNetplanEth(name string, mtu uint16) *PlaybookNetplanEth
type PlaybookNetplanVlan ¶
func NewPlaybookNetplanVlan ¶
func NewPlaybookNetplanVlan(link string, vid uint) *PlaybookNetplanVlan
type PlaybookNetplanYaml ¶
type PlaybookNetplanYaml struct { Eths []*PlaybookNetplanEth Vlans []*PlaybookNetplanVlan }
func NewPlaybookNetplanYaml ¶
func NewPlaybookNetplanYaml() *PlaybookNetplanYaml
func (*PlaybookNetplanYaml) AddEth ¶
func (p *PlaybookNetplanYaml) AddEth(index uint, mtu uint16)
func (*PlaybookNetplanYaml) AddVlan ¶
func (p *PlaybookNetplanYaml) AddVlan(index uint, vid uint)
type PlaybookRibtdConf ¶
type PlaybookRibtdConf struct { }
func NewPlaybookRibtdConf ¶
func NewPlaybookRibtdConf() *PlaybookRibtdConf
type PlaybookRibxdConf ¶
func NewPlaybookRibxdConf ¶
func NewPlaybookRibxdConf() *PlaybookRibxdConf
type PlaybookSnmpConf ¶ added in v0.4.0
type PlaybookSnmpConf struct { }
func NewPlaybookSnmpConf ¶ added in v0.4.0
func NewPlaybookSnmpConf() *PlaybookSnmpConf
type PlaybookSnmpProxydConf ¶
func NewPlaybookSnmpProxydConf ¶
func NewPlaybookSnmpProxydConf(host bool) *PlaybookSnmpProxydConf
type PlaybookSnmpProxydYaml ¶
func NewPlaybookSnmpProxydYaml ¶
func NewPlaybookSnmpProxydYaml() *PlaybookSnmpProxydYaml
func (*PlaybookSnmpProxydYaml) AddTrap2Map ¶
func (p *PlaybookSnmpProxydYaml) AddTrap2Map(pport, lport uint)
type PlaybookSnmpdConf ¶ added in v0.4.0
func NewPlaybookSnmpdConf ¶ added in v0.4.0
func NewPlaybookSnmpdConf() *PlaybookSnmpdConf
type PlaybookSysctlConf ¶
type PlaybookSysctlConf struct { SockBufSize uint MplsLabel uint // contains filtered or unexported fields }
func NewPlaybookSysctlConf ¶
func NewPlaybookSysctlConf() *PlaybookSysctlConf
func (*PlaybookSysctlConf) AddIface ¶
func (p *PlaybookSysctlConf) AddIface(index, vid uint)
func (*PlaybookSysctlConf) Ifaces ¶
func (p *PlaybookSysctlConf) Ifaces() []string
type PlybookLXDProfile ¶
type PlybookLXDProfile struct { Name string MngIface string BridgeIface string Mtu uint16 Ports []uint }
func NewPlaybookLXDProfile ¶
func NewPlaybookLXDProfile() *PlybookLXDProfile
func (*PlybookLXDProfile) AddPort ¶
func (p *PlybookLXDProfile) AddPort(pport uint)
func (*PlybookLXDProfile) AddPorts ¶
func (p *PlybookLXDProfile) AddPorts(pports ...uint)
func (*PlybookLXDProfile) IfaceIndex ¶
func (p *PlybookLXDProfile) IfaceIndex(i uint) uint
func (*PlybookLXDProfile) Ifaces ¶
func (p *PlybookLXDProfile) Ifaces() []string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.