Versions in this module Expand all Collapse all v0 v0.4.0 Jun 26, 2019 Changes in this version + func NewPlaybookBrVlanYamlTemplate() *template.Template + func NewPlaybookSnmpConfTemplate() *template.Template + func NewPlaybookSnmpdConfTemplate() *template.Template + type PlaybookBrVlanVlan struct + Id uint + Ids []uint + Name string + func NewPlaybookBrVlanVlan(ifname string) *PlaybookBrVlanVlan + type PlaybookBrVlanYaml struct + Vlans []*PlaybookBrVlanVlan + func NewPlaybookBrVlanYaml() *PlaybookBrVlanYaml + func (p *PlaybookBrVlanYaml) AddAccessPort(index uint, vid uint) + func (p *PlaybookBrVlanYaml) AddTrunkPort(index uint, vids ...uint) + func (p *PlaybookBrVlanYaml) Execute(w io.Writer) error + type PlaybookSnmpConf struct + func NewPlaybookSnmpConf() *PlaybookSnmpConf + func (p *PlaybookSnmpConf) Execute(w io.Writer) error type PlaybookSnmpProxydConf + SnmpProxydAddr string + type PlaybookSnmpdConf struct + LinkMonitorInterval uint + SnmpProxydAddr string + func NewPlaybookSnmpdConf() *PlaybookSnmpdConf + func (p *PlaybookSnmpdConf) Execute(w io.Writer) error v0.3.1 Mar 22, 2019 Changes in this version + 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 NewPlaybookSnmpProxydConfTemplate() *template.Template + func NewPlaybookSnmpProxydYamlTemplate() *template.Template + func NewPlaybookSysctlConfTemplate() *template.Template + func NewPlaybookTemplate() *template.Template + type Playbook struct + Name string + func NewPlaybook(name string) *Playbook + func (p *Playbook) Execute(w io.Writer) error + type PlaybookDaemon struct + Arg string + Name string + func NewPlaybookDaemon(name, arg string) *PlaybookDaemon + type PlaybookDaemons struct + func NewPlaybookDaemons() *PlaybookDaemons + func (p *PlaybookDaemons) Execute(w io.Writer) error + func (p *PlaybookDaemons) Set(daemon, arg string) + func (p *PlaybookDaemons) SetMap(m map[string]string) + func (p *PlaybookDaemons) SetNo(daemons ...string) + func (p *PlaybookDaemons) SetYes(daemons ...string) + type PlaybookFibcPort struct + LPort uint + PPort uint + func NewPlaybookFibcPort(pport, lport uint) *PlaybookFibcPort + func (p *PlaybookFibcPort) Ifname() string + type PlaybookFibcYaml struct + Desc string + DpID uint64 + DpMode string + DpName string + Ports []*PlaybookFibcPort + ReID string + func NewPlaybookFibcYaml(reID, dpName string) *PlaybookFibcYaml + func (p *PlaybookFibcYaml) AddPort(pport, lport uint) + func (p *PlaybookFibcYaml) AddPorts(m map[uint]uint) + func (p *PlaybookFibcYaml) Execute(w io.Writer) error + type PlaybookFrrConf struct + Ifnames []string + RouterID string + func NewPlaybookFrrConf(routerID string) *PlaybookFrrConf + func (p *PlaybookFrrConf) AddIface(index, vid uint) + func (p *PlaybookFrrConf) Execute(w io.Writer) error + type PlaybookGoBGPConf struct + func NewPlaybookGoBGPConf() *PlaybookGoBGPConf + func (p *PlaybookGoBGPConf) Execute(w io.Writer) error + type PlaybookGoBGPdConf struct + AS uint + RouterID string + func NewPlaybookGoBGPdConf() *PlaybookGoBGPdConf + func (p *PlaybookGoBGPdConf) Execute(w io.Writer) error + type PlaybookInventory struct + Hosts []string + Name string + func NewPlaybookInventory() *PlaybookInventory + func (p *PlaybookInventory) AddHost(host string) + func (p *PlaybookInventory) AddHosts(hosts ...string) + func (p *PlaybookInventory) Execute(w io.Writer) error + type PlaybookNetplanEth struct + Mtu uint16 + Name string + func NewPlaybookNetplanEth(name string, mtu uint16) *PlaybookNetplanEth + type PlaybookNetplanVlan struct + Link string + Vid uint + func NewPlaybookNetplanVlan(link string, vid uint) *PlaybookNetplanVlan + type PlaybookNetplanYaml struct + Eths []*PlaybookNetplanEth + Vlans []*PlaybookNetplanVlan + func NewPlaybookNetplanYaml() *PlaybookNetplanYaml + func (p *PlaybookNetplanYaml) AddEth(index uint, mtu uint16) + func (p *PlaybookNetplanYaml) AddVlan(index uint, vid uint) + func (p *PlaybookNetplanYaml) Execute(w io.Writer) error + type PlaybookRibtdConf struct + func NewPlaybookRibtdConf() *PlaybookRibtdConf + func (p *PlaybookRibtdConf) Execute(w io.Writer) error + type PlaybookRibxdConf struct + NID uint8 + Name string + RD string + RT string + ReID string + Vpn bool + func NewPlaybookRibxdConf() *PlaybookRibxdConf + func (p *PlaybookRibxdConf) Execute(w io.Writer) error + type PlaybookSnmpProxydConf struct + Host bool + func NewPlaybookSnmpProxydConf(host bool) *PlaybookSnmpProxydConf + func (p *PlaybookSnmpProxydConf) Execute(w io.Writer) error + type PlaybookSnmpProxydYaml struct + Trap2Map map[string]uint + func NewPlaybookSnmpProxydYaml() *PlaybookSnmpProxydYaml + func (p *PlaybookSnmpProxydYaml) AddTrap2Map(pport, lport uint) + func (p *PlaybookSnmpProxydYaml) Execute(w io.Writer) error + type PlaybookSysctlConf struct + MplsLabel uint + SockBufSize uint + func NewPlaybookSysctlConf() *PlaybookSysctlConf + func (p *PlaybookSysctlConf) AddIface(index, vid uint) + func (p *PlaybookSysctlConf) Execute(w io.Writer) error + func (p *PlaybookSysctlConf) Ifaces() []string + type PlybookLXDProfile struct + BridgeIface string + MngIface string + Mtu uint16 + Name string + Ports []uint + func NewPlaybookLXDProfile() *PlybookLXDProfile + func (p *PlybookLXDProfile) AddPort(pport uint) + func (p *PlybookLXDProfile) AddPorts(pports ...uint) + func (p *PlybookLXDProfile) Execute(w io.Writer) error + func (p *PlybookLXDProfile) IfaceIndex(i uint) uint + func (p *PlybookLXDProfile) Ifaces() []string