Page MenuHomeVyOS Platform

VRF bind-to-all - it doesn't apply the settings .
Closed, DuplicatePublicBUG

Description

Hi team

I was testing the following command 'set vrf bind-to-all' but it doesn't apply settings:

vyos@rt-vrf-test-new# compare
[edit vrf]
+bind-to-all
[edit]
vyos@rt-vrf-test-new# commit
[edit]
vyos@rt-vrf-test-new# save
Saving configuration to '/config/config.boot'...
Done

vyos@rt-vrf-test-new:~$ sudo sysctl -a | grep  l3mdev
net.ipv4.raw_l3mdev_accept = 1
net.ipv4.tcp_l3mdev_accept = 0
net.ipv4.udp_l3mdev_accept = 0

however , Python vrf setting is done :

https://github.com/vyos/vyos-1x/blob/equuleus/src/conf_mode/vrf.py

if 'bind_to_all' in vrf:
    bind_all = '1'
_cmd(f'sysctl -wq net.ipv4.tcp_l3mdev_accept={bind_all}')
_cmd(f'sysctl -wq net.ipv4.udp_l3mdev_accept={bind_all}')

version :

vyos@rt-vrf-test-new:~$ show version

Version:          VyOS 1.3.0-rc5
Release Train:    equuleus

Built by:         Sentrium S.L.
Built on:         Tue 29 Jun 2021 08:26 UTC
Build UUID:       36f7c218-6ebb-497f-9ec5-676241e5c13a
Build Commit ID:  892e8689b3234e

Architecture:     x86_64
Boot via:         installed image
System type:      KVM guest

Hardware vendor:  QEMU
Hardware model:   Standard PC (i440FX + PIIX, 1996)
Hardware S/N:
Hardware UUID:    268aee2f-1095-4803-9928-e26e56225c25

Copyright:        VyOS maintainers and contributor

Details

Difficulty level
Easy (less than an hour)
Version
VyOS 1.3.0-rc5 /VyOS 1.3.0-rc4
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Config syntax change (migratable)