0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

Community lists can be now accessed as dynamical attributes. Mj:

please create such dynamic atribute for bgp.
This commit is contained in:
Pavel Machek 2000-04-17 12:38:24 +00:00
parent 913ce95b08
commit 708711c373

View File

@ -357,6 +357,7 @@ interpret(struct f_inst *what)
case T_INT: case T_INT:
res.val.i = e->u.data; res.val.i = e->u.data;
break; break;
case T_CLIST:
case T_PATH: case T_PATH:
res.val.ad = e->u.ptr; res.val.ad = e->u.ptr;
break; break;
@ -390,6 +391,11 @@ interpret(struct f_inst *what)
runtime( "Setting path attribute to non-path value" ); runtime( "Setting path attribute to non-path value" );
l->attrs[0].u.ptr = v1.val.ad; l->attrs[0].u.ptr = v1.val.ad;
break; break;
case EAF_TYPE_INT_SET:
if (v1.type != T_CLIST)
runtime( "Setting int set attribute to non-clist value" );
l->attrs[0].u.ptr = v1.val.ad;
break;
case EAF_TYPE_UNDEF: case EAF_TYPE_UNDEF:
if (v1.type != T_VOID) if (v1.type != T_VOID)
runtime( "Setting void attribute to non-void value" ); runtime( "Setting void attribute to non-void value" );