Skip to content

Commit 0c58f52

Browse files
committed
Update interface tagging, remove system_ip tag
1 parent aeacd2e commit 0c58f52

File tree

3 files changed

+262
-1165
lines changed

3 files changed

+262
-1165
lines changed

cisco_aci/datadog_checks/cisco_aci/fabric.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,13 +261,12 @@ def batch_payloads(self, devices, interfaces, collect_ts):
261261

262262
def submit_node_metadata(self, node_attrs, tags):
263263
node = Node(attributes=node_attrs)
264-
id_tags = ['namespace:{}'.format(self.namespace), 'system_ip:{}'.format(node.attributes.address)]
264+
id_tags = ['namespace:{}'.format(self.namespace)]
265265
device_tags = [
266266
'device_vendor:{}'.format(VENDOR_CISCO),
267267
'device_namespace:{}'.format(self.namespace),
268268
'device_hostname:{}'.format(node.attributes.dn),
269269
'hostname:{}'.format(node.attributes.dn),
270-
'system_ip:{}'.format(node.attributes.address),
271270
'device_ip:{}'.format(node.attributes.address),
272271
'device_id:{}:{}'.format(self.namespace, node.attributes.address),
273272
"source:cisco-aci",
@@ -291,7 +290,7 @@ def create_interface_metadata(self, phys_if, address, tags, hostname):
291290
eth = PhysIf(**phys_if.get('l1PhysIf', {}))
292291
interface = InterfaceMetadata(
293292
device_id='{}:{}'.format(self.namespace, address),
294-
id_tags=tags,
293+
id_tags=['interface:{}'.format(eth.attributes.name)],
295294
index=eth.attributes.id,
296295
name=eth.attributes.name,
297296
description=eth.attributes.desc,

0 commit comments

Comments
 (0)