Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong output format for cli_feature_profile #61

Open
tzarski0 opened this issue Oct 21, 2024 · 0 comments
Open

Wrong output format for cli_feature_profile #61

tzarski0 opened this issue Oct 21, 2024 · 0 comments

Comments

@tzarski0
Copy link
Contributor

Currently export looks like:

    "cli_feature_profile": [
        {
            "data": {
                "parcelId": "b10b0f8d-947d-471b-9fe6-8cb7c3e82388",
                "parcelType": "config",
                "createdBy": "sdwan",
                "lastUpdatedBy": "sdwan",
                "createdOn": 1729173521299,
                "lastUpdatedOn": 1729173521299,
                "payload": {
                    "name": "edge_basic_cli",
                    "description": "Do not modify!",
                    "data": {
                        "config": "platform console serial"
                    }
                }
            },
            "endpoint": "/v1/feature-profile/sdwan/cli/4f241703-e5f2-47d5-baac-19771760da87/config/b10b0f8d-947d-471b-9fe6-8cb7c3e82388/b10b0f8d-947d-471b-9fe6-8cb7c3e82388"
        }
    ]

And the proper output should be:

    "cli_feature_profile": [
        {
            "data": {
                "profileName": "edge_basic_cli",
                "lastUpdatedBy": "sdwan",
                "@rid": 3065,
                "solution": "sdwan",
                "profileType": "cli",
                "createdBy": "sdwan",
                "profileId": "4f241703-e5f2-47d5-baac-19771760da87",
                "lastUpdatedOn": 1729173521717,
                "description": "Do not modify!",
                "createdOn": 1729173520626,
                "associatedProfileParcels": [
                  {
                    "parcelId": "b10b0f8d-947d-471b-9fe6-8cb7c3e82388",
                    "parcelType": "config",
                    "createdBy": "sdwan",
                    "lastUpdatedBy": "sdwan",
                    "createdOn": 1729173521299,
                    "lastUpdatedOn": 1729173521299,
                    "payload": {
                      "name": "edge_basic_cli",
                      "description": "Do not modify!"
                    },
                    "subparcels": []
                  }
                ]
            },
            "endpoint": "/v1/feature-profile/sdwan/cli/4f241703-e5f2-47d5-baac-19771760da87"
            "children": [
                "data": {
                    "parcelId": "b10b0f8d-947d-471b-9fe6-8cb7c3e82388",
                    "parcelType": "config",
                    "createdBy": "sdwan",
                    "lastUpdatedBy": "sdwan",
                    "createdOn": 1729173521299,
                    "lastUpdatedOn": 1729173521299,
                    "payload": {
                      "name": "edge_basic_cli",
                      "description": "Do not modify!",
                      "data": {
                        "config": "platform console serial"
                      }
                    }
                },
                "endpoint": "/v1/feature-profile/sdwan/cli/4f241703-e5f2-47d5-baac-19771760da87/config/b10b0f8d-947d-471b-9fe6-8cb7c3e82388"
            ]
        }
    ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant