mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Discovery YAML. Do not implicitly append $index (#9315)
Require it explicitly. Makes it easier to understand and matches the style of other values Questionable YAML changes (either broken before or now broken): secureplatform: haStatCode ptp600: receiveModulationMode DO NOT DELETE THIS TEXT #### Please note > Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting. - [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/) #### Testers If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert.
This commit is contained in:
committed by
Neil Lathwood
parent
4695bc14df
commit
1d48cf7db2
@@ -58,7 +58,7 @@ modules:
|
||||
-
|
||||
oid: dryContactSensorTable
|
||||
value: dryContactSensorValue
|
||||
num_oid: .1.3.6.1.4.1.5528.100.4.2.1.1.2.
|
||||
num_oid: '.1.3.6.1.4.1.5528.100.4.2.1.1.2.{{ $index }}'
|
||||
descr: dryContactSensorLabel
|
||||
index: 'dryContactSensor.{{ $index }}'
|
||||
state_name: dryContactSensor
|
||||
@@ -69,7 +69,7 @@ modules:
|
||||
-
|
||||
oid: doorSwitchSensorTable
|
||||
value: doorSwitchSensorValue
|
||||
num_oid: .1.3.6.1.4.1.5528.100.4.2.2.1.2.
|
||||
num_oid: '.1.3.6.1.4.1.5528.100.4.2.2.1.2.{{ $index }}'
|
||||
descr: doorSwitchSensorLabel
|
||||
index: 'doorSwitchSensor.{{ $index }}'
|
||||
state_name: doorSwitchSensor
|
||||
@@ -80,7 +80,7 @@ modules:
|
||||
-
|
||||
oid: cameraMotionSensorTable
|
||||
value: cameraMotionSensorValue
|
||||
num_oid: .1.3.6.1.4.1.5528.100.4.2.3.1.2.
|
||||
num_oid: '.1.3.6.1.4.1.5528.100.4.2.3.1.2.{{ $index }}'
|
||||
descr: cameraMotionSensorLabel
|
||||
index: 'cameraMotionSensor.{{ $index }}'
|
||||
state_name: cameraMotionSensor
|
||||
@@ -91,7 +91,7 @@ modules:
|
||||
-
|
||||
oid: otherStateSensorTable
|
||||
value: otherStateSensorErrorStatus
|
||||
num_oid: .1.3.6.1.4.1.5528.100.4.2.10.1.3.
|
||||
num_oid: '.1.3.6.1.4.1.5528.100.4.2.10.1.3.{{ $index }}'
|
||||
descr: otherStateSensorLabel
|
||||
index: '{{ $index }}'
|
||||
state_name: otherStateSensorErrorStatus
|
||||
|
Reference in New Issue
Block a user