Netconf returns bad-element: config

167 views Asked by At

The configuration:

<config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">  
   <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
      <interface>
        <name>Loopback138</name>
        <description>TEST_SPSJM</description>
        <type xmlns:ianaift="urn:ietf:params:xml:ns:yang:iana-if-type">ianaift:softwareLoopback</type>
        <enabled>true</enabled>
      </interface>
  </interfaces>
</config>

the ncclient cmd:

nc_manager.edit_config(conf, default_operation="merge", target="running")

the response:

<bad-element>config</bad-element>

this however definitely worked some time ago.

0

There are 0 answers