Networking
Simuliert AS_PATH-Schleifenerkennung, Policy-Filter, Attributänderungen und eine deterministische Best-Path-Auswahl.
Rufen Sie dieses Werkzeug aus Ihrem Code in drei Sprachen auf.
curl -X POST 'https://api.elysiatools.com/de/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}'Senden Sie eine POST-Anfrage mit Ihren Eingaben als JSON. Dateiparameter erfordern einen vorherigen Upload.
POST https://api.elysiatools.com/de/api/tools/bgp-as-path-loop-policy-sandbox| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| localAs | number | Ja | — |
| routeEntries | textarea | Ja | — |
| policyRules | textarea | Ja | — |
| defaultAction | select | Ja | — |
| selectBestPath | checkbox | Nein | — |
HTML-Ergebnis
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Fügen Sie dieses Werkzeug Ihrem Model-Context-Protocol-Server hinzu, damit KI-Agenten es auflisten und aufrufen können.
Fügen Sie diesen Block Ihrer MCP-Client-Konfiguration hinzu:
{
"mcpServers": {
"elysiatools-bgp-as-path-loop-policy-sandbox": {
"name": "bgp-as-path-loop-policy-sandbox",
"description": "Simuliert AS_PATH-Schleifenerkennung, Policy-Filter, Attributänderungen und eine deterministische Best-Path-Auswahl.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=bgp-as-path-loop-policy-sandbox",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Nach dem Verbinden mit dem SSE-Endpunkt listen Sie die bereitgestellten Werkzeuge auf:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Rufen Sie das Werkzeug über seine ID auf; Argumente werden aus seiner Parameterliste gebildet:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "bgp-as-path-loop-policy-sandbox",
"arguments": {
"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
}
}
}Fragen oder Probleme? Kontakt: [email protected]