Skip to content

Commit

Permalink
Set sonic-alerting:nonotice if tenant=="SOC Special Use"
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-eisenhart committed Jun 5, 2024
1 parent c94a13d commit 63eba68
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sonic/netbox_zabbix/netbox_zabbix.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,10 @@ def copy_netbox_info_to_zabbix_tags(self, netbox_servers, zabbix_servers):

if srv.tenant and srv.tenant["slug"]:
tags.append({"tag": "netbox-tenant", "value": srv.tenant["slug"]})
if srv.tenant["slug"] == "soc-special-use":
tags = self.add_tag_nodupe(
tags, {"tag": "sonic-alerting", "value": "nonotice"}
)

if srv.role and srv.role["slug"]:
tags.append({"tag": "netbox-role", "value": srv.role["slug"]})
Expand Down

0 comments on commit 63eba68

Please sign in to comment.