both power protection and power distribution

This commit is contained in:
Jeffrey C. Ollie 2022-05-28 14:32:32 -05:00
parent d1bfbb877c
commit ac0a582461

View file

@ -56,9 +56,10 @@ def main():
schneider = nb.dcim.manufacturers.get(name="Schneider")
power_protection = nb.dcim.device_roles.get(name="Power Protection")
power_distribution = nb.dcim.device_roles.get(name="Power Distribution")
for device in nb.dcim.devices.filter(
manufacturer_id=schneider.id,
role_id=power_protection.id,
role_id=[power_protection.id, power_distribution.id],
status="active",
has_primary_ip="true",
):