added-yang-linter-and-resolved-all-error-produced-by it
Change-Id: Iba95a07bb1ed6230b9a900448bf294355a58285c
diff --git a/config-models/aether-4.x/files/yang/ietf-inet-types.yang b/config-models/aether-4.x/files/yang/ietf-inet-types.yang
index eacefb6..fa57f75 100644
--- a/config-models/aether-4.x/files/yang/ietf-inet-types.yang
+++ b/config-models/aether-4.x/files/yang/ietf-inet-types.yang
@@ -354,11 +354,11 @@
typedef domain-name {
type string {
+ length "1..253";
pattern
'((([a-zA-Z0-9_]([a-zA-Z0-9\-_]){0,61})?[a-zA-Z0-9]\.)*'
+ '([a-zA-Z0-9_]([a-zA-Z0-9\-_]){0,61})?[a-zA-Z0-9]\.?)'
+ '|\.';
- length "1..253";
}
description
"The domain-name type represents a DNS domain name. The
diff --git a/config-models/aether-4.x/files/yang/onf-aether-types.yang b/config-models/aether-4.x/files/yang/onf-aether-types.yang
index 3672203..679648e 100755
--- a/config-models/aether-4.x/files/yang/onf-aether-types.yang
+++ b/config-models/aether-4.x/files/yang/onf-aether-types.yang
@@ -20,24 +20,28 @@
typedef bitrate {
type uint64 {
}
+ description "The typedef for bitrate";
}
typedef burst {
type uint32 {
}
default 625000;
+ description "The typedef for burst";
}
typedef mcc {
type string {
pattern '[0-9]{3}';
}
+ description "The typedef for mcc";
}
typedef mnc {
type string {
pattern '[0-9]{2,3}';
}
+ description "The typedef for mnc";
}
typedef tac {
@@ -45,54 +49,63 @@
length 4..8;
pattern '[0-9A-F\.]*';
}
+ description "The typedef for tac";
}
typedef ent {
type uint32 {
range 0..999;
}
- }
+ description "The typedef for ent";
+ }
typedef dnn {
type string {
length 1..32;
}
- }
+ description "The typedef for dnn";
+ }
typedef sst {
type uint8 {
range 1..255;
}
+ description "The typedef for sst";
}
typedef sd {
type uint32 {
range 0..16777215;
}
+ description "The typedef for sd";
}
typedef qci {
type uint8 {
range 1..32;
}
+ description "The typedef for qci";
}
typedef arp {
type uint8 {
range 1..15;
}
- }
+ description "The typedef for arp";
+ }
typedef pelr {
type int8 {
range 0..10;
}
+ description "The typedef for pelr";
}
typedef pdb {
type uint16 {
range 0..1000;
}
+ description "The typedef for pdb";
}
typedef priority {
@@ -100,6 +113,7 @@
// priorities 201-255 are reserved for system use
range 0..200;
}
+ description "The typedef for priority";
}
// "TCP" or "UDP"
@@ -109,6 +123,7 @@
pattern "TCP|UDP";
}
default "TCP";
+ description "The typedef for protocol";
}
// "ENABLE" | "MAINTENTANCE" | "DISABLE"
@@ -118,6 +133,7 @@
pattern "ENABLE|MAINTENANCE|DISABLE";
}
default "ENABLE";
+ description "The typedef for admin-status";
}
typedef behavior {
@@ -125,16 +141,19 @@
length 0..20;
pattern "DENY-ALL|ALLOW-ALL|ALLOW-PUBLIC";
}
+ description "The typedef for behavior";
}
typedef mtu {
type inet:port-number;
default 1492;
+ description "The typedef for mtu";
}
typedef description {
type string {
length 1..1024;
}
+ description "The typedef for description";
}
}
diff --git a/config-models/aether-4.x/files/yang/onf-application.yang b/config-models/aether-4.x/files/yang/onf-application.yang
index cb21a6c..e024462 100755
--- a/config-models/aether-4.x/files/yang/onf-application.yang
+++ b/config-models/aether-4.x/files/yang/onf-application.yang
@@ -28,6 +28,7 @@
type yg:yang-identifier {
length 1..32;
}
+ description "The typedef for application-id";
}
container application {
@@ -112,6 +113,7 @@
}
description "display name to use in GUI or CLI";
}
+ description "list for endpoint";
}
leaf enterprise {
diff --git a/config-models/aether-4.x/files/yang/onf-connectivity-service.yang b/config-models/aether-4.x/files/yang/onf-connectivity-service.yang
index dfcd8d0..e1d53b6 100755
--- a/config-models/aether-4.x/files/yang/onf-connectivity-service.yang
+++ b/config-models/aether-4.x/files/yang/onf-connectivity-service.yang
@@ -25,6 +25,7 @@
type yg:yang-identifier {
length 1..32;
}
+ description "The typedef for connectivity-service-id";
}
container connectivity-service {
diff --git a/config-models/aether-4.x/files/yang/onf-device-group.yang b/config-models/aether-4.x/files/yang/onf-device-group.yang
index 87295db..a93c295 100755
--- a/config-models/aether-4.x/files/yang/onf-device-group.yang
+++ b/config-models/aether-4.x/files/yang/onf-device-group.yang
@@ -34,6 +34,7 @@
type yg:yang-identifier {
length 1..32;
}
+ description "The typedef for device-group-id";
}
container device-group {
@@ -71,9 +72,13 @@
}
leaf imsi-range-from {
type uint64;
+ description
+ "value of imsi-range-from";
}
leaf imsi-range-to {
type uint64;
+ description
+ "value of imsi-range-to";
}
leaf display-name {
type string {
@@ -102,24 +107,24 @@
leaf uplink {
type at:bitrate;
units bps;
- description "Per-device MBR uplink data rate in bps";
mandatory true;
+ description "Per-device MBR uplink data rate in bps";
}
leaf downlink {
type at:bitrate;
units bps;
- description "Per-device MBR downlink data rate in bps";
mandatory true;
+ description "Per-device MBR downlink data rate in bps";
}
}
leaf traffic-class {
type leafref {
path "/tc:traffic-class/tc:traffic-class/tc:id";
}
+ mandatory true;
description
"Link to traffic class";
- mandatory true;
}
}
@@ -127,9 +132,9 @@
type leafref {
path "/st:site/st:site/st:id";
}
+ mandatory true;
description
"Link to site";
- mandatory true;
}
}
}
diff --git a/config-models/aether-4.x/files/yang/onf-enterprise.yang b/config-models/aether-4.x/files/yang/onf-enterprise.yang
index ec61bf4..16ad5f9 100755
--- a/config-models/aether-4.x/files/yang/onf-enterprise.yang
+++ b/config-models/aether-4.x/files/yang/onf-enterprise.yang
@@ -12,7 +12,7 @@
organization "Open Networking Foundation.";
contact "Scott Baker";
- description
+ description
"An Aether Enterprise is an administration entity that
has ownership of resrouces.";
@@ -25,6 +25,7 @@
type yg:yang-identifier {
length 1..32;
}
+ description "The typedef for enterprise-id";
}
container enterprise {
@@ -45,7 +46,7 @@
length 1..80;
}
description "display name to use in GUI or CLI";
- }
+ }
leaf description {
type at:description;
@@ -57,7 +58,7 @@
leaf connectivity-service {
type leafref {
path "/cs:connectivity-service/cs:connectivity-service/cs:id";
- }
+ }
description
"Link to connectivity services where configuration should be pushed for this enterprise's devices";
}
@@ -67,7 +68,8 @@
description
"Allow or disallow pushes to this connectivity service";
}
- }
+ description "The list for connectivity-service";
+ }
}
- }
+ }
}
diff --git a/config-models/aether-4.x/files/yang/onf-ip-domain.yang b/config-models/aether-4.x/files/yang/onf-ip-domain.yang
index fdd8c2b..e896cc5 100755
--- a/config-models/aether-4.x/files/yang/onf-ip-domain.yang
+++ b/config-models/aether-4.x/files/yang/onf-ip-domain.yang
@@ -27,6 +27,7 @@
type yg:yang-identifier {
length 1..32;
}
+ description "The typedef for ip-domain-id";
}
container ip-domain {
diff --git a/config-models/aether-4.x/files/yang/onf-site.yang b/config-models/aether-4.x/files/yang/onf-site.yang
index 7118c97..b5f22c4 100755
--- a/config-models/aether-4.x/files/yang/onf-site.yang
+++ b/config-models/aether-4.x/files/yang/onf-site.yang
@@ -25,6 +25,7 @@
type yg:yang-identifier {
length 1..32;
}
+ description "The typedef for site-id";
}
container site {
@@ -112,32 +113,34 @@
description
"List of edge monitoring devices";
}
+ description
+ "container for monitoring";
}
leaf enterprise {
type leafref {
path "/ent:enterprise/ent:enterprise/ent:id";
}
+ mandatory true;
description
"Link to enterprise that owns this site";
- mandatory true;
}
container imsi-definition {
leaf mcc {
type at:mcc;
- description "mobile country code";
mandatory true;
+ description "mobile country code";
}
leaf mnc {
type at:mnc;
- description "mobile network code";
mandatory true;
+ description "mobile network code";
}
leaf enterprise {
type at:ent;
- description "enterprise-specific identifier";
mandatory true;
+ description "enterprise-specific identifier";
}
leaf format {
type string {
@@ -157,6 +160,7 @@
// 3 digit enterprise ID
// 5 digit subscriber ID
}
+ description "container for imsi-defination";
}
leaf description {
diff --git a/config-models/aether-4.x/files/yang/onf-template.yang b/config-models/aether-4.x/files/yang/onf-template.yang
index 334dc11..bbd94ef 100755
--- a/config-models/aether-4.x/files/yang/onf-template.yang
+++ b/config-models/aether-4.x/files/yang/onf-template.yang
@@ -11,7 +11,7 @@
organization "Open Networking Foundation.";
contact "Scott Baker";
- description
+ description
"The aether vcs-template holds common parameters used
by a virtual connectivity service. Templates are used to
populate a VCS.";
@@ -25,6 +25,7 @@
type yg:yang-identifier {
length 1..32;
}
+ description "The typedef for template-id";
}
container template {
@@ -99,5 +100,5 @@
description "description of this vcs template";
}
}
- }
+ }
}
diff --git a/config-models/aether-4.x/files/yang/onf-traffic-class.yang b/config-models/aether-4.x/files/yang/onf-traffic-class.yang
index f4f6cdf..a592267 100755
--- a/config-models/aether-4.x/files/yang/onf-traffic-class.yang
+++ b/config-models/aether-4.x/files/yang/onf-traffic-class.yang
@@ -11,7 +11,7 @@
organization "Open Networking Foundation.";
contact "Scott Baker";
- description
+ description
"The aether traffic class associates qos constants
with a named class of service";
@@ -24,6 +24,7 @@
type yg:yang-identifier {
length 1..32;
}
+ description "The typedef for traffic-class-id";
}
container traffic-class {
@@ -71,5 +72,5 @@
description "description of this traffic class";
}
}
- }
+ }
}
diff --git a/config-models/aether-4.x/files/yang/onf-upf.yang b/config-models/aether-4.x/files/yang/onf-upf.yang
index a8a7c4c..5c8be50 100755
--- a/config-models/aether-4.x/files/yang/onf-upf.yang
+++ b/config-models/aether-4.x/files/yang/onf-upf.yang
@@ -25,6 +25,7 @@
type yg:yang-identifier {
length 1..32;
}
+ description "The typedef for upf-id";
}
container upf {
@@ -57,7 +58,7 @@
leaf config-endpoint {
type inet:uri;
description "url for configuring the UPF";
- }
+ }
leaf display-name {
type string {
diff --git a/config-models/aether-4.x/files/yang/onf-vcs.yang b/config-models/aether-4.x/files/yang/onf-vcs.yang
index 9597f9a..c275565 100755
--- a/config-models/aether-4.x/files/yang/onf-vcs.yang
+++ b/config-models/aether-4.x/files/yang/onf-vcs.yang
@@ -29,6 +29,7 @@
type yg:yang-identifier {
length 1..32;
}
+ description "The typedef for vcs-id";
}
container vcs {
@@ -132,9 +133,9 @@
type leafref {
path "/st:site/st:site/st:id";
}
+ mandatory true;
description
"Link to site where this VCS is deployed";
- mandatory true;
}
// the following are populated from the template