<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: API end point Create Network Appliance Static Route error invalid next hop (DevNet) in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/api-end-point-create-network-appliance-static-route-error/m-p/5406327#M1341</link>
    <description>&lt;P&gt;Also note that you are currently using the same ip on the mx and switch &lt;/P&gt;</description>
    <pubDate>Thu, 15 Feb 2024 16:20:37 GMT</pubDate>
    <dc:creator>ww^</dc:creator>
    <dc:date>2024-02-15T16:20:37Z</dc:date>
    <item>
      <title>API end point Create Network Appliance Static Route error invalid next hop (DevNet)</title>
      <link>https://community.cisco.com/t5/network-platform-api/api-end-point-create-network-appliance-static-route-error/m-p/5406323#M1337</link>
      <description>&lt;P&gt;I am working in the Enterprise DevNet.&lt;/P&gt;&lt;P&gt;I am attempting to use this endpoint to create an appliance static route.&lt;/P&gt;&lt;P&gt;I have 1 VLAN in the MX.&lt;/P&gt;&lt;PRE class="lia-code-sample language-python"&gt;&lt;CODE&gt;id                     : 1
networkId              : L_646829496481116086
name                   : Default
applianceIp            : 192.168.128.1
subnet                 : 192.168.128.0/24
fixedIpAssignments     : 
reservedIpRanges       : {}
dnsNameservers         : upstream_dns
dhcpHandling           : Run a DHCP server
dhcpLeaseTime          : 1 day
dhcpBootOptionsEnabled : False
dhcpOptions            : {}
interfaceId            : 646829496481737561
ipv6                   : @{enabled=False}
mandatoryDhcp          : @{enabled=False}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have 2 interfaces in the switch:&lt;/P&gt;&lt;PRE class="lia-code-sample language-python"&gt;&lt;CODE&gt;interfaceId      : 646829496481104683
name             : Bob
subnet           : 192.168.128.0/24
interfaceIp      : 192.168.128.1
multicastRouting : disabled
vlanId           : 1
defaultGateway   : 192.168.128.1
switchName       : SW-F02
serial           : Q2GW-2CPC-JCYZ

