<?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: VPN Static Routes through API in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/vpn-static-routes-through-api/m-p/5419965#M3244</link>
    <description>&lt;P&gt;For the MX-65 device...under &lt;STRONG&gt;Site-to-Site VPN&lt;/STRONG&gt; option, there is a section called &lt;STRONG&gt;VPN Settings&lt;/STRONG&gt;. There you have the option to select 'Yes' or 'No' for the &lt;STRONG&gt;Use VPN&lt;/STRONG&gt; option. Using the portal you can opt to select the to use VPN regardless if the subnet is local to the meraki device or is a static route that can be configured under the &lt;STRONG&gt;Addressing &amp;amp; VLANs&lt;/STRONG&gt; section. &lt;/P&gt;&lt;P&gt;If you are trying to change the option to 'Yes' for &lt;STRONG&gt;Use VPN&lt;/STRONG&gt; going through the API, it only allows you to change this option for locally connected subnets and not any static routes configured. &lt;/P&gt;&lt;P&gt;I was wondering if anyone an a workaround for automating changing the &lt;STRONG&gt;Use VPN&lt;/STRONG&gt; for static routes. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Use VPN.PNG" style="width: 227px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/262113i2F8111CC2579115E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jun 2019 14:02:33 GMT</pubDate>
    <dc:creator>patterson_p</dc:creator>
    <dc:date>2019-06-28T14:02:33Z</dc:date>
    <item>
      <title>VPN Static Routes through API</title>
      <link>https://community.cisco.com/t5/network-platform-api/vpn-static-routes-through-api/m-p/5419963#M3242</link>
      <description>&lt;P&gt;I am trying to go  through to Meraki API to turn up an existing static route on the site-to-site VPN of the MX-65 device. Is there a way that this can be done?&lt;/P&gt;&lt;P&gt;I have no issues pulling the information using the API, but I can only turn up the VPN via the API if the subnet is local to the Meraki, otherwise I get a page can't be found error. &lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 16:17:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/vpn-static-routes-through-api/m-p/5419963#M3242</guid>
      <dc:creator>patterson_p</dc:creator>
      <dc:date>2019-06-13T16:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: VPN Static Routes through API</title>
      <link>https://community.cisco.com/t5/network-platform-api/vpn-static-routes-through-api/m-p/5419964#M3243</link>
      <description>&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;Can you rephrase the question? What do you mean with "turn up"?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 12:17:11 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/vpn-static-routes-through-api/m-p/5419964#M3243</guid>
      <dc:creator>BrechtSchamp</dc:creator>
      <dc:date>2019-06-28T12:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: VPN Static Routes through API</title>
      <link>https://community.cisco.com/t5/network-platform-api/vpn-static-routes-through-api/m-p/5419965#M3244</link>
      <description>&lt;P&gt;For the MX-65 device...under &lt;STRONG&gt;Site-to-Site VPN&lt;/STRONG&gt; option, there is a section called &lt;STRONG&gt;VPN Settings&lt;/STRONG&gt;. There you have the option to select 'Yes' or 'No' for the &lt;STRONG&gt;Use VPN&lt;/STRONG&gt; option. Using the portal you can opt to select the to use VPN regardless if the subnet is local to the meraki device or is a static route that can be configured under the &lt;STRONG&gt;Addressing &amp;amp; VLANs&lt;/STRONG&gt; section. &lt;/P&gt;&lt;P&gt;If you are trying to change the option to 'Yes' for &lt;STRONG&gt;Use VPN&lt;/STRONG&gt; going through the API, it only allows you to change this option for locally connected subnets and not any static routes configured. &lt;/P&gt;&lt;P&gt;I was wondering if anyone an a workaround for automating changing the &lt;STRONG&gt;Use VPN&lt;/STRONG&gt; for static routes. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Use VPN.PNG" style="width: 227px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/262113i2F8111CC2579115E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 14:02:33 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/vpn-static-routes-through-api/m-p/5419965#M3244</guid>
      <dc:creator>patterson_p</dc:creator>
      <dc:date>2019-06-28T14:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: VPN Static Routes through API</title>
      <link>https://community.cisco.com/t5/network-platform-api/vpn-static-routes-through-api/m-p/5419966#M3245</link>
      <description>&lt;P&gt;Oh I see.&lt;/P&gt;&lt;P&gt;Well I just tested it and I can change "no" to "yes" for a subnet that gets added automatically by a static route. I did notice that the "mode" parameter in the body is obligatory.&lt;/P&gt;&lt;P&gt;Here's what I tested succesfully, that 10.28.0.0/16 is a static route I have defined on my MX, it's not a local subnet:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-06-28 16_51_27-Postman.png" style="width: 674px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/262114i7FF9493CAB3EFA81/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What error comes up?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 14:53:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/vpn-static-routes-through-api/m-p/5419966#M3245</guid>
      <dc:creator>BrechtSchamp</dc:creator>
      <dc:date>2019-06-28T14:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: VPN Static Routes through API</title>
      <link>https://community.cisco.com/t5/network-platform-api/vpn-static-routes-through-api/m-p/5419967#M3246</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;It looks as if you are running this through the hub. I currently have multiple devices that are running as spokes going back to a "VPN concentrator" HUB at my data center. The spokes are advertising the local subnets back to the data center HUB.  &lt;/P&gt;&lt;P&gt;I am also running a python script being that I have multiple locations that vary in IP scheme. Below are the results that I get. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VPN error.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/262117i2690FB7DF14581DC/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 28 Jun 2019 15:37:07 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/vpn-static-routes-through-api/m-p/5419967#M3246</guid>
      <dc:creator>patterson_p</dc:creator>
      <dc:date>2019-06-28T15:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: VPN Static Routes through API</title>
      <link>https://community.cisco.com/t5/network-platform-api/vpn-static-routes-through-api/m-p/5419968#M3247</link>
      <description>&lt;P&gt;Yes, in my case the static route is defined in the hub. However that shouldn't really matter. You just need to make sure that you're using the correct networkId in the API call... i.e. the network in which the static route was defined.&lt;/P&gt;&lt;P&gt;In the case of a spoke, the hubs are obligatory as well which may be the problem in your case. You're just getting an Error 404 which isn't very helpful indeed.&lt;/P&gt;&lt;P&gt;Here's another test I did for you:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-06-28 17_50_03-Greenshot.png" style="width: 809px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/262115i87D3587F179C503C/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I'd try it out in postman first. Also, copy the body from the GET call to make it easier to generate the correct body for the PUT. Once it's running in postman, translate it into a python script.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 15:54:03 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/vpn-static-routes-through-api/m-p/5419968#M3247</guid>
      <dc:creator>BrechtSchamp</dc:creator>
      <dc:date>2019-06-28T15:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: VPN Static Routes through API</title>
      <link>https://community.cisco.com/t5/network-platform-api/vpn-static-routes-through-api/m-p/5419969#M3248</link>
      <description>&lt;P&gt;You are absolutely correct. I was able to correct the static route via Postman. I think the issue may have been that I was not correctly I identifying the hubs. I just have to modify it to the python script. &lt;/P&gt;&lt;P&gt;Thanks a lot for your help on this!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 16:34:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/vpn-static-routes-through-api/m-p/5419969#M3248</guid>
      <dc:creator>patterson_p</dc:creator>
      <dc:date>2019-06-28T16:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: VPN Static Routes through API</title>
      <link>https://community.cisco.com/t5/network-platform-api/vpn-static-routes-through-api/m-p/5419970#M3249</link>
      <description>&lt;P&gt;Glad I could be of help!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 16:37:19 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/vpn-static-routes-through-api/m-p/5419970#M3249</guid>
      <dc:creator>BrechtSchamp</dc:creator>
      <dc:date>2019-06-28T16:37:19Z</dc:date>
    </item>
  </channel>
</rss>

