summaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/zebra
diff options
context:
space:
mode:
authorHitoshi Irino <irino@sfc.wide.ad.jp>2019-02-03 08:30:07 +0900
committerHitoshi Irino <irino@sfc.wide.ad.jp>2019-02-03 08:30:07 +0900
commitf17772298e30146aad394dc7bfb8bb0f56cc9889 (patch)
treee58bf133c9ab37513e5f9b94e2813459963c0ecc /internal/pkg/zebra
parentd6bd1e561b9414b00f54e2972b1c7970ff5467b6 (diff)
Fix spells for keywords (vrfid, labelnum) in sprintf line
Diffstat (limited to 'internal/pkg/zebra')
-rw-r--r--internal/pkg/zebra/zapi.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/pkg/zebra/zapi.go b/internal/pkg/zebra/zapi.go
index 330034ec..6bbe6a06 100644
--- a/internal/pkg/zebra/zapi.go
+++ b/internal/pkg/zebra/zapi.go
@@ -1692,7 +1692,7 @@ type Nexthop struct {
func (n *Nexthop) String() string {
s := make([]string, 0)
s = append(s, fmt.Sprintf(
- "type: %s, gate: %s, ifindex: %d, vrfid: %d, labelnum: %d",
+ "type: %s, gate: %s, ifindex: %d, vrf_id: %d, label_num: %d",
n.Type.String(), n.Gate.String(), n.Ifindex, n.VrfId, n.LabelNum))
for i := uint8(0); i < n.LabelNum; i++ {
s = append(s, fmt.Sprintf("label: %d", n.MplsLabels[i]))