diff options
author | Stephen Worley <sworley@cumulusnetworks.com> | 2019-09-27 22:38:31 +0200 |
---|---|---|
committer | Stephen Worley <sworley@cumulusnetworks.com> | 2019-11-21 22:59:42 +0100 |
commit | be3b67b5ef82d2f1f9f0f63190dd65c2bc47ebbf (patch) | |
tree | 47fdc3253148c9b0e9f31ebf8e71afcc7993e99f /doc | |
parent | Merge pull request #5398 from taspelund/missed_newline (diff) | |
download | frr-be3b67b5ef82d2f1f9f0f63190dd65c2bc47ebbf.tar.xz frr-be3b67b5ef82d2f1f9f0f63190dd65c2bc47ebbf.zip |
pbrd: Add `set vrf NAME` and `set vrf unchanged`
`set vrf NAME` allows the pbr map to point to an arbitrary vrf table.
`set vrf unchanged` will use the interface's vrf for table lookup.
Further, add functionality for pbr to respond to interface events
such as interface vrf changes & interface creation/deletion.
Ex)
ubuntu_nh# show pbr map
pbr-map TEST valid: 1
Seq: 1 rule: 300 Installed: 3(1) Reason: Valid
SRC Match: 3.3.3.3/32
VRF Unchanged (use interface vrf)
pbr-map TEST2 valid: 1
Seq: 2 rule: 301 Installed: 3(2) Reason: Valid
SRC Match: 4.4.4.4/32
VRF Lookup: vrf-red
root@ubuntu_nh:/home# ip rule show
0: from all lookup local
300: from 3.3.3.3 iif dummy2 lookup main
300: from 3.3.3.3 iif dummyVRF lookup 1111
301: from 4.4.4.4 iif dummy1 lookup 1111
301: from 4.4.4.4 iif dummy3 lookup 1111
Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com-
Diffstat (limited to 'doc')
-rw-r--r-- | doc/user/pbr.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/user/pbr.rst b/doc/user/pbr.rst index fab4343f5..68e460748 100644 --- a/doc/user/pbr.rst +++ b/doc/user/pbr.rst @@ -107,6 +107,14 @@ end destination. Use this individual nexthop as the place to forward packets when the match commands have matched a packet. +.. clicmd:: set vrf unchanged|NAME + + If unchanged is set, the rule will use the vrf table the interface is in + as its lookup. If NAME is specified, the rule will use that vrf table as + its lookup. + + Not supported with NETNS VRF backend. + .. _pbr-policy: PBR Policy |