<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[netgate-route API (21.07) adding a static route]]></title><description><![CDATA[<p dir="auto">I am attempting to add a static route via RESTCONF and it appears the YANG model may not be complete.  Below is the output that I am getting:<br />
[root@myhostname ~]# curl -f -X GET http://tnsr/restconf/data/netgate-route:route-config<br />
{<br />
"netgate-route:route-config": {<br />
"dynamic": {<br />
"netgate-bgp:bgp": {<br />
"global-options": {<br />
"enable": false<br />
}<br />
},<br />
"netgate-frr:manager": {<br />
"global-options": {<br />
"ptm": false<br />
}<br />
},<br />
"netgate-ospf:ospf": {<br />
"global-options": {<br />
"enable": false<br />
}<br />
},<br />
"netgate-ospf6:ospf6": {<br />
"global-options": {<br />
"enable": false<br />
}<br />
},<br />
"netgate-rip:rip": {<br />
"global-options": {<br />
"enable": false<br />
}<br />
}<br />
}<br />
}<br />
}<br />
[root@myhostname ~]#</p>
<p dir="auto">which is not showing the "static": { } option I see here:<br />
https://docs.netgate.com/tnsr/en/latest/api/netgate-route.html</p>
<p dir="auto">This shows my current failures when attempting to view an existing static route:<br />
[root@myhostname ~]# curl -f -X GET http://tnsr/restconf/data/netgate-route:route-config/netgate-route:static -v<br />
About to connect() to tnsr port 80 (#0)<br />
Trying 123.123.123.123...<br />
Connected to tnsr (123.123.123.123) port 80 (#0)<br />
Server auth using Basic with user 'ansible'<br />
GET /restconf/data/netgate-route:route-config/netgate-route:static HTTP/1.1<br />
Authorization: Basic YW5zaWJsZToxcWF6MndzeCFRQVpAV1NY<br />
User-Agent: curl/7.29.0<br />
Host: tnsr<br />
Accept: <em>/</em></p>
<p dir="auto">The requested URL returned error: 404 Not Found<br />
Closing connection 0<br />
curl: (22) The requested URL returned error: 404 Not Found<br />
[root@myhostname ~]#</p>
<p dir="auto">What is the best way for me to view/add/delete a static route via the RESTCONF API?</p>
]]></description><link>https://forum.netgate.com/topic/167237/netgate-route-api-21-07-adding-a-static-route</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Nov 2026 14:37:46 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/167237.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 15 Oct 2021 18:48:36 GMT</pubDate><ttl>60</ttl></channel></rss>