Skip to content

Commit

Permalink
fixed doc string examples in ucs handle methods (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
excilsploft authored and vvb committed Apr 26, 2018
1 parent ddfc2cb commit a7e3d5b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ucsmsdk/ucshandle.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a7e3d5b

Please sign in to comment.