Validtion Error "devices is invalid" seen after removing a device from Panorama
1446
Created On 06/23/22 22:00 PM - Last Modified 06/24/24 23:55 PM
Symptom
- Managed Firewall removed from Panorama.
- When attempting to commit the following error is returned.
Validation Error:
Shared -> pre-rulebase -> security -> rules -> <rule_name> -> target -> devices -> <removed S/N> '<removed S/N>' is not a valid reference
Shared -> pre-rulebase -> security -> rules -> <rule_name> -> target -> devices is invalid
Environment
- Panorama with managed Firewalls
- Supported PAN-OS
- Validation error
Cause
- Serial Number (S/N) does not exist in a device group but S/N is still referenced in a security policy.
- Security Policy only displays S/N that reside in device groups.
Resolution
- Add S/N back to the Panorama.
- Choose an existing device group.
- Add S/N to a device group.
- Navigate to the Security Rule that was called in the error.
- Remove the S/N from the Security Rule's Targets.
- Remove S/N from Device Group.
- Delete Device.
- Commit.