]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_script.c
Merge pull request #12795 from pguibert6WIND/vpnv6_nexthop_encoding
[mirror_frr.git] / bgpd / bgp_script.c
index bf3e612bfdb754f2feccd2486aed925342724475..f4ab23352434f624c082365f0354f2aaf3d7c489 100644 (file)
@@ -1,21 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /* BGP scripting foo
  * Copyright (C) 2020  NVIDIA Corporation
  * Quentin Young
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; see the file COPYING; if not, write to the
- * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
- * MA 02110-1301 USA
  */
 
 #include <zebra.h>
@@ -163,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);