Skip to content

Commit

Permalink
chore: remove the unused 'ethernet_interfaces' spec (#3577)
Browse files Browse the repository at this point in the history
Signed-off-by: Xiangce Liu <[email protected]>

Signed-off-by: Xiangce Liu <[email protected]>
  • Loading branch information
xiangce authored Nov 3, 2022
1 parent 0f50d36 commit 020dc42
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion insights/specs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ class Specs(SpecSet):
etc_udev_40_redhat_rules = RegistryPoint(filterable=True)
etc_udev_oracle_asm_rules = RegistryPoint(multi_output=True, filterable=True)
etcd_conf = RegistryPoint(filterable=True)
ethernet_interfaces = RegistryPoint()
ethtool = RegistryPoint(multi_output=True)
ethtool_S = RegistryPoint(multi_output=True)
ethtool_T = RegistryPoint(multi_output=True)
Expand Down
4 changes: 2 additions & 2 deletions insights/specs/datasources/ethernet.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


class LocalSpecs(Specs):
""" Local specs used only by ethernet_interfaces datasource. """
""" Local specs used only by ethernet.interfaces datasource. """
ip_link = simple_command("/sbin/ip -o link")


Expand All @@ -30,7 +30,7 @@ def interfaces(broker):
Note:
This datasource may be executed using the following command:
``insights cat --no-header ethernet_interfaces``
``insights cat --no-header ethernet.interfaces``
Sample data returned::
Expand Down
1 change: 0 additions & 1 deletion insights/specs/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ class DefaultSpecs(Specs):
"/usr/lib/udev/rules.d/40-redhat.rules", "/usr/local/lib/udev/rules.d/40-redhat.rules"])
etc_udev_oracle_asm_rules = glob_file(r"/etc/udev/rules.d/*asm*.rules")
etcd_conf = simple_file("/etc/etcd/etcd.conf")
ethernet_interfaces = listdir("/sys/class/net", context=HostContext)
ethtool = foreach_execute(ethernet.interfaces, "/sbin/ethtool %s")
ethtool_S = foreach_execute(ethernet.interfaces, "/sbin/ethtool -S %s")
ethtool_T = foreach_execute(ethernet.interfaces, "/sbin/ethtool -T %s")
Expand Down
1 change: 0 additions & 1 deletion insights/tests/datasources/test_ethernet.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from mock.mock import Mock
from insights.tests import context_wrap

RELATIVE_PATH = "insights_commands/ethernet_interfaces"

IP_LINK = """
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000\\ link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
Expand Down

0 comments on commit 020dc42

Please sign in to comment.