Git Product home page Git Product logo

Comments (3)

michalvasko avatar michalvasko commented on July 23, 2024 1

Okay, then you are missing the iana-if-type YANG module in sysrepo (and so in netopeer2 as well). Just install the module using sysrepoctl and it should then work.

from sysrepo.

michalvasko avatar michalvasko commented on July 23, 2024

The XML does not seem right but the correct type element should be

<type xmlns:ianaift="urn:ietf:params:xml:ns:yang:iana-if-type">ianaift:ethernetCsmacd</type>

from sysrepo.

Prajwal027 avatar Prajwal027 commented on July 23, 2024

Hi,
But after using this type I am getting the same error.
client:

edit-config --target running --test test-only --config=interfaces.xml
ERROR
type: application
tag: operation-failed
severity: error
message: Invalid identityref "ianaift:ethernetCsmacd" value - unable to map prefix to YANG schema. (Data location "/ietf-interfaces:interfaces/interface[name='eth0']/type".)

type:     application
tag:      operation-failed
severity: error
message:  User callback failed.

Server:
[ERR]: SR: Invalid identityref "ianaift:ethernetCsmacd" value - unable to map prefix to YANG schema. (Data location "/ietf-interfaces:interfaces/interface[name='eth0']/type".)
[ERR]: SR: Applying operation "merge" failed.
[INF]: SR: EV LISTEN: "/ietf-netconf:edit-config" "rpc" ID 9 priority 0 fail (remaining 1 subscribers).
[ERR]: SR: Invalid identityref "ianaift:ethernetCsmacd" value - unable to map prefix to YANG schema. (Data location "/ietf-interfaces:interfaces/interface[name='eth0']/type".)
[WRN]: SR: EV ORIGIN: "/ietf-netconf:edit-config" "rpc" ID 9 priority 0 failed (libyang error).
[ERR]: SR: User callback failed.
[ERR]: NP: Failed to send an RPC (User callback failed).
[INF]: NP: Session 2: thread 1 event new RPC.
[INF]: NP: Session 2: thread 1 event reply error.

This is xml file.
xml.txt

from sysrepo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.