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

[ENH] conatiner will optional leafs can be added as optional argument to the container. #133

Open
Ali-aqrabawi opened this issue Aug 8, 2024 · 0 comments

Comments

@Ali-aqrabawi
Copy link
Contributor

instead of :

tc-filters-iproute2
  qdisc-filter enp0s4 0: 
    rule 10 
      protocol ip
      filter flower match src_ip 192.168.1.3
      filter flower actions nat direction egress
      filter flower actions nat old_ip 192.168.1.3
      filter flower actions nat new_ip 192.168.122.47
  dev-filter enp0s4 ingress 
    rule 10 
      protocol ip
      filter flower match dst_ip 192.168.122.47
      filter flower actions nat direction ingress
      filter flower actions nat old_ip 192.168.122.47

we can have:

tc-filters-iproute2
  qdisc-filter enp0s4 0: 
    rule 10 
      protocol ip
      filter flower match src_ip 192.168.1.3
      filter flower actions nat direction egress old_ip 192.168.1.3 new_ip 192.168.122.47
  dev-filter enp0s4 ingress 
    rule 10 
      protocol ip
      filter flower match dst_ip 192.168.122.47
      filter flower actions nat direction ingress old_ip 192.168.122.47
     

conditions to have this:

  1. container must only have none-mandatory leafs.
  2. container must have more than one leaf.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant