Skip to content

Commit

Permalink
Issue 71 bandwidth (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
jscooksey authored Apr 8, 2024
1 parent cb9b3f3 commit 030acc4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugins/modules/facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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] == "--":
Expand All @@ -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] == "--":
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 030acc4

Please sign in to comment.