1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Filter: Handle undefined BGP paths as empty

The same is already done for clists. Also fixes defined() to work
properly for paths and clists.
This commit is contained in:
Ondrej Zajicek (work)
2018-01-03 15:44:05 +01:00
parent 9bd8cb7c3c
commit 8f8671bcde
2 changed files with 25 additions and 7 deletions

View File

@@ -1498,8 +1498,8 @@ if 1234 = i then printn "."; else {
like it accesses variables. Attempts to access undefined attribute result in a
runtime error; you can check if an attribute is defined by using the
<cf>defined( <m>attribute</m> )</cf> operator. One notable exception to this
rule are attributes of clist type, where undefined value is regarded as empty
clist for most purposes.
rule are attributes of bgppath and *clist types, where undefined value is
regarded as empty bgppath/*clist for most purposes.
<descrip>
<tag><label id="rta-net"><m/prefix/ net</tag>