mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-09 12:48:43 +00:00
Function unset() accepts attributes declared in config
This commit is contained in:
parent
07eddaba75
commit
e63f46b1ac
@ -1002,6 +1002,17 @@ cmd:
|
||||
| UNSET '(' dynamic_attr ')' ';' {
|
||||
$$ = f_new_inst(FI_EA_UNSET, $3);
|
||||
}
|
||||
|
||||
| UNSET '(' symbol_known ')' ';' {
|
||||
switch ($3->class) {
|
||||
case SYM_ATTRIBUTE:
|
||||
$$ = f_new_inst(FI_EA_UNSET, *$3->attribute);
|
||||
break;
|
||||
default:
|
||||
cf_error("Can't unset symbol %s", $3->name);
|
||||
}
|
||||
}
|
||||
|
||||
| break_command var_list_r ';' {
|
||||
$$ = f_print($2, !!$2, $1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user