Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add cls_flower support #1284

Open
svinota opened this issue Feb 14, 2025 · 0 comments
Open

add cls_flower support #1284

svinota opened this issue Feb 14, 2025 · 0 comments
Labels

Comments

@svinota
Copy link
Owner

svinota commented Feb 14, 2025

Discussed in #1283

Originally posted by tsv1991 February 13, 2025
I'd like to use flower action for tc. Linux command looks:

tc qdisc add dev br0 clsact
tc filter add dev br100 ingress protocol ip pref 2 flower dst_ip 192.168.2.0/24 action pass
tc filter add dev br100 ingress protocol ipv6 pref 3 flower dst_ip fc03::/64 action pass
tc filter add dev br100 egress protocol ip pref 2 flower src_ip 192.168.2.0/24 action pass
tc filter add dev br100 egress protocol ipv6 pref 3 flower src_ip fc03::/64 action pass

Can you tell me how I can do that?

I tied to do some thing like that:

ipr.tc("add-filter", "flower", index=idx, parent="ffff:fff2", prio=pref, protocol=protocol, 
                      action=[{"kind": "pass"}], "dst": "192.168.2.0/24")

But it doesn't work.

@svinota svinota added the fr label Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant