diff options
Diffstat (limited to 'bgpd/bgp_script.c')
-rw-r--r-- | bgpd/bgp_script.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bgpd/bgp_script.c b/bgpd/bgp_script.c index 6cc75494e..f4ab23352 100644 --- a/bgpd/bgp_script.c +++ b/bgpd/bgp_script.c @@ -149,7 +149,8 @@ void lua_decode_attr(lua_State *L, int idx, struct attr *attr) attr->nh_ifindex = lua_tointeger(L, -1); lua_pop(L, 1); lua_getfield(L, idx, "aspath"); - attr->aspath = aspath_str2aspath(lua_tostring(L, -1)); + attr->aspath = aspath_str2aspath(lua_tostring(L, -1), + bgp_get_asnotation(NULL)); lua_pop(L, 1); lua_getfield(L, idx, "localpref"); attr->local_pref = lua_tointeger(L, -1); |