Skip to content

Commit

Permalink
Merge pull request snabbco#898 from dpino/comment-not-supported-datat…
Browse files Browse the repository at this point in the history
…ypes

Comment not supported data types
  • Loading branch information
dpino authored Aug 9, 2017
2 parents 2f5e987 + 2015f6e commit 1a92cc3
Showing 1 changed file with 68 additions and 1 deletion.
69 changes: 68 additions & 1 deletion src/lib/yang/ietf-alarms.yang
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,14 @@ module ietf-alarms {

typedef resource {
type union {
type string;
/*
* Comment use of instance-identifier as it's not currently supported.
type instance-identifier {
require-instance false;
}
*/
type yang:object-identifier;
type string;
}
description
"This is an identification of the alarming resource, such as an
Expand Down Expand Up @@ -372,6 +375,9 @@ module ietf-alarms {
3GPP Distinguished names for example.";
}


/*
* XXX: Temporarily replace leafref datatype for string as leafref is not supported.
list related-alarm {
key "resource alarm-type-id alarm-type-qualifier";
Expand Down Expand Up @@ -409,6 +415,31 @@ module ietf-alarms {
"The alarm qualifier for the related alarm.";
}
}
*/
list related-alarm {
key "resource alarm-type-id alarm-type-qualifier";

description
"References to related alarms. Note that the related alarm
might have been removed from the alarm list.";

leaf resource {
type string;
description
"The alarming resource for the related alarm.";
}
leaf alarm-type-id {
type string;
description
"The alarm type identifier for the related alarm.";
}
leaf alarm-type-qualifier {
type string;
description
"The alarm qualifier for the related alarm.";
}
}

leaf-list impacted-resource {
type resource;
description
Expand Down Expand Up @@ -959,6 +990,8 @@ module ietf-alarms {
alarms. Conditions in the input are logically ANDed. If no
input condition is given, all alarms are compressed.";
input {
/*
* XXX: Temporarily replace leafref datatype for string as leafref is not supported.
leaf resource {
type leafref {
path "/alarms/alarm-list/alarm/resource";
Expand All @@ -981,6 +1014,22 @@ module ietf-alarms {
description
"Compress the alarms with this alarm-type-qualifier.";
}
*/
leaf resource {
type string;
description
"Compress the alarms with this resource.";
}
leaf alarm-type-id {
type string;
description
"Compress alarms with this alarm-type-id.";
}
leaf alarm-type-qualifier {
type string;
description
"Compress the alarms with this alarm-type-qualifier.";
}
}
output {
leaf compressed-alarms {
Expand Down Expand Up @@ -1148,6 +1197,8 @@ module ietf-alarms {
"This notification is used to report that an operator
acted upon an alarm.";

/*
* XXX: Temporarily replace leafref datatype for string as leafref is not supported.
leaf resource {
type leafref {
path "/alarms/alarm-list/alarm/resource";
Expand Down Expand Up @@ -1177,6 +1228,22 @@ module ietf-alarms {
description
"The alarm qualifier for the alarm.";
}
*/
leaf resource {
type string;
description
"The alarming resource.";
}
leaf alarm-type-id {
type string;
description
"The alarm type identifier for the alarm.";
}
leaf alarm-type-qualifier {
type string;
description
"The alarm qualifier for the alarm.";
}
uses operator-parameters;
}
}

0 comments on commit 1a92cc3

Please sign in to comment.