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

Row Modifier: Clone row for every entry of a nested Dictionary/Hash structure #2555

Closed
Thomas-Gelf opened this issue Jun 24, 2022 · 0 comments
Assignees
Milestone

Comments

@Thomas-Gelf
Copy link
Contributor

Expected Behavior

I want to transform this...

[{
    "hostname": "router.example.com",
    "if": {
        "GigabitEthernet0": {
            "link_local": "FE80::DEAD:BEEF:AFFE:110",
            "speed": 1000000,
        },
        "GigabitEthernet1": {
            "link_local": "FE80::DEAD:BEEF:AFFE:111",
            "speed": 1000000,
        }
    }
}, {
    "hostname": "gw.example.com",
    "if": {
        "GigabitEthernet0": {
            "link_local": "FE80::DEAD:BEEF:AFFE:112",
            "speed": 1000000,
        },
    }
}]

...into this:

[{
    "hostname": "router.example.com",
    "ifName": "GigabitEthernet0",
    "link_local": "FE80::DEAD:BEEF:AFFE:110",
    "speed": 1000000
}, {
    "hostname": "router.example.com",
    "ifName": "GigabitEthernet1",
    "link_local": "FE80::DEAD:BEEF:AFFE:111",
    "speed": 1000000
}, {
    "hostname": "gw.example.com",
    "ifName": "GigabitEthernet0",
    "link_local": "FE80::DEAD:BEEF:AFFE:112",
    "speed": 1000000
}]

Object property name (here: GigabitEthernetX) should be written to a configurable key property.

@Thomas-Gelf Thomas-Gelf added this to the 1.10.0 milestone Jun 24, 2022
@Thomas-Gelf Thomas-Gelf self-assigned this Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant