mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
This commit adds support to configure and check gretap tunnels. An example configuration could look like this: iface tap0 inet tunnel mode gretap local 10.132.255.3 endpoint 10.132.255.1 ttl 64 mtu 1400 tunnel-physdev eth0 # address 10.10.0.1/2 ifup will happily configure the interface (which it does even without this patch) and ifquery now can successfully validate the configure interface: cr03.in.ffho.net:~# ifquery -c tap0 iface tap0 inet tunnel [[ OK ]] tunnel-physdev eth0 [[ OK ]] endpoint 10.132.255.1 [[ OK ]] local 10.132.255.3 [[ OK ]] mode gretap [[ OK ]] ttl 64 [[ OK ]] mtu 1400 [[ OK ]] address 10.10.0.1/24 [[ OK ]] Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>