both power protection and power distribution
This commit is contained in:
parent
d1bfbb877c
commit
ac0a582461
1 changed files with 2 additions and 1 deletions
|
@ -56,9 +56,10 @@ def main():
|
||||||
|
|
||||||
schneider = nb.dcim.manufacturers.get(name="Schneider")
|
schneider = nb.dcim.manufacturers.get(name="Schneider")
|
||||||
power_protection = nb.dcim.device_roles.get(name="Power Protection")
|
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(
|
for device in nb.dcim.devices.filter(
|
||||||
manufacturer_id=schneider.id,
|
manufacturer_id=schneider.id,
|
||||||
role_id=power_protection.id,
|
role_id=[power_protection.id, power_distribution.id],
|
||||||
status="active",
|
status="active",
|
||||||
has_primary_ip="true",
|
has_primary_ip="true",
|
||||||
):
|
):
|
||||||
|
|
Loading…
Reference in a new issue