Coder Social home page Coder Social logo

Comments (2)

f5-rahm avatar f5-rahm commented on July 28, 2024

stats is built such that you need to load the object and then get the stats from that object like this:

arp = b.tm.net.arps.arp.load(name='10.10.10.10')
arpstats = arp.stats.load()

however, because the arp stats are returned on dynamic objects, this doesn't exactly work, does it? Might need to get these from the bash utility if using this library. I'd be happy to be proven wrong.

All that said, this library is no longer under development. I'd recommend bigrest, it's currently under active development and handles this just fine:

from bigrest.bigip import BIGIP
br = BIGIP('10.0.2.15', 'admin', 'admin')
arps = br.show('/mgmt/tm/net/arp')
for arp in arps:
    print(arp.properties.get('ipAddress').get('description'))
10.0.4.20
10.0.4.21
10.0.4.22

from f5-common-python.

salvapinyol avatar salvapinyol commented on July 28, 2024

@f5-rahm Thanks a lot for your advice.

I'll check the bigrest library.

from f5-common-python.

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.