Commit 708711c3 authored by Pavel Machek's avatar Pavel Machek

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

please create such dynamic atribute for bgp.
parent 913ce95b
......@@ -357,6 +357,7 @@ interpret(struct f_inst *what)
case T_INT:
res.val.i = e->u.data;
break;
case T_CLIST:
case T_PATH:
res.val.ad = e->u.ptr;
break;
......@@ -390,6 +391,11 @@ interpret(struct f_inst *what)
runtime( "Setting path attribute to non-path value" );
l->attrs[0].u.ptr = v1.val.ad;
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:
if (v1.type != T_VOID)
runtime( "Setting void attribute to non-void value" );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment