]> git.proxmox.com Git - mirror_iproute2.git/commit
add support for table name in SRv6 End.DT* behaviors
authorPaolo Lungaroni <paolo.lungaroni@cnit.it>
Fri, 6 Dec 2019 18:11:54 +0000 (19:11 +0100)
committerDavid Ahern <dsahern@gmail.com>
Wed, 11 Dec 2019 17:22:07 +0000 (17:22 +0000)
commit0486388a877aa579fb1446ec593a2b63c9ba3df6
tree43294d0a249fd52a33800b1f02746872c1944a5a
parent7b0d424abef169ac259ce54de90d69237b5d2bda
add support for table name in SRv6 End.DT* behaviors

it allows to specify also the table name in addition to the table number in
SRv6 End.DT* behaviors.

To add an End.DT6 behavior route specifying the table by name:

    $ ip -6 route add 2001:db8::1 encap seg6local action End.DT6 table main dev eth0

The ip route show to print output this route:

    $ ip -6 route show 2001:db8::1
    2001:db8::1  encap seg6local action End.DT6 table main dev eth0 metric 1024 pref medium

The JSON output:
    $ ip -6 -j -p route show 2001:db8::1
    [ {
            "dst": "2001:db8::1",
            "encap": "seg6local",
            "action": "End.DT6",
            "table": "main",
            "dev": "eth0",
            "metric": 1024,
            "flags": [ ],
            "pref": "medium"
        } ]

Signed-off-by: Paolo Lungaroni <paolo.lungaroni@cnit.it>
Signed-off-by: David Ahern <dsahern@gmail.com>
ip/iproute_lwtunnel.c