MCPcopy
hub / github.com/osrg/gobgp / SendRouterIDAdd

Method SendRouterIDAdd

pkg/zebra/zapi.go:1571–1581  ·  view source on GitHub ↗

SendRouterIDAdd sends ROUTER_ID_ADD message to zebra daemon.

()

Source from the content-addressed store, hash-verified

1569
1570// SendRouterIDAdd sends ROUTER_ID_ADD message to zebra daemon.
1571func (c *Client) SendRouterIDAdd() {
1572 bodies := make([]*routerIDUpdateBody, 0)
1573 for _, afi := range []afi{afiIP, afiIP6} {
1574 bodies = append(bodies, &routerIDUpdateBody{
1575 afi: afi,
1576 })
1577 }
1578 for _, body := range bodies {
1579 c.sendCommand(routerIDAdd, DefaultVrf, body)
1580 }
1581}
1582
1583// SendInterfaceAdd sends INTERFACE_ADD message to zebra daemon.
1584func (c *Client) SendInterfaceAdd() {

Callers 1

NewClientFunction · 0.95

Calls 1

sendCommandMethod · 0.95

Tested by

no test coverage detected