get_config with filter nc: namespace issue

5 views
Skip to first unread message

Eshna Jain

unread,
Jan 28, 2020, 11:56:55 PM1/28/20
to Ansible Project
Hello, I am using ansible to configure my system over ansible. I am making a get_config query with a filter.
the filter is : config_filter: <filter type="subtree"><configure-system xmlns="http://www.cdot.in/ns/cdpm-sys"><system-cfg xmlns="http://www.cdot.in/ns/agent_config/1.0"><cli><banner/></cli></system-cfg></configure-system></filter>

I call the netconf connection module's get_config with the above filter.
At the device I am receiving the following RPC :
<nc:rpc message-id="urn:uuid:6a853fc2-c3a0-4a74-a579-78020ae28270" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
  <nc:get-config>
    <nc:source>
      <nc:running/>
    </nc:source>
    <filter type="subtree">
      <configure-system xmlns="http://www.cdot.in/ns/cdpm-sys">
        <system-cfg xmlns="http://www.cdot.in/ns/agent_config/1.0">
          <cli>
            <banner/>
          </cli>
        </system-cfg>
      </configure-system>
    </filter>
  </nc:get-config>
</nc:rpc>
I am unable to find at which point exactly are the wrapping tags added. Also , since namespace (nc:) is not added to the filter tag, the RPC is failing at the device.
Reply all
Reply to author
Forward
0 new messages