interfaceId      : 646829496481104684
name             : Joe
subnet           : 192.168.132.0/24
interfaceIp      : 192.168.132.1
multicastRouting : disabled
vlanId           : 132
switchName       : SW-F02
serial           : Q2GW-2CPC-JCYZ&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When I try to pass the following JSON to the this endpoint I get an invalid next hop error. Configuring this Static Route in the dashboard works.&lt;/P&gt;&lt;PRE class="lia-code-sample language-javascript"&gt;&lt;CODE&gt;{                     
  "gatewayIp": "192.168.132.1",
  "subnet": "192.168.132.0/24",
  "name": "VLAN132"
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Error message is:&lt;/P&gt;&lt;P&gt;"The static LAN route \u0022VLAN132\u0022 has an invalid next hop IP. The IP address 192.168.132.1 is not on a configured subnet."&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 15:36:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/api-end-point-create-network-appliance-static-route-error/m-p/5406323#M1337</guid>
      <dc:creator>cliffwilliams44</dc:creator>
      <dc:date>2024-02-15T15:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: API end point Create Network Appliance Static Route error invalid next hop (DevNet)</title>
      <link>https://community.cisco.com/t5/network-platform-api/api-end-point-create-network-appliance-static-route-error/m-p/5406324#M1338</link>
      <description>&lt;P&gt;Your next hop IP must be the IP of the other device on the end, not the IP of the MX interface.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 16:05:12 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/api-end-point-create-network-appliance-static-route-error/m-p/5406324#M1338</guid>
      <dc:creator>aleabrahao</dc:creator>
      <dc:date>2024-02-15T16:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: API end point Create Network Appliance Static Route error invalid next hop (DevNet)</title>
      <link>https://community.cisco.com/t5/network-platform-api/api-end-point-create-network-appliance-static-route-error/m-p/5406325#M1339</link>
      <description>&lt;P&gt;Does it work if you send this as separate requests? First send the req to create the 192.168.128.0/24 interface. Once that's created send the next to create the 192.168.132.0/24 network.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 16:08:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/api-end-point-create-network-appliance-static-route-error/m-p/5406325#M1339</guid>
      <dc:creator>Ryan_Miles</dc:creator>
      <dc:date>2024-02-15T16:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: API end point Create Network Appliance Static Route error invalid next hop (DevNet)</title>
      <link>https://community.cisco.com/t5/network-platform-api/api-end-point-create-network-appliance-static-route-error/m-p/5406326#M1340</link>
      <description>&lt;P&gt;And you must create the VLAN interface on the MX, otherwise you need to create the route using the interface you already have created on the MX.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 16:12:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/api-end-point-create-network-appliance-static-route-error/m-p/5406326#M1340</guid>
      <dc:creator>aleabrahao</dc:creator>
      <dc:date>2024-02-15T16:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: API end point Create Network Appliance Static Route error invalid next hop (DevNet)</title>
      <link>https://community.cisco.com/t5/network-platform-api/api-end-point-create-network-appliance-static-route-error/m-p/5406327#M1341</link>
      <description>&lt;P&gt;Also note that you are currently using the same ip on the mx and switch &lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 16:20:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/api-end-point-create-network-appliance-static-route-error/m-p/5406327#M1341</guid>
      <dc:creator>ww^</dc:creator>
      <dc:date>2024-02-15T16:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: API end point Create Network Appliance Static Route error invalid next hop (DevNet)</title>
      <link>https://community.cisco.com/t5/network-platform-api/api-end-point-create-network-appliance-static-route-error/m-p/5406328#M1342</link>
      <description>&lt;P&gt;192.168..132.1 is not the IP of the MX. The MX has an IP of 192.168.128.1&lt;/P&gt;&lt;P&gt;I did see an error where the 192.168.128.0/24 interface on the switch had an Interface IP the same as the MX.&lt;/P&gt;&lt;P&gt;I corrected that and tried again and get the same error.&lt;/P&gt;&lt;P&gt;We have over 200 sites in our network and I do this all the time through the dashboard. The Dashboard works.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 17:17:08 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/api-end-point-create-network-appliance-static-route-error/m-p/5406328#M1342</guid>
      <dc:creator>cliffwilliams44</dc:creator>
      <dc:date>2024-02-15T17:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: API end point Create Network Appliance Static Route error invalid next hop (DevNet)</title>
      <link>https://community.cisco.com/t5/network-platform-api/api-end-point-create-network-appliance-static-route-error/m-p/5406329#M1343</link>
      <description>&lt;P&gt;Yes, saw that, fixed it, same error.&lt;/P&gt;&lt;P&gt;In the dashboard:&lt;/P&gt;&lt;P&gt;Add Static Route&lt;/P&gt;&lt;P&gt;Name: VLAN132&lt;/P&gt;&lt;P&gt;IPVersion: IPv4&lt;/P&gt;&lt;P&gt;Subnet: 192.168.132.0/24&lt;/P&gt;&lt;P&gt;Next Hop IP 192.168.132.1&lt;/P&gt;&lt;P&gt;It works.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 17:18:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/api-end-point-create-network-appliance-static-route-error/m-p/5406329#M1343</guid>
      <dc:creator>cliffwilliams44</dc:creator>
      <dc:date>2024-02-15T17:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: API end point Create Network Appliance Static Route error invalid next hop (DevNet)</title>
      <link>https://community.cisco.com/t5/network-platform-api/api-end-point-create-network-appliance-static-route-error/m-p/5406330#M1344</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;Either way your static route is wrong. The first thing I noticed is that the MX and the Switch have the same IP 192.168.128.1, so I suggest you change the switch's IP to 192.168.128.2.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Then create the route to the network 192.168.132.0/24 pointing the switch IP (192.168.128.2) as the next hop, since it is the one that knows this network.&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 15 Feb 2024 17:21:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/api-end-point-create-network-appliance-static-route-error/m-p/5406330#M1344</guid>
      <dc:creator>aleabrahao</dc:creator>
      <dc:date>2024-02-15T17:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: API end point Create Network Appliance Static Route error invalid next hop (DevNet)</title>
      <link>https://community.cisco.com/t5/network-platform-api/api-end-point-create-network-appliance-static-route-error/m-p/5406331#M1345</link>
      <description>&lt;P&gt;Wrong, it will not work.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 17:24:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/api-end-point-create-network-appliance-static-route-error/m-p/5406331#M1345</guid>
      <dc:creator>aleabrahao</dc:creator>
      <dc:date>2024-02-15T17:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: API end point Create Network Appliance Static Route error invalid next hop (DevNet)</title>
      <link>https://community.cisco.com/t5/network-platform-api/api-end-point-create-network-appliance-static-route-error/m-p/5406332#M1346</link>
      <description>&lt;P&gt;Ya know what, you are right! I went back and looked at my networks and the next hop is always interface IP of the VLAN that is also configured on the MX.&lt;/P&gt;&lt;P&gt;I guess I got confused when the dashboard allowed me to create the static route with the IP of the 192.168.132.1 as the next hop. Seems that should bark at you also!&lt;/P&gt;&lt;P&gt;Thanks for the kick in the  brain!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 17:31:14 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/api-end-point-create-network-appliance-static-route-error/m-p/5406332#M1346</guid>
      <dc:creator>cliffwilliams44</dc:creator>
      <dc:date>2024-02-15T17:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: API end point Create Network Appliance Static Route error invalid next hop (DevNet)</title>
      <link>https://community.cisco.com/t5/network-platform-api/api-end-point-create-network-appliance-static-route-error/m-p/5406333#M1347</link>
      <description>&lt;P&gt;Yes, you are right, the dashboard accepted it. Even though it will not work. The API throws an error.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 17:32:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/api-end-point-create-network-appliance-static-route-error/m-p/5406333#M1347</guid>
      <dc:creator>cliffwilliams44</dc:creator>
      <dc:date>2024-02-15T17:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: API end point Create Network Appliance Static Route error invalid next hop (DevNet)</title>
      <link>https://community.cisco.com/t5/network-platform-api/api-end-point-create-network-appliance-static-route-error/m-p/5406334#M1348</link>
      <description>&lt;P&gt;Like &lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/51406"&gt;@alessandrodematos&lt;/A&gt; already said.&lt;/P&gt;&lt;P&gt;Asuming you working  on the mx route not the switch.&lt;/P&gt;&lt;P&gt;You need to to point the route for subnet 192.168.132.0/24 to the next hop(switch ip)  192.168.128.2 (or whatever ip you gave the switch)&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 17:33:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/api-end-point-create-network-appliance-static-route-error/m-p/5406334#M1348</guid>
      <dc:creator>ww^</dc:creator>
      <dc:date>2024-02-15T17:33:54Z</dc:date>
    </item>
  </channel>
</rss>

