<?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: TCAM carving using API in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/tcam-carving-using-api/m-p/4598084#M2474</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;long story short - this command is not implemented in the API. We had to move all TCAM carving configuration statements to the "bootstrap" configuration (our minimum manual config when the switch is new). Another reason was no option to save configuration uploaded via API to switch from CLI, when TCAM carving is part of the API calls.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;host# copy run startup-config
[########################################] 100%
Configuration update aborted: request was aborted&lt;/PRE&gt;</description>
    <pubDate>Fri, 22 Apr 2022 19:28:36 GMT</pubDate>
    <dc:creator>Marian Rychtecky</dc:creator>
    <dc:date>2022-04-22T19:28:36Z</dc:date>
    <item>
      <title>TCAM carving using API</title>
      <link>https://community.cisco.com/t5/controllers/tcam-carving-using-api/m-p/4558640#M2472</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;we are facing an issue with TCAM carving using NX OS API. We cannot find an attribute for "hardware access-list tcam region ing-redirect 256". We know all the other attributes listed down below, but "ing-redirect". Can someone help us, please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;hardware access-list tcam region ing-racl 256
hardware access-list tcam region ing-l3-vlan-qos 256
hardware access-list tcam region egr-racl 1024
hardware access-list tcam region ing-ifacl 512
hardware access-list tcam region vacl 256
hardware access-list tcam region ing-redirect 256
hardware access-list tcam region egr-l2-qos 256
hardware access-list tcam region ing-pacl-sb 1024&lt;/PRE&gt;&lt;P&gt;This is what we are POSTing to set all the other parameters&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;POST /api/mo/sys/pltfm.json

{
    "platformEntity": {
        "children": [
            {
                "platformTcamRegion": {
                    "attributes": {
                        "vaclSize": 512
                    },
                    "children": [
                        {
                            "platformTcamRegionExtended": {
                                "attributes": {
                                    "egrL2QosSize": 256,
                                    "egrRaclSize": 1024,
                                    "ingIfaclSize": 512,
                                    "ingRaclSize": 512,
                                    "ingVlanQosSize": 256
                                }
                            }
                        }
                    ]
                }
            }
        ]
    }
}
----
{
    "imdata": [
        {
            "warning": {
                "attributes": {
                    "text": "Please resolve if any fault arised, by checking the cfgFault/cfgFaultBmpproperty in platformTcamRegion MO. \nPlease save config and reload the system for the configuration to take effect\n"
                }
            }
        }
    ]
}

&lt;/PRE&gt;&lt;P&gt;Thank you Marian&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 08:21:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/tcam-carving-using-api/m-p/4558640#M2472</guid>
      <dc:creator>Marian Rychtecky</dc:creator>
      <dc:date>2022-02-24T08:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: TCAM carving using API</title>
      <link>https://community.cisco.com/t5/controllers/tcam-carving-using-api/m-p/4564285#M2473</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1281304"&gt;@Marian Rychtecky&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not an NX-API expert but I went searching with a fresh set of eyes in order to find something which may be of help.&lt;BR /&gt;&lt;BR /&gt;I'm curious if you've tried using the&amp;nbsp;&lt;A href="https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/programmability/guide/b_Cisco_Nexus_9000_Series_NX-OS_Programmability_Guide_7x/b_Cisco_Nexus_9000_Series_NX-OS_Programmability_Guide_7x_chapter_010010.pdf" target="_blank" rel="noopener"&gt;NX-API Developer Sandbox&lt;/A&gt; to convert all the CLI commands,&amp;nbsp;including &lt;STRONG&gt;hardware access-list tcam region ing-redirect 256&lt;/STRONG&gt;, into a REST payload.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to the section &lt;EM&gt;Configuring ACL TCAM Region Sizes&lt;/EM&gt; of the &lt;A href="https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/security/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_Security_Configuration_Guide_7x/b_Cisco_Nexus_9000_Series_NX-OS_Security_Configuration_Guide_7x_chapter_01001.html" target="_self"&gt;Chapter: Configuring IP ACLs of the Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 7.x&lt;/A&gt;, the&amp;nbsp;&lt;STRONG&gt;hardware access-list tcam region&lt;/STRONG&gt; command changes the ACL TCAM region size and &lt;STRONG&gt;ing-redirect&lt;/STRONG&gt; is one of the available regions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"ing-redirect—Configures the size of the redirect TCAM region for DHCPv4 relay, DHCPv4 snooping, and DHCPv4 client (Cisco Nexus 9200 switches only)."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some other useful notes from that section:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;"Once you apply a template (using &lt;A href="https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/7-x/security/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_Security_Configuration_Guide_7x/b_Cisco_Nexus_9000_Series_NX-OS_Security_Configuration_Guide_7x_chapter_01001.html#id_11385" target="_blank" rel="noopener"&gt;Using Templates to Configure ACL TCAM Region Sizes&lt;/A&gt;), the hardware access-list tcam region command in this section will not work. You must uncommit the template in order to use the command.&lt;/LI&gt;
&lt;LI&gt;The hardware access-list tcam region command for the Multicast PIM Bidir feature is applicable only to the Broadcom-based Cisco Nexus 9000 Series switches.&lt;/LI&gt;
&lt;LI&gt;For information on configuring QoS TCAM carving, see the Cisco Nexus 9000 Series NX-OS Quality of Service Configuration Guide."&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this help!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 17:39:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/tcam-carving-using-api/m-p/4564285#M2473</guid>
      <dc:creator>Alexander Stevenson</dc:creator>
      <dc:date>2022-03-04T17:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: TCAM carving using API</title>
      <link>https://community.cisco.com/t5/controllers/tcam-carving-using-api/m-p/4598084#M2474</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;long story short - this command is not implemented in the API. We had to move all TCAM carving configuration statements to the "bootstrap" configuration (our minimum manual config when the switch is new). Another reason was no option to save configuration uploaded via API to switch from CLI, when TCAM carving is part of the API calls.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;host# copy run startup-config
[########################################] 100%
Configuration update aborted: request was aborted&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Apr 2022 19:28:36 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/tcam-carving-using-api/m-p/4598084#M2474</guid>
      <dc:creator>Marian Rychtecky</dc:creator>
      <dc:date>2022-04-22T19:28:36Z</dc:date>
    </item>
  </channel>
</rss>

