Skip to content

Commit

Permalink
Allow IPv6 link local addresses to be used in tests. (openconfig#2596)
Browse files Browse the repository at this point in the history
* Allow IPv6 link local addresses to be used in tests.

* Fix # vs $.
  • Loading branch information
robshakir authored and frasieroh committed Feb 13, 2024
1 parent a28c4f1 commit 548b231
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,9 @@ In particular:
[RFC 2544]: https://datatracker.ietf.org/doc/html/rfc2544
[RFC 3849]: https://datatracker.ietf.org/doc/html/rfc3849

For IPv6, link local addresses (FE80::/10) addresses are allowed in contexts
where link local is being tested.

### IPv4

* `TEST-NET-1`: (192.0.2.0/24): control plane addresses split into /30 subnets
Expand Down
1 change: 1 addition & 0 deletions tools/check_ip_addresses.pl
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ END

my $ip = $parsed->ip();
next if $ip =~ /2001:0?db8:/i; # IPv6 Test Net (RFC 3849)
next if $ip =~ /fe80:/i; # IPv6 Link Local
$lineok = 0;
}

Expand Down

0 comments on commit 548b231

Please sign in to comment.