feat(routing): log default route family as string

This commit is contained in:
Quentin McGaw
2023-04-27 10:41:03 +00:00
parent e165bb6870
commit 80053f6b7d
2 changed files with 15 additions and 2 deletions

View File

@@ -20,8 +20,8 @@ type DefaultRoute struct {
}
func (d DefaultRoute) String() string {
return fmt.Sprintf("interface %s, gateway %s and assigned IP %s",
d.NetInterface, d.Gateway, d.AssignedIP)
return fmt.Sprintf("interface %s, gateway %s, assigned IP %s and family %s",
d.NetInterface, d.Gateway, d.AssignedIP, netlink.FamilyToString(d.Family))
}
func (r *Routing) DefaultRoutes() (defaultRoutes []DefaultRoute, err error) {