nmstate / kubernetes-nmstate

Declarative node network configuration driven through Kubernetes API.
GNU General Public License v2.0
188 stars 90 forks source link

add OPTIONS to routes.config #1262

Open gsustek opened 3 months ago

gsustek commented 3 months ago

Is it possible to set OPTIONS from iproute command like QUICKACK to all routes in the pod ?

---
interfaces:
  - name: eth1
    type: ethernet
    state: up
    ipv4:
      address:
        - ip: 192.0.2.251
          prefix-length: 24
      dhcp: false
      enabled: true
routes:
  config:
    - destination: 198.51.100.0/24
      metric: 150
      next-hop-address: 192.0.2.1
      next-hop-interface: eth1
      table-id: 254
      options:
        - quickack 1
     update:
     it seems that quickack is supported as ipv4 and ipv6 routes arguments:
     https://networkmanager.dev/docs/api/latest/nm-settings-nmcli.html

Regards,

Goran

qinqon commented 2 months ago

@cathay4t do you know if we can add that to nmstate ? ^

qinqon commented 2 months ago

@gsustek can you open an issue to github.com/nmstate/nmstate project ? looks like they don't support options yet.

gsustek commented 2 months ago

@qinqon you mean this? https://github.com/nmstate/nmstate/issues/2766

qinqon commented 2 months ago

@gsustek yep