From 1bfd2946e769aa1a3edad867188d936a32e862e8 Mon Sep 17 00:00:00 2001 From: jscooksey Date: Thu, 16 Nov 2023 11:39:44 +1100 Subject: [PATCH] Issue 71 bandwidth --- plugins/modules/facts.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/modules/facts.py b/plugins/modules/facts.py index 23cd982..b55b8cb 100644 --- a/plugins/modules/facts.py +++ b/plugins/modules/facts.py @@ -423,9 +423,9 @@ def _populate_interfaces_status_interface(self, interface_table): interface["mode"] = i[8].lower() if i[6] == "Up": - interface["bandwith"] = int(i[3]) * 1000 # to get speed in kb + interface["bandwidth"] = int(i[3]) * 1000 # to get speed in kb else: - interface["bandwith"] = None + interface["bandwidth"] = None for key in interface: if interface[key] == "--": @@ -449,9 +449,9 @@ def _populate_interfaces_status_portchanel(self, interface_table): interface["control"] = i[5].lower() if i[6] == "Up": - interface["bandwith"] = int(i[3]) * 1000 # to get speed in kb + interface["bandwidth"] = int(i[3]) * 1000 # to get speed in kb else: - interface["bandwith"] = None + interface["bandwidth"] = None for key in interface: if interface[key] == "--": @@ -624,7 +624,7 @@ def _new_interface(self, interface): self.facts["interfaces"][interface]["admin_state"] = "up" self.facts["interfaces"][interface]["description"] = None self.facts["interfaces"][interface]["state"] = "up" - self.facts["interfaces"][interface]["bandwith"] = None + self.facts["interfaces"][interface]["bandwidth"] = None self.facts["interfaces"][interface]["duplex"] = None self.facts["interfaces"][interface]["negotiation"] = None self.facts["interfaces"][interface]["control"] = None