<?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: L3 Firewall Update API automatically converting IP to CIDR in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/l3-firewall-update-api-automatically-converting-ip-to-cidr/m-p/5446945#M7311</link>
    <description>&lt;P&gt;Hello &lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/47245"&gt;@Craiegg&lt;/A&gt; &lt;BR /&gt;In the dashboard configuration it does take only IP without subnet details. If on API it doesn't take only IP as an option the I believe this issue can be reported. However, for more information how does it converting to IP/subnet affecting your creating an issue. Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jan 2021 04:58:33 GMT</pubDate>
    <dc:creator>bmehta2</dc:creator>
    <dc:date>2021-01-19T04:58:33Z</dc:date>
    <item>
      <title>L3 Firewall Update API automatically converting IP to CIDR</title>
      <link>https://community.cisco.com/t5/network-platform-api/l3-firewall-update-api-automatically-converting-ip-to-cidr/m-p/5446944#M7310</link>
      <description>&lt;P&gt;Hello all,&lt;BR /&gt;&lt;BR /&gt;I am trying to update the L3 Firewall rules of a particular network via API for testing purposes, however whenever I enter the IP address I want in the Source and Destination it gets automatically converted to IP/subnet.&lt;BR /&gt;&lt;BR /&gt;I have tested it with both v0 and v1 using Postman. Attaching the screenshot reference and the JSON data being passed to the API below. Do I need to switch the key from srcCidr to srcAddr and destCidr to destAddr? Any suggestions would be appreciated&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Craiegg_0-1611018181634.png" style="width: 400px;"&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/262430i7CDEFC67E4601964/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;DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;  &lt;/SPAN&gt;&lt;SPAN&gt;"rules"&lt;/SPAN&gt;&lt;SPAN&gt;: [&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;    {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;        &lt;/SPAN&gt;&lt;SPAN&gt;"comment"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"Default rule"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;        &lt;/SPAN&gt;&lt;SPAN&gt;"policy"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"allow"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;        &lt;/SPAN&gt;&lt;SPAN&gt;"protocol"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"Any"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;        &lt;/SPAN&gt;&lt;SPAN&gt;"srcPort"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"Any"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;        &lt;/SPAN&gt;&lt;SPAN&gt;"srcCidr"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&l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PAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 19 Jan 2021 01:05:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/l3-firewall-update-api-automatically-converting-ip-to-cidr/m-p/5446944#M7310</guid>
      <dc:creator>Craiegg</dc:creator>
      <dc:date>2021-01-19T01:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: L3 Firewall Update API automatically converting IP to CIDR</title>
      <link>https://community.cisco.com/t5/network-platform-api/l3-firewall-update-api-automatically-converting-ip-to-cidr/m-p/5446945#M7311</link>
      <description>&lt;P&gt;Hello &lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/47245"&gt;@Craiegg&lt;/A&gt; &lt;BR /&gt;In the dashboard configuration it does take only IP without subnet details. If on API it doesn't take only IP as an option the I believe this issue can be reported. However, for more information how does it converting to IP/subnet affecting your creating an issue. Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 04:58:33 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/l3-firewall-update-api-automatically-converting-ip-to-cidr/m-p/5446945#M7311</guid>
      <dc:creator>bmehta2</dc:creator>
      <dc:date>2021-01-19T04:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: L3 Firewall Update API automatically converting IP to CIDR</title>
      <link>https://community.cisco.com/t5/network-platform-api/l3-firewall-update-api-automatically-converting-ip-to-cidr/m-p/5446946#M7312</link>
      <description>&lt;P&gt;I may be completely off track here, but if you're trying to specify a host for those two fields have you tried using the 'subnet mask' of /32, (i.e. 255.255.255.255), which is generally used to specify a host. For example, "srcCidr": "192.168.128.56/32" and "destCidr": "2.2.2.9/32".&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 06:06:57 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/l3-firewall-update-api-automatically-converting-ip-to-cidr/m-p/5446946#M7312</guid>
      <dc:creator>BRUCE NEWTON</dc:creator>
      <dc:date>2021-01-19T06:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: L3 Firewall Update API automatically converting IP to CIDR</title>
      <link>https://community.cisco.com/t5/network-platform-api/l3-firewall-update-api-automatically-converting-ip-to-cidr/m-p/5446947#M7313</link>
      <description>&lt;P&gt;&lt;SPAN&gt;192.168.128.56 and 192.168.128.56/32 are exactly the same thing.  /32 means it is a host IP address.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 21:47:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/l3-firewall-update-api-automatically-converting-ip-to-cidr/m-p/5446947#M7313</guid>
      <dc:creator>Philip D'Ath</dc:creator>
      <dc:date>2021-01-19T21:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: L3 Firewall Update API automatically converting IP to CIDR</title>
      <link>https://community.cisco.com/t5/network-platform-api/l3-firewall-update-api-automatically-converting-ip-to-cidr/m-p/5446948#M7314</link>
      <description>&lt;P&gt;Hello &lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/36379"&gt;@bmehta2&lt;/A&gt; , &lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/340"&gt;@Philip D'Ath&lt;/A&gt;, &lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/74"&gt;@BRUCE NEWTON&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Thank you for all your responses and suggestions.&lt;BR /&gt;&lt;BR /&gt;Yes, there is no issue with the subnet being added. I was actually wondering if there was a change in the API, as when I used it last month, it took the IP address as is without conversion ( hence the query here ) . &lt;BR /&gt;&lt;BR /&gt;However, I agree with all your suggestions of it not affecting anything if the subnet being added.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/36379"&gt;@bmehta2&lt;/A&gt;  I will report this issue as it does not take only IP and always converts to subnet.&lt;BR /&gt;&lt;BR /&gt;Thanks everyone.&lt;BR /&gt;Cheers,&lt;BR /&gt;Craig.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 00:35:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/l3-firewall-update-api-automatically-converting-ip-to-cidr/m-p/5446948#M7314</guid>
      <dc:creator>Craiegg</dc:creator>
      <dc:date>2021-01-20T00:35:58Z</dc:date>
    </item>
  </channel>
</rss>

