Giter VIP home page Giter VIP logo

Comments (3)

networkop avatar networkop commented on September 21, 2024

I think the payload you're sending to ODL is incorrectly formatted. Hence the parsing error. Try configuring those two things manually on the CSR and then read the configuration data using HTTP GET to see how it SHOULD be formatted. It should give you an idea of how to structure your payload. If it still fails, can you include your full payload + request in here?

from yang.

zufardhiyaulhaq avatar zufardhiyaulhaq commented on September 21, 2024

okey, i will try to get configuration data first with RESTCONF. thanks for your solution.

this is my URL : http://10.200.200.12:8181/restconf/config/network-topology:network-topology/topology/topology-netconf/node/CSR1K/yang-ext:mount/ned:native/router

this is my payload :

<bgp xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-bgp">
  <id>100</id>
  <neighbor>
    <id>2.2.2.2</id>
    <remote-as>65100</remote-as>
  </neighbor>
</bgp>

for ietf-interfaces,
this is my URL : http://10.200.200.12:8181/restconf/config/network-topology:network-topology/topology/topology-netconf/node/CSR1K/yang-ext:mount/ietf-interfaces:interfaces

this is my Payload :

<interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
  <interface>
    <name>GigabitEthernet3</name>
    <enabled>true</enabled>
    <description>NETCONF-CONFIGURED PORT</description>
    <ipv4 xmlns="urn:ietf:params:xml:ns:yang:ietf-ip">
      <address>
        <ip>192.168.1.1</ip>
        <netmask>255.255.255.0</netmask>
      </address>
    </ipv4>
  </interface>
</interfaces>

all generate with YDK.

from yang.

zufardhiyaulhaq avatar zufardhiyaulhaq commented on September 21, 2024

thanks all solve, when i try to curl (but this method is to configure route)
there are difference between router xmlns and data generate from ydk xmlns.

from yang.

Related Issues (1)

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.