Skip to content

Commit

Permalink
fix: Mikrotik interface ethernet monitor name (#1880)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurGUYON authored Oct 17, 2024
1 parent 1e9faa1 commit b51f62a
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Value SFP_TX_POWER (\S+dBm)
Value SFP_RX_POWER (\S+dBm)
Value EEPROM_CHECKSUM (\S+)
Value List EEPROM ([0-9a-f]+:(?:\s+[0-9a-f]{2})+.*)
Value SUPPORTED (\S+)
Value ADVERTISING (\S+)
Value LINK_PARTNER_ADVERTISING (\S+)

Expand Down Expand Up @@ -65,10 +66,12 @@ Start
^\s*eeprom-checksum:\s${EEPROM_CHECKSUM}
^\s*eeprom:\s${EEPROM}
^\s*${EEPROM}
^\s*supported:\s*$$
^\s*supported:\s*${SUPPORTED}
^\s*advertising:\s*$$
^\s*advertising:\s${ADVERTISING}
^\s*advertising:\s*${ADVERTISING}
^\s*link-partner-advertising:\s*$$
^\s*link-partner-advertising:\s${LINK_PARTNER_ADVERTISING}$$
^\s*link-partner-advertising:\s*${LINK_PARTNER_ADVERTISING}$$
^\s*(?:\d{2}:){2}\d{2}\s+echo:\s*.*$$ -> Next
^\s*$$
^. -> Error
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ parsed_sample:
sfp_rx_power: ""
eeprom_checksum: ""
eeprom: []
supported: ""
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ parsed_sample:
sfp_rx_power: ""
eeprom_checksum: ""
eeprom: []
supported: ""
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,4 @@ parsed_sample:
"00e0: 21 8a 7f 00 0c cd 14 4c 1d 9c 00 00 00 00 00 00 !......L ........",
"00f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........ ........"
]
supported: ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: ether1
status: link-ok
auto-negotiation: done
rate: 1Gbps
full-duplex: yes
tx-flow-control: no
rx-flow-control: no
supported: 10M-baseT-half,10M-baseT-full,100M-baseT-half,100M-baseT-full,1G-baseT-half,1G-baseT-full
advertising: 10M-baseT-half,10M-baseT-full,100M-baseT-half,100M-baseT-full,1G-baseT-half,1G-baseT-full
link-partner-advertising: 10M-baseT-full,100M-baseT-full,1G-baseT-full
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
parsed_sample:
- advertising: "10M-baseT-half,10M-baseT-full,100M-baseT-half,100M-baseT-full,1G-baseT-half,1G-baseT-full"
supported: "10M-baseT-half,10M-baseT-full,100M-baseT-half,100M-baseT-full,1G-baseT-half,1G-baseT-full"
auto_negotiation: "done"
full_duplex: "yes"
link_partner_advertising: "10M-baseT-full,100M-baseT-full,1G-baseT-full"
name: "ether1"
rate: "1Gbps"
rx_flow_control: "no"
status: "link-ok"
tx_flow_control: "no"
default_cable_settings: ""
combo_state: ""
sfp_module_present: ""
sfp_rx_loss: ""
sfp_tx_fault: ""
sfp_type: ""
sfp_connector_type: ""
sfp_link_length_9um: ""
sfp_link_length_copper: ""
sfp_link_length_50um: ""
sfp_link_length_62um: ""
sfp_vendor_name: ""
sfp_vendor_part_number: ""
sfp_vendor_revision: ""
sfp_vendor_serial: ""
sfp_manufacturing_date: ""
sfp_wavelength: ""
sfp_temperature: ""
sfp_supply_voltage: ""
sfp_tx_bias_current: ""
sfp_tx_power: ""
sfp_rx_power: ""
eeprom_checksum: ""
eeprom: []

0 comments on commit b51f62a

Please sign in to comment.