On 10/27/25 1:42 PM, Dima Chumak via dev wrote: > Add two new commands `ovs-appctl ovs/route/rule/add` and > `ovs-appctl ovs/route/rule/del` for adding and deleting user routing > rules in OVS: > > ovs/route/rule/add [-6] [not] from=all|ip/plen [prio=num] > table=local|main|default|id > ovs/route/rule/del [-6] [not] from=all|ip/plen [prio=num] > table=local|main|default|id > > Examples for adding user rules: > > ovs-appctl ovs/route/rule/add from=all table=10 > ovs-appctl ovs/route/rule/add from=all prio=10 table=10 > ovs-appctl ovs/route/rule/add not from=10.0.0.0/24 table=10 > > Examples for deleting user rules: > > ovs-appctl ovs/route/rule/del from=all prio=10 table=10 > ovs-appctl ovs/route/rule/del from=all table=10 > ovs-appctl ovs/route/rule/del not from=10.0.0.0/24 table=10 > > When adding a new rule, if priority is not specified, the lowest unused > priority will be selected automatically. Multiple rules with the same > priority may exist. User added rules and kernel cached rules co-exist > together. > > Only user added rules can be deleted with 'ovs/route/rule/del' command. > For kernel cached rules they must be deleted using `ip rule del` system > command. If priority is not specified when deleting a rule, the first > matching rule will be selected for deletion. > > Signed-off-by: Dima Chumak <[email protected]> > --- > Documentation/howto/userspace-tunneling.rst | 7 + > NEWS | 2 + > lib/ovs-router.c | 239 +++++++++++++++++++- > lib/ovs-router.h | 11 +- > lib/route-table.c | 6 +- > ofproto/ofproto-tnl-unixctl.man | 16 ++ > tests/ovs-router.at | 87 ++++++- > tests/system-route.at | 12 +- > tests/tunnel-push-pop.at | 123 ++++++++++ > 9 files changed, 477 insertions(+), 26 deletions(-)
Recheck-request: github-robot _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
