Page MenuHomeVyOS Platform

ttl option of gre-bridge
Closed, ResolvedPublicBUG

Description

Hello,
Current vyos disabled the ttl option for gre-bridge tunnel, but it is supported by ip link.
I have added it on my local vyos, and it works fine.

Please consider add this to further distribution.

Thanks.

Details

Version
1.3
Is it a breaking change?
Perfectly compatible
Issue type
Feature (new functionality)

Event Timeline

Hi @jingyun, can you share how you added it to your local installation?

Could you possible send us a PullRequest (https://docs.vyos.io/en/latest/contributing/development.html#submit-a-patch)?

hello,
Just modify the line 182 of file /usr/lib/python3/dist-packages/vyos/ifconfig/tunnel.py
from

options = ['local', 'remote', ]

to

options = ['local', 'remote', 'ttl', ]

Then reboot the VyOS, it will load the modified python file, and ttl could be set afterwards.

As I'm not familiar with VyOS development, and the patch procedure, can you kindly do this?

Thank you.

Hello,
This is working as "ip link add tun0 type gretap local x.x.x.x remote y.y.y.y ttl z" in linux.

I have tested it in my server, and it works as expected.

Thank you.

/usr/lib/python3/dist-packages/vyos/ifconfig/ tunnel.py The corresponding file is in https://github.com/vyos/vyos-1x/blob/current/python/vyos/ifconfig/tunnel.py

Please fork and modify it in the local version library, and then recompile ISO for testing. If successful, please submit PR, @c-po has told you how to participate in the contribution

c-po claimed this task.
c-po triaged this task as Normal priority.
c-po edited a custom field.
erkin set Issue type to Feature (new functionality).Aug 29 2021, 12:28 PM
erkin removed a subscriber: Global Notifications.