Skip to content

Add tags infos on resources #49

Description

@laurentmas

Describe the bug

Missing tags on segments, t1 gateways can be an issue if nsx groups are based on it.

When importing nsx configuration using tags on those objects, it fails as object tags are missing.

Reproduction steps

  1. add tag to a segment
  2. create a rule based on tag on a segment
  3. import the configuration to new sddc
  4. nsx group import fails as segment tag is missing
    ...

Expected behavior

object tags must be added during the import if they are available on the source SDDC

tags must be added in the following function:

  • import_flex_segments
  • import_mcgw

To add tags only if source tag where available this kind code can be used :

if "tags" in mcgw:
    json_data["tags"] = f["tags"]

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions