Add route table number as significant info about route object (#103)

This commit is contained in:
GennadySpb 2016-04-28 23:16:53 +03:00 committed by Vish Ishaya
parent a632d6dc28
commit 3236dc177e

View File

@ -41,8 +41,8 @@ type Route struct {
}
func (r Route) String() string {
return fmt.Sprintf("{Ifindex: %d Dst: %s Src: %s Gw: %s Flags: %s}", r.LinkIndex, r.Dst,
r.Src, r.Gw, r.ListFlags())
return fmt.Sprintf("{Ifindex: %d Dst: %s Src: %s Gw: %s Flags: %s Table: %d}", r.LinkIndex, r.Dst,
r.Src, r.Gw, r.ListFlags(), r.Table)
}
func (r *Route) SetFlag(flag NextHopFlag) {