F5Networks / f5-common-python

Python SDK for configuration and monitoring of F5® BIG-IP® devices via the iControl® REST API.
https://f5-sdk.readthedocs.org
Apache License 2.0
262 stars 133 forks source link

Docs indicate tm.net.vlan where it should be tm.net.vlans #1520

Open caliraftdude opened 5 years ago

caliraftdude commented 5 years ago

Problem found on Big-ip 13.1.0.8 where trying to resolve a collection of vlans as so:

MGMT = ManagementRoot("10.1.1.241", "admin", "admin") vlans = MGMT.tm.net.vlan.get_collection()

fails however this works:

MGMT = ManagementRoot("10.1.1.241", "admin", "admin") vlans = MGMT.tm.net.vlans.get_collection()

jasonrahm commented 5 years ago

What documentation @caliraftdude? Can you specify? Thanks..

caliraftdude commented 5 years ago

Meh… those notes are now gone..

It was on the doc page around https://f5-sdk.readthedocs.io/en/latest/apidoc/f5.bigip.tm.net.html#module-f5.bigip.tm.net.vlan

This is what happen when you are slamming code all night..

classf5.bigip.tm.net.vlan.Vlans(net)[source]https://f5-sdk.readthedocs.io/en/latest/_modules/f5/bigip/tm/net/vlan.html#Vlans Bases: f5.bigip.resource.Collectionhttps://f5-sdk.readthedocs.io/en/latest/apidoc/f5.bigip.html#f5.bigip.resource.Collection BIG-IP® network Vlan collection.

But it needs to be f5.bigip.tm.net.vlans (which is opposite of how other plural/singular conventions seem to be implied).

Not a big deal but I think this just ended up being opposite of what I was expecting and I made a note of it.

Cheers~

Dan Holland | Sr. Field Systems Engineer 408.859.3684

From: Jason Rahm notifications@github.com Sent: Wednesday, March 13, 2019 6:29 PM To: F5Networks/f5-common-python f5-common-python@noreply.github.com Cc: Daniel Holland D.Holland@F5.com; Mention mention@noreply.github.com Subject: Re: [F5Networks/f5-common-python] Docs indicate tm.net.vlan where it should be tm.net.vlans (#1520)

EXTERNAL MAIL: noreply@github.commailto:noreply@github.com

What documentation @caliraftdudehttps://github.com/caliraftdude? Can you specify? Thanks..

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/F5Networks/f5-common-python/issues/1520#issuecomment-472668766, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ATwzOgDEMW-WT9Tzv-umpkYweBYFEs0Cks5vWaXpgaJpZM4bV5z4.