HomeClusterLabs Projects

findif.sh: fix loopback handling

Description

findif.sh: fix loopback handling

tools/ocft/IPaddr2 fails the loopback test because of the missing
table local parameter:

$ ip -o -f inet route list match 127.0.0.3 scope host

$ ip -o -f inet route list match 127.0.0.3 table local scope host
local 127.0.0.0/8 dev lo proto kernel src 127.0.0.1

Also rename the function because it is called only in for the special
loopback address case.

Details

Provenance
Valentin Vidic <vvidic@valentin-vidic.from.hr>Authored on Nov 1 2023, 2:35 PM
Parents
rR1569f113d23e: Merge pull request #1895 from garutilorenzo/fix_ocivip
Branches
Unknown
Tags
Unknown

Event Timeline

Valentin Vidic <vvidic@valentin-vidic.from.hr> committed rRe4f84ae185b6: findif.sh: fix loopback handling (authored by Valentin Vidic <vvidic@valentin-vidic.from.hr>).Nov 1 2023, 2:35 PM