Hi NSO experts
I have a question about the NSO Snmp Agent.
At the moment I'm working in the Alarms area and I have a question on that:
I'm trying to customize the nso alarms (tailf-ncs-alarms)
adding a new field to the Alarm List Element
augment /al:alarms/al:alarm-list/al:alarm {
leaf custom-alarm-attribute {
type string;
default "test value";
}
}
within NSO it works:
when I raise an alarm using the CLI or the web browser i see the new field
for the current alarms.
The problem is that I don't see this new attribute in the associated NSO SNMP Agent
I looked the example : getting-started/7-snmp-mib
I defined a new MIB SNMP that contains the AUGMENTED SNMP TABLE
but I don't know how to associate the Yang List to the Snmp TABLE
In the example i saw the usage of tailf:snmp-name for the table
So I tried to change
from
augment /al:alarms/al:alarm-list/al:alarm {
leaf custom-alarm-attribute {
type string;
default "test value";
}
}
to
augment /al:alarms/al:alarm-list/al:alarm {
tailf:snmp-name myTfAlarmTable;
leaf custom-alarm-attribute {
type string;
tailf:snmp-name myTfAlarmNote;
default "test value";
}
}
and I got compilation error
error: unexpected keyword 'tailf:snmp-name'
So the main question if is it possible to extend the alarm table also to the Snmp Agent ?
Is it possible also to have the new attribute within the notified Snmp Alarm Trap?
If Yes: what is wrong ?
Can you give to me some instructions or another example to look into ?