Skip to content

Commit

Permalink
Remove old iDRAC mib (#1185)
Browse files Browse the repository at this point in the history
It turns out we don't need iDRAC-SMIv1, so don't extract the broken MIB
from the Dell bundle.

Signed-off-by: SuperQ <[email protected]>
  • Loading branch information
SuperQ authored May 11, 2024
1 parent c53bdcb commit 6ba9795
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions generator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ mibs: \
$(MIBDIR)/ARISTA-ENTITY-SENSOR-MIB \
$(MIBDIR)/ARISTA-SMI-MIB \
$(MIBDIR)/ARISTA-SW-IP-FORWARDING-MIB \
$(MIBDIR)/.dell \
$(MIBDIR)/iDRAC-SMIv2.mib \
$(MIBDIR)/ENTITY-MIB \
$(MIBDIR)/ENTITY-SENSOR-MIB \
$(MIBDIR)/ENTITY-STATE-MIB \
Expand Down Expand Up @@ -178,15 +178,12 @@ $(MIBDIR)/AIRESPACE-WIRELESS-MIB:
@echo ">> Downloading Cisco AIRESPACE-WIRELESS-MIB"
@curl $(CURL_OPTS) -o $(MIBDIR)/AIRESPACE-WIRELESS-MIB "$(CISCO_URL)/AIRESPACE-WIRELESS-MIB.my"

$(MIBDIR)/.dell:
$(MIBDIR)/iDRAC-SMIv2.mib:
$(eval TMP := $(shell mktemp))
@echo ">> Downloading dell to $(TMP)"
@curl $(CURL_OPTS) $(CURL_USER_AGENT) -o $(TMP) $(DELL_URL)
@unzip -j -d $(MIBDIR) $(TMP) support/station/mibs/iDRAC-*.mib
# There are some additional characters behind MIB end that break parsing
@sed -i '$ d' $(MIBDIR)/iDRAC-SMIv1.mib
@unzip -j -d $(MIBDIR) $(TMP) support/station/mibs/iDRAC-SMIv2.mib
@rm -v $(TMP)
@touch $(MIBDIR)/.dell

$(MIBDIR)/ENTITY-MIB:
@echo ">> Downloading Cisco ENTITY-MIB"
Expand Down

0 comments on commit 6ba9795

Please sign in to comment.