Networking
BGP AS Path Loop Policy Sandbox
Simulate AS_PATH loop detection, policy filtering, attribute changes, and deterministic best-path selection.
html· HTML resultOpen tool
Quick start
Call this tool from your code in three languages.
cURL
curl -X POST 'https://api.elysiatools.com/en/api/tools/bgp-as-path-loop-policy-sandbox' \
-H 'Content-Type: application/json' \
-d '{"localAs":64500,"routeEntries":"[{\"prefix\":\"203.0.113.0/24\",\"asPath\":\"64501 64496\",\"localPref\":100,\"med\":50,\"origin\":\"igp\"},{\"prefix\":\"203.0.113.0/24\",\"asPath\":\"64502 64496\",\"localPref\":200,\"med\":100,\"origin\":\"igp\"},{\"prefix\":\"198.51.100.0/24\",\"asPath\":\"64500 64496\",\"localPref\":150,\"med\":10,\"origin\":\"igp\"},{\"prefix\":\"192.0.2.0/24\",\"asPath\":\"64503\",\"localPref\":120,\"med\":20,\"origin\":\"egp\"}]","policyRules":"[{\"name\":\"raise preferred prefix\",\"action\":\"permit\",\"prefix\":\"203.0.113.0/24\",\"setLocalPref\":180},{\"name\":\"deny documentation loop\",\"action\":\"deny\",\"prefix\":\"198.51.100.0/24\"}]","defaultAction":"deny","selectBestPath":true}'