diff options
author | Pablo Mazzini <pmazzini@gmail.com> | 2020-11-12 11:21:56 +0000 |
---|---|---|
committer | insomniac <insomniacslk@users.noreply.github.com> | 2020-11-12 12:33:07 +0100 |
commit | 4de412bc85d81d821ff33c97636f26f30c8c4911 (patch) | |
tree | 33891b23edbb30acf8ccd4772b8234ec3d6c47bb /netboot/netconf.go | |
parent | 67c425063dcad32c5d14ce9a520c8865240dc945 (diff) |
netboot: use latest rtnl api
Signed-off-by: Pablo Mazzini <pmazzini@gmail.com>
Diffstat (limited to 'netboot/netconf.go')
-rw-r--r-- | netboot/netconf.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/netboot/netconf.go b/netboot/netconf.go index 2ecf472..7fc38e2 100644 --- a/netboot/netconf.go +++ b/netboot/netconf.go @@ -242,7 +242,7 @@ func ConfigureInterface(ifname string, netconf *NetConf) (err error) { src := netconf.Addresses[0].IPNet // TODO handle the remaining Routers if more than one - if err := rt.RouteAddSrc(iface, dst, &src, netconf.Routers[0]); err != nil { + if err := rt.RouteAdd(iface, dst, netconf.Routers[0], rtnl.WithRouteSrc(&src)); err != nil { return fmt.Errorf("could not add gateway %s for src %s dst %s to interface %s: %v", netconf.Routers[0], src, dst, ifname, err) } } |