We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 493f08a commit 8ea40dcCopy full SHA for 8ea40dc
netbox_cmdb/netbox_cmdb/protect.py
@@ -3,6 +3,11 @@
3
4
5
def from_device_name_change(*fields):
6
+ """Protects from Device name changes in NetBox DCIM.
7
+
8
+ This is useful only to prevent Device name changes when CMDB is linked to it.
9
+ """
10
11
def decorator(cls):
12
if cls not in MODELS_LINKED_TO_DEVICE:
13
MODELS_LINKED_TO_DEVICE[cls] = set()
@@ -19,6 +24,11 @@ def decorator(cls):
19
24
20
25
21
26
def from_ip_address_change(*fields):
27
+ """Protects from IP Address "address" changes in NetBox IPAM.
28
29
+ This is useful only to prevent IP Address "address" changes when CMDB is linked to it.
30
31
22
32
23
33
if cls not in MODELS_LINKED_TO_IP_ADDRESS:
34
MODELS_LINKED_TO_IP_ADDRESS[cls] = set()
0 commit comments