Giter Site home page Giter Site logo

Comments (1)

hubertgee avatar hubertgee commented on September 26, 2024

I saw two misunderstandings that should resolve your issue.

1> You were using the wrong object. You should be using the ipv4PrefixPool object instead of networkGroup1. I created an OSPF config in my setup. To verify your issue, I used RestPy to do a find() for the Ipv4PrefixPools object first since I did not use a script to create my ospf config from scratch. Then by using the Ipv4PrefixPools object, I could now get to the OspfRouteProperty object to set the RouteOrigin.

ospfRouteProperty = ixNetwork.Topology.find(Name='Topo1').DeviceGroup.find()[0].NetworkGroup.find()[0].Ipv4PrefixPools.find()[0].OspfRouteProperty.find()[0]
ospfRouteProperty.RouteOrigin.Single('samearea')

2> All child methods and parameter arguments always begin with an uppercase. So in your syntax, your routeOrigin needs to begin with uppercase “RouteOrigin”.

In the future when troubleshooting something like this, take the time to make your configuration on the GUI and verify on the API browser for the endpoint object to use.
The API Browser is your best tool.

Hubert Gee

from ixnetwork.

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.