Skip to content

Commit

Permalink
Updated certain yang models to make enterprise and other fields manda…
Browse files Browse the repository at this point in the history
…tory (#670)
  • Loading branch information
jamesk1997 authored Jul 9, 2021
1 parent 452b608 commit 8d470a2
Show file tree
Hide file tree
Showing 15 changed files with 47 additions and 27 deletions.
2 changes: 1 addition & 1 deletion config-models/aether-3.x/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

apiVersion: v2
name: config-model-aether
version: 3.0.5
version: 3.0.6
kubeVersion: ">=1.18.0"
appVersion: 3.0.0
description: Aether config model
Expand Down
14 changes: 7 additions & 7 deletions config-models/aether-3.x/files/aether-3.0.0.tree
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module: ap-list
| +--rw enable? boolean
+--rw display-name? string
+--rw description? string
+--rw enterprise? -> /ent:enterprise/enterprise/id
+--rw enterprise -> /ent:enterprise/enterprise/id

module: application
+--rw application
Expand All @@ -22,7 +22,7 @@ module: application
| +--rw port-start uint32
| +--rw port-end? uint32
| +--rw protocol? at:protocol
+--rw enterprise? -> /ent:enterprise/enterprise/id
+--rw enterprise -> /ent:enterprise/enterprise/id

module: connectivity-service
+--rw connectivity-service
Expand All @@ -45,7 +45,7 @@ module: device-group
| +--rw imsi-range-from? uint64
| +--rw imsi-range-to? uint64
+--rw ip-domain? -> /ipd:ip-domain/ip-domain/id
+--rw site? -> /st:site/site/id
+--rw site -> /st:site/site/id

module: enterprise
+--rw enterprise
Expand All @@ -68,7 +68,7 @@ module: ip-domain
+--rw admin-status? at:admin-status
+--rw mtu? at:mtu
+--rw description? string
+--rw enterprise? -> /ent:enterprise/enterprise/id
+--rw enterprise -> /ent:enterprise/enterprise/id

module: network
+--rw network
Expand All @@ -78,7 +78,7 @@ module: network
+--rw mcc at:mcc
+--rw mnc at:mnc
+--rw description? string
+--rw enterprise? -> /ent:enterprise/enterprise/id
+--rw enterprise -> /ent:enterprise/enterprise/id

module: site
+--rw site
Expand All @@ -87,7 +87,7 @@ module: site
+--rw display-name? string
+--rw enterprise? -> /ent:enterprise/enterprise/id
+--rw network? -> /net:network/network/id
+--rw description? string
+--rw description string

module: template
+--rw template
Expand Down Expand Up @@ -119,7 +119,7 @@ module: upf
+--rw port uint32
+--rw display-name? string
+--rw description? string
+--rw enterprise? -> /ent:enterprise/enterprise/id
+--rw enterprise -> /ent:enterprise/enterprise/id

module: vcs
+--rw vcs
Expand Down
2 changes: 1 addition & 1 deletion config-models/aether-3.x/files/yang/aether-types.yang
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ module aether-types {
typedef mtu {
// TODO: Aether-roc-api fails on uint16. AETHER-1859.
type uint32 {
range 0..65535;
range 68..65535;
}
default 1492;
}
Expand Down
6 changes: 4 additions & 2 deletions config-models/aether-3.x/files/yang/ap-list.yang
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module ap-list {
import ietf-inet-types { prefix inet; }
import aether-types { prefix at; }
import enterprise{ prefix ent; }
import ietf-yang-types{ prefix yg; }

organization "Open Networking Foundation.";
contact "Scott Baker";
Expand All @@ -17,7 +18,7 @@ module ap-list {
}

typedef ap-list-id {
type string {
type yg:yang-identifier {
length 1..32;
}
}
Expand Down Expand Up @@ -78,7 +79,8 @@ module ap-list {
leaf enterprise {
type leafref {
path "/ent:enterprise/ent:enterprise/ent:id";
}
}
mandatory true;
description
"Link to enterprise that owns this Access Point List";
}
Expand Down
6 changes: 4 additions & 2 deletions config-models/aether-3.x/files/yang/application.yang
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module application {
import ietf-inet-types{ prefix ietf; }
import aether-types{ prefix at; }
import enterprise{ prefix ent; }
import ietf-yang-types{ prefix yg; }

organization "Open Networking Foundation.";
contact "Scott Baker";
Expand All @@ -19,7 +20,7 @@ module application {
}

typedef application-id {
type string {
type yg:yang-identifier {
length 1..32;
}
}
Expand Down Expand Up @@ -90,7 +91,8 @@ module application {
leaf enterprise {
type leafref {
path "/ent:enterprise/ent:enterprise/ent:id";
}
}
mandatory true;
description
"Link to enterprise that owns this Application. May be set to None if the application is global to all Enterprises.";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module connectivity-service {
prefix cs;

import ietf-inet-types { prefix inet; }
import ietf-yang-types{ prefix yg; }

organization "Open Networking Foundation.";
contact "Scott Baker";
Expand All @@ -16,7 +17,7 @@ module connectivity-service {
}

typedef connectivity-service-id {
type string {
type yg:yang-identifier {
length 1..32;
}
}
Expand Down
6 changes: 4 additions & 2 deletions config-models/aether-3.x/files/yang/device-group.yang
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module device-group {

import ip-domain{ prefix ipd; }
import site{ prefix st; }
import ietf-yang-types{ prefix yg; }

organization "Open Networking Foundation.";
contact "Scott Baker";
Expand All @@ -24,7 +25,7 @@ module device-group {
}

typedef device-group-id {
type string {
type yg:yang-identifier {
length 1..32;
}
}
Expand Down Expand Up @@ -78,7 +79,8 @@ module device-group {
leaf site {
type leafref {
path "/st:site/st:site/st:id";
}
}
mandatory true;
description
"Link to site";
}
Expand Down
3 changes: 2 additions & 1 deletion config-models/aether-3.x/files/yang/enterprise.yang
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module enterprise {
prefix ent;

import connectivity-service { prefix cs; }
import ietf-yang-types{ prefix yg; }

organization "Open Networking Foundation.";
contact "Scott Baker";
Expand All @@ -16,7 +17,7 @@ module enterprise {
}

typedef enterprise-id {
type string {
type yg:yang-identifier {
length 1..32;
}
}
Expand Down
6 changes: 4 additions & 2 deletions config-models/aether-3.x/files/yang/ip-domain.yang
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module ip-domain {
import ietf-inet-types { prefix inet; }
import aether-types { prefix at; }
import enterprise{ prefix ent; }
import ietf-yang-types{ prefix yg; }

organization "Open Networking Foundation.";
contact "Scott Baker";
Expand All @@ -19,7 +20,7 @@ module ip-domain {
}

typedef ip-domain-id {
type string {
type yg:yang-identifier {
length 1..32;
}
}
Expand Down Expand Up @@ -84,7 +85,8 @@ module ip-domain {
leaf enterprise {
type leafref {
path "/ent:enterprise/ent:enterprise/ent:id";
}
}
mandatory true;
description
"Link to enterprise that owns this Access Point List";
}
Expand Down
6 changes: 4 additions & 2 deletions config-models/aether-3.x/files/yang/network.yang
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module network {

import aether-types{ prefix at; }
import enterprise{ prefix ent; }
import ietf-yang-types{ prefix yg; }

organization "Open Networking Foundation.";
contact "Scott Baker";
Expand All @@ -17,7 +18,7 @@ module network {
}

typedef network-id {
type string {
type yg:yang-identifier {
length 1..32;
}
}
Expand Down Expand Up @@ -65,7 +66,8 @@ module network {
leaf enterprise {
type leafref {
path "/ent:enterprise/ent:enterprise/ent:id";
}
}
mandatory true;
description
"Link to enterprise that owns this Network. If this is set to None, then the Network is globally provided by Aether.";
}
Expand Down
4 changes: 3 additions & 1 deletion config-models/aether-3.x/files/yang/site.yang
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module site {

import enterprise{ prefix ent; }
import network{ prefix net; }
import ietf-yang-types{ prefix yg; }

organization "Open Networking Foundation.";
contact "Scott Baker";
Expand All @@ -16,7 +17,7 @@ module site {
}

typedef site-id {
type string {
type yg:yang-identifier {
length 1..32;
}
}
Expand Down Expand Up @@ -61,6 +62,7 @@ module site {
type string {
length 1..100;
}
mandatory true;
description "description of this site";
}
}
Expand Down
3 changes: 2 additions & 1 deletion config-models/aether-3.x/files/yang/template.yang
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module template {

import aether-types{ prefix at; }
import traffic-class{ prefix tc; }
import ietf-yang-types{ prefix yg; }

organization "Open Networking Foundation.";
contact "Scott Baker";
Expand All @@ -18,7 +19,7 @@ module template {
}

typedef template-id {
type string {
type yg:yang-identifier {
length 1..32;
}
}
Expand Down
3 changes: 2 additions & 1 deletion config-models/aether-3.x/files/yang/traffic-class.yang
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module traffic-class {
prefix tp;

import aether-types{ prefix at; }
import ietf-yang-types{ prefix yg; }

organization "Open Networking Foundation.";
contact "Scott Baker";
Expand All @@ -16,7 +17,7 @@ module traffic-class {
}

typedef traffic-class-id {
type string {
type yg:yang-identifier {
length 1..32;
}
}
Expand Down
6 changes: 4 additions & 2 deletions config-models/aether-3.x/files/yang/upf.yang
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module upf {

import ietf-inet-types { prefix inet; }
import enterprise{ prefix ent; }
import ietf-yang-types{ prefix yg; }

organization "Open Networking Foundation.";
contact "Scott Baker";
Expand All @@ -15,7 +16,7 @@ module upf {
}

typedef upf-id {
type string {
type yg:yang-identifier {
length 1..32;
}
}
Expand Down Expand Up @@ -69,7 +70,8 @@ module upf {
leaf enterprise {
type leafref {
path "/ent:enterprise/ent:enterprise/ent:id";
}
}
mandatory true;
description
"Link to enterprise that owns this Access Point List";
}
Expand Down
4 changes: 3 additions & 1 deletion config-models/aether-3.x/files/yang/vcs.yang
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module vcs {
import aether-types{ prefix at; }
import device-group{ prefix dg; }
import traffic-class{ prefix tc; }
import ietf-yang-types{ prefix yg; }

organization "Open Networking Foundation.";
contact "Scott Baker";
Expand All @@ -22,7 +23,7 @@ module vcs {
}

typedef vcs-id {
type string {
type yg:yang-identifier {
length 1..32;
}
}
Expand Down Expand Up @@ -82,6 +83,7 @@ module vcs {
type leafref {
path "/app:application/app:application/app:id";
}
mandatory true;
description
"Link to application";
}
Expand Down

0 comments on commit 8d470a2

Please sign in to comment.