Merge pull request 'Adapt the documentation to pass more strict functional testing in bird without warning' (#46) from mark22k/crxn-docs:bird-strict-function into master
Reviewed-on: https://codeberg.org/CRXN/docs/pulls/46
This commit is contained in:
commit
e8c3c62d0b
|
@ -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