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

Method string

pkg/zebra/zapi.go:2056–2064  ·  view source on GitHub ↗
(version uint8, software Software)

Source from the content-addressed store, hash-verified

2054}
2055
2056func (b *interfaceUpdateBody) string(version uint8, software Software) string {
2057 s := fmt.Sprintf(
2058 "name: %s, idx: %d, status: %s, flags: %s, ptm_enable: %s, ptm_status: %s, metric: %d, speed: %d, mtu: %d, mtu6: %d, bandwidth: %d, linktype: %s",
2059 b.name, b.index, b.status.String(), intfflag2string(b.flags), b.ptmEnable.String(), b.ptmStatus.String(), b.metric, b.speed, b.mtu, b.mtu6, b.bandwidth, b.linktype.String())
2060 if len(b.hardwareAddr) > 0 {
2061 return s + fmt.Sprintf(", mac: %s", b.hardwareAddr.String())
2062 }
2063 return s
2064}
2065
2066type interfaceAddressUpdateBody struct {
2067 index uint32

Callers

nothing calls this directly

Calls 2

intfflag2stringFunction · 0.70
StringMethod · 0.65

Tested by

no test coverage detected