Andre Kantek e7489fc82a Correct support for gateway address checking in dual-stack
This change contains the correct parsing for the real interface name,
removing the label part (after ':') from the IFACE variable to be
used by ndisc and arping

Also enhanced log messages, now registering test result as error if
failed or as info if it passes since this kind of information is very
useful for troubleshoot

Added a final ICMP echo test (using ping) to enhance diagnosis, but
only logging result as info since the gateway is under no obligation
to answer ECHO messages.

The scripts check-duplicate-ip and check-duplicate-ip6 were also not
parsing the interface name correctly to remove the label info.

The messages will appear with the pattern below in
/var/log/daemon.log:

IPv6:
- success messages:
info ifupdown: Gateway [addr] in [intf] is reachable via ICMPv6:NDP
info ifupdown: Gateway [addr] in [intf] is reachable via ICMP ECHO
- failure messages:
err ifupdown: Cannot find with ICMPv6:NDP default gateway [addr] in
the network where [intf] is connected to
info ifupdown: Gateway [addr] in [intf] is not reachable via ICMP ECHO

IPv4:
- success messages:
info ifupdown: Gateway [addr] in [intf] is reachable via ARP
info ifupdown: Gateway [addr] in [intf] is reachable via ICMP ECHO
- failure messages:
err ifupdown: Cannot find with ARP default gateway [addr] in the
network where [intf] is connected to
info ifupdown: Gateway [addr] in [intf] is not reachable via ICMP ECHO

Test Plan
=========

Setup: AIO-SX with dual-stack
configure OAM intrerface with the following variant interfaces
 - ethernet
 - vlan
 - bonding

[PASS] configure router gateway address on ethernet port and execute
        controller lock/unlock. Verify log messages
[PASS] configure router gateway address on vlan port and execute
        controller lock/unlock. Verify log messages
[PASS] configure router gateway address on bonding port and execute
        controller lock/unlock. Verify log messages

[PASS] remove router gateway address on ethernet port and execute
        controller lock/unlock. Verify log error messages
[PASS] remove router gateway address on vlan port and execute
        controller lock/unlock. Verify log error messages
[PASS] remove router gateway address on bonding port and execute
        controller lock/unlock. Verify log error messages

Story: 2011027
Task: 50982

Change-Id: I83b6eb7d927ae8886def1207b53c87f00c5bc680
Signed-off-by: Andre Kantek <andrefernandozanella.kantek@windriver.com>
2024-09-09 10:30:31 -03:00
2023-08-29 16:52:04 -03:00
2024-05-01 16:39:19 -04:00
2024-07-11 07:45:02 +00:00
2024-05-01 16:39:19 -04:00
2019-01-08 11:42:04 -05:00
2019-04-19 19:52:31 +00:00
2023-09-06 17:54:55 -03:00
2021-09-09 19:05:36 +03:00
2024-07-15 13:47:07 +00:00
2018-05-31 07:36:35 -07:00

integ

StarlingX Integration

Description
StarlingX Integration and packaging
Readme 53 MiB
Languages
Shell 33.2%
JavaScript 23.8%
Perl 14.2%
Python 10.2%
Makefile 7.1%
Other 11.4%