Skip to content

concatinating json arrays #12717

@damo2929

Description

@damo2929

NetBox version

V3.51

Feature type

Change to existing functionality

Proposed functionality

would it be possible to combine values in a json array like it is possible to combine json object attributes.

example

have a config context with

{ 
  "sudo: [
       'group1' 
  ]
}

and a second one with

{ 
  "sudo: [
       'group2' 
  ]
}

desired outcome is

{ 
  "sudo: [
       'group1' ,  
       'group2'
   ]
}

Use case

this would allow for adding rules based on properties in which both the MSP and the Tenant could need sudo access for instance

Database changes

No response

External dependencies

No response

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