Skip to content
This repository has been archived by the owner on Mar 28, 2022. It is now read-only.

Commit

Permalink
chore(prometheus): Remove unused function.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjw committed Sep 15, 2020
1 parent 3bf18df commit 53659f7
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions zyxelprometheus/prometheus.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,3 @@ def prometheus(xdsl, ifconfig):
+ f"""iface="{iface_name}"}} {metric_value}""")

return "\n".join(output)


def get_iface_names(traffic):
r = {}
for idx in range(len(traffic["Object"][0]["ipIface"])):
if traffic["Object"][0]["ipIface"][idx]["Status"] == "Up":
r[traffic["Object"][0]["ipIface"][idx]["Name"].lower()] = idx
return r

0 comments on commit 53659f7

Please sign in to comment.