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:
parent
4978abae92
commit
9c2615af1b
|
@ -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}
|
||||
];
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue