From a7e3d5b50b2afa9dac87abb7b7a756cf349ba18f Mon Sep 17 00:00:00 2001 From: Kyle Jones Date: Thu, 26 Apr 2018 11:57:08 -0700 Subject: [PATCH] fixed doc string examples in ucs handle methods (#163) --- ucsmsdk/ucshandle.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ucsmsdk/ucshandle.py b/ucsmsdk/ucshandle.py index 0dc688ba..31932711 100644 --- a/ucsmsdk/ucshandle.py +++ b/ucsmsdk/ucshandle.py @@ -244,8 +244,8 @@ def query_dns(self, *dns): Dictionary {dn1: object, dn2: object2} Example: - obj = handle.lookup_by_dns("fabric/lan/net-100", "fabric/lan/net-101") - obj = handle.lookup_by_dns(["fabric/lan/net-100", "fabric/lan/net-101"]) + obj = handle.query_dns("fabric/lan/net-100", "fabric/lan/net-101") + obj = handle.query_dns(["fabric/lan/net-100", "fabric/lan/net-101"]) """ from .ucsbasetype import DnSet, Dn @@ -296,8 +296,8 @@ def query_classids(self, *class_ids): Dictionary {class_id1: [objects], class_id2: [objects]} Example: - obj = handle.lookup_by_dns("OrgOrg", "LsServer") - obj = handle.lookup_by_dns(["OrgOrg", "LsServer"]) + obj = handle.query_classids("OrgOrg", "LsServer") + obj = handle.query_classids(["OrgOrg", "LsServer"]) """ # ToDo - How to handle unknown class_id @@ -362,10 +362,10 @@ def query_dn(self, dn, hierarchy=False, need_response=False, timeout=None): externalmethod object if need_response=True\n Example: - obj = handle.lookup_by_dn("fabric/lan/net-100")\n - obj = handle.lookup_by_dn("fabric/lan/net-100", hierarchy=True)\n - obj = handle.lookup_by_dn("fabric/lan/net-100", need_response=True)\n - obj = handle.lookup_by_dn("fabric/lan/net-100", hierarchy=True, need_response=True)\n + obj = handle.query_dn("fabric/lan/net-100")\n + obj = handle.query_dn("fabric/lan/net-100", hierarchy=True)\n + obj = handle.query_dn("fabric/lan/net-100", need_response=True)\n + obj = handle.query_dn("fabric/lan/net-100", hierarchy=True, need_response=True)\n """ from .ucsbasetype import DnSet, Dn