mirror of
https://github.com/vishvananda/netlink
synced 2024-12-28 01:22:18 +00:00
fe3b5664d2
$ ip -M route add 100 dev eth0 $ ip -M route add 100 as to 200/300 dev eth0 $ ip -M route add 100 nexthop dev eth0 as to 200 \ nexthop dev eth1 as to 300 $ ip route add 10.10.0.0/24 encap mpls 200/300 dev eth0 $ ip route add 10.0.0.0/24 nexthop encap mpls 200 dev eth0 \ nexthop encap mpls 300 dev eth1 Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
12 lines
213 B
Go
12 lines
213 B
Go
package netlink
|
|
|
|
import "github.com/vishvananda/netlink/nl"
|
|
|
|
// Family type definitions
|
|
const (
|
|
FAMILY_ALL = nl.FAMILY_ALL
|
|
FAMILY_V4 = nl.FAMILY_V4
|
|
FAMILY_V6 = nl.FAMILY_V6
|
|
FAMILY_MPLS = nl.FAMILY_MPLS
|
|
)
|