<?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: Yang MAC Address 'matm-oper' Filter in Tools</title>
    <link>https://community.cisco.com/t5/tools/yang-mac-address-matm-oper-filter/m-p/4304502#M1271</link>
    <description>&lt;P&gt;Hello Jeremy&lt;/P&gt;&lt;P&gt;The node&amp;nbsp;&lt;EM&gt;matm-table&lt;/EM&gt; is a list with keys &lt;EM&gt;table-type&lt;/EM&gt; and &lt;EM&gt;vlan-id-number.&lt;/EM&gt;&amp;nbsp;The list&amp;nbsp;&lt;EM&gt;matm-mac-entry&lt;/EM&gt;&amp;nbsp;also has 3 keys:&amp;nbsp;&lt;EM&gt;table-type, vlan-id-number, mac&lt;/EM&gt;. Therefore, in order to get single entry, you need to specify all of the keys in the query. Example:&lt;/P&gt;&lt;PRE&gt;&lt;A href="https://10.8.201.24/restconf/data/Cisco-IOS-XE-matm-oper:matm-oper-data/matm-table" target="_blank" rel="nofollow noopener noreferrer"&gt;https://1.1.1.1/restconf/data/Cisco-IOS-XE-matm-oper:matm-oper-data/matm-table/&lt;/A&gt;table-type=mat-vlan&amp;amp;vlan-id-number=1/matm-mac-entry/table-type=mat-vlan&amp;amp;vlan-id-number=1&amp;amp;mac=&lt;A href="https://10.8.201.24/restconf/data/Cisco-IOS-XE-matm-oper:matm-oper-data/matm-table" target="_blank" rel="nofollow noopener noreferrer"&gt;00:11:22:33:44:55&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Mar 2021 06:44:03 GMT</pubDate>
    <dc:creator>yangorelik</dc:creator>
    <dc:date>2021-03-10T06:44:03Z</dc:date>
    <item>
      <title>Yang MAC Address 'matm-oper' Filter</title>
      <link>https://community.cisco.com/t5/tools/yang-mac-address-matm-oper-filter/m-p/4303602#M1270</link>
      <description>&lt;P&gt;Using Postman, I am able to pull down the MAC address table of a Catalyst 9200 with this URL: &lt;A href="https://10.8.201.24/restconf/data/Cisco-IOS-XE-matm-oper:matm-oper-data/matm-table" target="_blank"&gt;https://1.1.1.1/restconf/data/Cisco-IOS-XE-matm-oper:matm-oper-data/matm-table&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The results look like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
  "Cisco-IOS-XE-matm-oper:matm-table": [
    {
      "table-type": "mat-vlan",
      "vlan-id-number": 1,
      "aging-time": 300,
      "matm-mac-entry": [
        {
          "table-type": "mat-vlan",
          "vlan-id-number": 1,
          "mac": "11:11:11:22:22:22",
          "mat-addr-type": "dynamic",
          "port": "Te1/1/4"
        },
        {
          "table-type": "mat-vlan",
          "vlan-id-number": 1,
          "mac": "11:22:33:22:33:11",
          "mat-addr-type": "dynamic",
          "port": "Te1/1/4"
        },
        {
          "table-type": "mat-vlan",
          "vlan-id-number": 1,
          "mac": "00:00:00:11:11:11",
          "mat-addr-type": "dynamic",
          "port": "Te1/1/4"
        },...&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would I add a filter to only receive back only a single result, say I know the MAC address and want to use it as a filter?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The YANG model looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;module: Cisco-IOS-XE-matm-oper
  +--ro matm-oper-data
     +--ro matm-table* [table-type vlan-id-number]
        +--ro aging-time?       uint32
        +--ro matm-mac-entry* [table-type vlan-id-number mac]
        |  +--ro mat-addr-type?    matm-ios-xe-oper:e-matm-addr-type
        |  +--ro port?             string
        |  +--ro vlan-all?         empty
        |  +--ro table-type        matm-ios-xe-oper:e-matm-table-type
        |  +--ro vlan-id-number    uint32
        |  +--ro mac               yang:mac-address
        +--ro table-type        matm-ios-xe-oper:e-matm-table-type
        +--ro vlan-id-number    uint32&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried:&lt;/P&gt;&lt;P&gt;&lt;A href="https://10.8.201.24/restconf/data/Cisco-IOS-XE-matm-oper:matm-oper-data/matm-table" target="_blank"&gt;https://1.1.1.1/restconf/data/Cisco-IOS-XE-matm-oper:matm-oper-data/matm-table/mac=00:11:22:33:44:55&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://10.8.201.24/restconf/data/Cisco-IOS-XE-matm-oper:matm-oper-data/matm-table" target="_blank"&gt;https://1.1.1.1/restconf/data/Cisco-IOS-XE-matm-oper:matm-oper-data/matm-table/matm-mac-entry&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://10.8.201.24/restconf/data/Cisco-IOS-XE-matm-oper:matm-oper-data/matm-table" target="_blank"&gt;https://1.1.1.1/restconf/data/Cisco-IOS-XE-matm-oper:matm-oper-data/matm-table/&lt;/A&gt;matm-mac-entry/mac=00:11:22:33:44:55&lt;/P&gt;&lt;P&gt;and 1000 other combinations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 03:01:08 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/yang-mac-address-matm-oper-filter/m-p/4303602#M1270</guid>
      <dc:creator>bunjiega</dc:creator>
      <dc:date>2021-03-09T03:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Yang MAC Address 'matm-oper' Filter</title>
      <link>https://community.cisco.com/t5/tools/yang-mac-address-matm-oper-filter/m-p/4304502#M1271</link>
      <description>&lt;P&gt;Hello Jeremy&lt;/P&gt;&lt;P&gt;The node&amp;nbsp;&lt;EM&gt;matm-table&lt;/EM&gt; is a list with keys &lt;EM&gt;table-type&lt;/EM&gt; and &lt;EM&gt;vlan-id-number.&lt;/EM&gt;&amp;nbsp;The list&amp;nbsp;&lt;EM&gt;matm-mac-entry&lt;/EM&gt;&amp;nbsp;also has 3 keys:&amp;nbsp;&lt;EM&gt;table-type, vlan-id-number, mac&lt;/EM&gt;. Therefore, in order to get single entry, you need to specify all of the keys in the query. Example:&lt;/P&gt;&lt;PRE&gt;&lt;A href="https://10.8.201.24/restconf/data/Cisco-IOS-XE-matm-oper:matm-oper-data/matm-table" target="_blank" rel="nofollow noopener noreferrer"&gt;https://1.1.1.1/restconf/data/Cisco-IOS-XE-matm-oper:matm-oper-data/matm-table/&lt;/A&gt;table-type=mat-vlan&amp;amp;vlan-id-number=1/matm-mac-entry/table-type=mat-vlan&amp;amp;vlan-id-number=1&amp;amp;mac=&lt;A href="https://10.8.201.24/restconf/data/Cisco-IOS-XE-matm-oper:matm-oper-data/matm-table" target="_blank" rel="nofollow noopener noreferrer"&gt;00:11:22:33:44:55&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 06:44:03 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/yang-mac-address-matm-oper-filter/m-p/4304502#M1271</guid>
      <dc:creator>yangorelik</dc:creator>
      <dc:date>2021-03-10T06:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Yang MAC Address 'matm-oper' Filter</title>
      <link>https://community.cisco.com/t5/tools/yang-mac-address-matm-oper-filter/m-p/4409002#M1272</link>
      <description>&lt;P&gt;Thank You yangorelik that makes sense.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I try to go a little further and add the next part:&lt;/P&gt;&lt;PRE&gt;https://1.2.3.4/restconf/data/Cisco-IOS-XE-matm-oper:matm-oper-data/matm-table/table-type=mat-vlan&amp;amp;vlan-id-number=1&lt;/PRE&gt;&lt;P&gt;Shouldn't I get all MAC addresses on VLAN 1? &amp;nbsp;&amp;nbsp; I am getting a 500 Internal Server Error from Postman.&lt;/P&gt;&lt;P&gt;If I remove the last part "table-type=mat-vlan&amp;amp;vlan-id-number=1" then I get a reply of everything, which is what I expect.&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 19:03:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/yang-mac-address-matm-oper-filter/m-p/4409002#M1272</guid>
      <dc:creator>bunjiega</dc:creator>
      <dc:date>2021-05-26T19:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Yang MAC Address 'matm-oper' Filter</title>
      <link>https://community.cisco.com/t5/tools/yang-mac-address-matm-oper-filter/m-p/4409103#M1273</link>
      <description>Could you please post the reply to the whole table. I wonder, what is the data structure of the response.&lt;BR /&gt;</description>
      <pubDate>Wed, 26 May 2021 22:49:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/yang-mac-address-matm-oper-filter/m-p/4409103#M1273</guid>
      <dc:creator>yangorelik</dc:creator>
      <dc:date>2021-05-26T22:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Yang MAC Address 'matm-oper' Filter</title>
      <link>https://community.cisco.com/t5/tools/yang-mac-address-matm-oper-filter/m-p/4409759#M1274</link>
      <description>&lt;P&gt;Sure, when I run this:&lt;/P&gt;&lt;PRE&gt;https://1.2.3.4/restconf/data/Cisco-IOS-XE-matm-oper:matm-oper-data/matm-table/&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get this response:&lt;/P&gt;&lt;PRE&gt;{
  "Cisco-IOS-XE-matm-oper:matm-table": [
    {
      "table-type": "mat-vlan",
      "vlan-id-number": 1,
      "aging-time": 300,
      "matm-mac-entry": [
        {
          "table-type": "mat-vlan",
          "vlan-id-number": 1,
          "mac": "11:11:11:11:11:11",
          "mat-addr-type": "dynamic",
          "port": "Gi4/0/2"
        }
      ]
    },
    {
      "table-type": "mat-vlan",
      "vlan-id-number": 11,
      "aging-time": 300,
      "matm-mac-entry": [
        {
          "table-type": "mat-vlan",
          "vlan-id-number": 11,
          "mac": "00:00:00:99:99:99",
          "mat-addr-type": "dynamic",
          "port": "Po1"
        },
        {
          "table-type": "mat-vlan",
          "vlan-id-number": 11,
          "mac": "00:00:22:22:22:22",
          "mat-addr-type": "dynamic",
          "port": "Po1"
        },
        {
          "table-type": "mat-vlan",
          "vlan-id-number": 11,
          "mac": "00:26:26:26:26:26",
          "mat-addr-type": "dynamic",
          "port": "Po1"
        },
        {
          "table-type": "mat-vlan",
          "vlan-id-number": 11,
          "mac": "11:22:33:44:55:66",
          "mat-addr-type": "dynamic",
          "port": "Po1"
        },........etc&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 May 2021 20:47:28 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/yang-mac-address-matm-oper-filter/m-p/4409759#M1274</guid>
      <dc:creator>bunjiega</dc:creator>
      <dc:date>2021-05-27T20:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Yang MAC Address 'matm-oper' Filter</title>
      <link>https://community.cisco.com/t5/tools/yang-mac-address-matm-oper-filter/m-p/4409773#M1275</link>
      <description>&lt;P&gt;Hi Jeremy&lt;/P&gt;&lt;P&gt;In you previous post you are missing 'mac' parameter as it is a key for the table entry and must be specified in the request. It should be something like this:&lt;/P&gt;&lt;PRE&gt;https://1.2.3.4/restconf/data/Cisco-IOS-XE-matm-oper:matm-oper-data/matm-table/table-type=mat-vlan&amp;amp;vlan-id-number=11&amp;amp;mac='11:22:33:99:99:99'&lt;/PRE&gt;&lt;P&gt;Besides the specified plan number 1 is not present in the table, hence the issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 21:51:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/yang-mac-address-matm-oper-filter/m-p/4409773#M1275</guid>
      <dc:creator>yangorelik</dc:creator>
      <dc:date>2021-05-27T21:51:22Z</dc:date>
    </item>
  </channel>
</rss>

