Skip to content

loadScope is broken #92

Open
Open

Description

@steffenschumacher

NS1.loadScope requires a scope_id, but does not allow to pass one:
def loadScope( self, scopegroup_id, address_id, callback=None, errback=None):

Attempting to issue this call breaks:

    res = api.loadScope(21939286, 68740)
  File "/Users/xxxx/PycharmProjects/netmanager/venv/lib/python3.9/site-packages/ns1/__init__.py", line 575, in loadScope
    return scope.load(callback=callback, errback=errback)
  File "/Users/xxxx/PycharmProjects/netmanager/venv/lib/python3.9/site-packages/ns1/ipam.py", line 922, in load
    raise ScopeException("Must specify a scope_id")
ns1.ipam.ScopeException: Must specify a scope_id

It would be quite useful to be able to search for scopes, either from:

  • address_id
  • cidr prefix
  • Subnet name

But this seems to require API work, beyond this SDK.. Not sure where to place that issue..

Activity

  1. added a commit that references this issue on Mar 12, 2022
    2ba4916
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions