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
  • Loading branch information
jamesk1997 committed Jul 9, 2021
1 parent 806728d commit 226bc4f
Show file tree
Hide file tree
Showing 12 changed files with 38 additions and 18 deletions.
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 226bc4f

Please sign in to comment.