AnsweredAssumed Answered

Spectrum RESTFul

Question asked by franktonjes Champion on Sep 22, 2014
Latest reply on Sep 14, 2015 by FirsovKS

When trying to match deivces with specific model handles, I keep getting the interfaces and child models for those models.

 

Is there any way to not get these child models?

 

Even if I use:

 

<rs:model-request throttlesize="1000"

  xmlns:rs="http://www.ca.com/spectrum/restful/schema/request"

  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

  xsi:schemaLocation="http://www.ca.com/spectrum/restful/schema/request ../../../xsd/Request.xsd">

 

 

  <rs:target-models>

    <rs:models-search>

      <rs:search-criteria

           xmlns="http://www.ca.com/spectrum/restful/schema/filter">

        <devices-only-search/>

        <filtered-models>

          <or>

            <equals>

              <attribute id="0x129fa">

                <value>0x1e35cd1</value>

              </attribute>

            </equals>

            <equals>

              <attribute id="0x129fa">

                <value>0x1b07a15</value>

              </attribute>

            </equals>

            <equals>

              <attribute id="0x129fa">

                <value>0x1b07a97</value>

              </attribute>

            </equals>

            <equals>

              <attribute id="0x129fa">

                <value>0x1b021c2</value>

              </attribute>

            </equals>

          </or>

        </filtered-models>

      </rs:search-criteria>

    </rs:models-search>

  </rs:target-models>

 

  <rs:requested-attribute id="0x1006e"/>

  <rs:requested-attribute id="0x12d7f"/>

  <rs:requested-attribute id="0x11620"/>

  <rs:requested-attribute id="0x10004"/>

  <rs:requested-attribute id="0x1000a"/>

  <rs:requested-attribute id="0x129e7"/>

  <rs:requested-attribute id="0x12bfe"/>

  <rs:requested-attribute id="0x12c03"/>

  <rs:requested-attribute id="0x11564"/>

  <rs:requested-attribute id="0x129fa"/>

  <rs:requested-attribute id="0x12a56"/>

 

</rs:model-request>

 

I get the 4 devices including the sub-interfaces and other child models of the parent device.

 

It seems the '<devices-only-search/>' doesn't make any difference here at all.

 

Any ideas?

 

In the returned XML, I also get a lot of  '<model mh="0x1322091" error="NoSuchModel"/><model mh="0x1301171" error="NoSuchModel"/>' which I find unusual.

 

Thanks,

 

Frank

Outcomes