Adapt the documentation to pass more strict functional testing in bird without warning

In the newer bird versions it is necessary to specify the return data type for functions with a return value in the format `-> [return type]`.
This commit is contained in:
Marek Küthe 2024-06-30 15:02:42 +00:00
parent 4978abae92
commit 9c2615af1b
No known key found for this signature in database
GPG Key ID: 7E869146699108C7
2 changed files with 6 additions and 6 deletions

View File

@ -50,11 +50,11 @@ hostname HOSTNAME;
ipv6 table crxn;
function is_self_net() {
function is_self_net() -> bool {
return net ~ OWNNETSET;
}
function is_valid_network() {
function is_valid_network() -> bool {
return net ~ [
fd00::/8{44,64}
];
@ -132,14 +132,14 @@ Here an IPv6 routing table with the name `crxn` is created. Alternatively, you c
Next comes a set of utility functions that will later help us build the filters.
```
function is_self_net() {
function is_self_net() -> bool {
return net ~ OWNNETSET;
}
```
This function returns `true` if the net is the own, otherwise `false`.
```
function is_valid_network() {
function is_valid_network() -> bool {
return net ~ [
fd00::/8{44,64}
];

View File

@ -12,11 +12,11 @@ define CRXN_MAXLEN = [
include "<path-to-file-2>";
];
function is_crxn_net() {
function is_crxn_net() -> bool {
return net ~ CRXN_IPs;
}
function is_maxlen_valid() {
function is_maxlen_valid() -> bool {
return net ~ CRXN_MAXLEN;
}
```