nautobot-app-firewall-models icon indicating copy to clipboard operation
nautobot-app-firewall-models copied to clipboard

Expose all related Policy objects for a given device via GraphQL

Open Kircheneer opened this issue 1 year ago • 10 comments

Environment

  • Nautobot version: 1.3.3
  • nautobot-plugin-firewall-model version: 0.1.0.beta3

Proposed Functionality

Given a query like

query ($device_id: ID!) {
  device(id: $device_id) {
    policies
  }
}

I want all Policy objects to be returned for that given device, as in

  • Policy objects that are directly assigned to devices
  • Policy objects that are assigned to devices through dynamic groups

Use Case

Get all rules for a given device, specific use case is using nautobot-golden-config to generate ACLs as part of the configuration.

Kircheneer avatar Aug 25 '22 12:08 Kircheneer