f5-common-python icon indicating copy to clipboard operation
f5-common-python copied to clipboard

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

Open caliraftdude opened this issue 5 years ago • 2 comments

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()

caliraftdude avatar Feb 28 '19 02:02 caliraftdude

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

jasonrahm avatar Mar 14 '19 01:03 jasonrahm

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 [email protected] Sent: Wednesday, March 13, 2019 6:29 PM To: F5Networks/f5-common-python [email protected] Cc: Daniel Holland [email protected]; Mention [email protected] Subject: Re: [F5Networks/f5-common-python] Docs indicate tm.net.vlan where it should be tm.net.vlans (#1520)

EXTERNAL MAIL: [email protected]mailto:[email protected]

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.

caliraftdude avatar Mar 14 '19 02:03 caliraftdude