Device status custom change logic

13 views
Skip to first unread message

Sergey Korobkov

unread,
Jan 5, 2021, 4:23:41 PM1/5/21
to NetBox

Hi,
Is there a way I can configure NETBOX so that after changing device custom field value ("selection" type) - the device status changed automatically (to let's say "planned" value) and change back after the custom field cleared out?

TIA,
Sergei

Isaac Duryea

unread,
Jan 5, 2021, 4:35:55 PM1/5/21
to korob...@gmail.com, netbox-...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

That sounds like something that would need to be scripted as I don't know of any function in Netbox that can do that natively.

That wouldn't be too hard to do through the API.

~Isaac

\-------- Original Message --------
> \--
> You received this message because you are subscribed to the Google Groups "NetBox" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [netbox-discus...@googlegroups.com][netbox-discuss_unsubscribe_googlegroups.com].
> To view this discussion on the web visit [https://groups.google.com/d/msgid/netbox-discuss/83b5d307-8b81-4787-8d46-b6c35a23ee85n%40googlegroups.com][https_groups.google.com_d_msgid_netbox-discuss_83b5d307-8b81-4787-8d46-b6c35a23ee85n_40googlegroups.com].
>


[netbox-discuss_unsubscribe_googlegroups.com]: mailto:netbox-discus...@googlegroups.com
[https_groups.google.com_d_msgid_netbox-discuss_83b5d307-8b81-4787-8d46-b6c35a23ee85n_40googlegroups.com]: https://groups.google.com/d/msgid/netbox-discuss/83b5d307-8b81-4787-8d46-b6c35a23ee85n%40googlegroups.com?utm_medium=email&utm_source=footer
-----BEGIN PGP SIGNATURE-----
Version: ProtonMail

wsFmBAEBCAAQBQJf9NuvCRATaNY0kvfhcgAKCRATaNY0kvfhci2eD/0eCe5L
OAkkRgbhuo7UNX1stUzPp8QB/z2bwDvZVceKlfItnKuBeuPVLU65avtM+ysW
1jhiC2qJxCVmEU+DDpXpLkHZvDFG8o4Wa6LMZ4mSoXyu7LzG6auRX9MpcNf2
ZRjSAdAwTX0doWtMJu7wIB29fzWq2NAmR/5qDJVX6jTL6zExfGgKX3wlZRqH
tTrHjKP0Sz77QLG14qfm4iNALHdnj/Q6gz850OAK7Vhjz4t/R1IoyXyqvQiU
vZDG6/djdbiQvO92kHRGR2NUmwIJy021s2jobs6L730zZzEGGG8PjM6pgDoi
vFJ1Bnowl/EcdvqIab5tLIVyuEI7H+bGtUUW1ALd10kH2n5iQ8w7fJxTbHhl
TK2JJ1uKc5bay0a0/4XN91hjvS2RAthbvbi4GXiU5vNp/IrlZLfKwK8FiiUQ
YXvgAylYa514GrFrxsoAMpc55z2g+w6O1D4uXVYxbafaB6yKok/7/vNscFA7
uj1xwf2Pz0kuyC9sER0wZXtwt9qf/rVsegLbHQktaroukgWPDe/s7lIyAgQF
VnaYfMnh8bwMMr3rTPzKzBNmS9dlDoP0CEsDBayTvKGQaBbj/h0FE2/K3BLZ
0pfAIqQJbvWDT5XM6WRcSzk73P5bcSMqDxMZSQeHTSLPseIoFVo20ZmWK77q
bO0xzCeya5ABsLPzYQ==
=a0t4
-----END PGP SIGNATURE-----
publickey - EmailAddress(s=isaac@duryea.online) - 0x3825853D.asc
publickey - EmailAddress(s=isaac@duryea.online) - 0x3825853D.asc.sig

Sergey Korobkov

unread,
Jan 6, 2021, 4:31:43 AM1/6/21
to Isaac Duryea, netbox-...@googlegroups.com
yeah, I can play with "status" and "custom field" via RESTful API GET/PATCH , and probably creating a process that tracks these params and change accordingly will be a solution. but I wonder is there any more accurate way

ср, 6 янв. 2021 г. в 00:35, Isaac Duryea <is...@duryea.online>:
Reply all
Reply to author
Forward
0 new messages