Skip to content
This repository was archived by the owner on Jun 20, 2024. It is now read-only.
This repository was archived by the owner on Jun 20, 2024. It is now read-only.

Global Adom not working #8

@executoronline

Description

@executoronline

Hello,

at first great work.

Can you change your code, so we can push objects to the global adom. Something like this is working for me:

if self.adom !=  "global":
  self.dvmdb_url = "/dvmdb/adom/{}/".format(self.adom)
  self.obj_url = "/pm/config/adom/{}/obj/firewall/{}".format(self.adom, self.api_endpoint)
  self.pkg_url = "/pm/config/adom/{}/pkg/{}/firewall/{}".format(self.adom, self.package, self.api_endpoint)
  self.wsp_url = "/dvmdb/adom/{}/workspace/".format(self.adom)
else:
  self.dvmdb_url = "/dvmdb/global/"
  self.obj_url = "/pm/config/global/obj/firewall/{}".format(self.api_endpoint)
  self.pkg_url = "/pm/config/global/pkg/{}/firewall/{}".format(self.package, self.api_endpoint)
  self.wsp_url = "/dvmdb/global/workspace/"

I don't know if you need this line for global:
self.dvmdb_url = "/dvmdb/global/"

And i think the URL should be changed to:
self.url = "https://{fw}:{port}/jsonrpc".format(fw=self.host, port=self.port)

Thank you for sharing this module

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions