Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DC-yang
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Matias Richart
DC-yang
Commits
c993e59c
Commit
c993e59c
authored
2 years ago
by
Matias Richart
Browse files
Options
Downloads
Patches
Plain Diff
Agrego instance
parent
3f570691
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ietf-dcpop-dc@2022-07-11.yang
+153
-53
153 additions, 53 deletions
ietf-dcpop-dc@2022-07-11.yang
with
153 additions
and
53 deletions
ietf-dcpop-dc@2022-07-11.yang
+
153
−
53
View file @
c993e59c
...
@@ -98,52 +98,40 @@ module ietf-dcpop-dc {
...
@@ -98,52 +98,40 @@ module ietf-dcpop-dc {
/* Typedef */
/* Typedef */
typedef
dc-id
{
type
string
;
description
"Defines a type of datacenter (dc) identifier."
;
}
typedef
hyp-id
{
type
string
;
description
"Defines a type of datacenter (dc) identifier."
;
}
typedef
instance-id
{
type
string
;
description
"Defines a type of datacenter (dc) identifier."
;
}
/* Groupings */
/* Groupings */
grouping
datacenter
{
grouping
datacenter
{
description
description
"Datacenter related information"
;
"Datacenter related information"
;
leaf
dc-
id
{
leaf
id
{
type
dc-id
;
type
string
;
description
description
"A unique identifier for the referred datacenter"
;
"A unique identifier for the referred datacenter"
;
}
}
list
hypervisor
{
list
hypervisor
{
key
"
hyp-
id"
;
key
"id"
;
description
description
"
access-point
identifier"
;
"
hypervisor
identifier"
;
uses
hypervisor
{
uses
hypervisor
{
description
description
"The access-point information"
;
"The hypervisor information"
;
}
}
list
instance
{
key
"id"
;
description
"instance identifier"
;
uses
instance
{
description
"The instance information"
;
}
}
}
}
leaf-list
ap
{
leaf-list
ap
{
type
leafref
{
type
leafref
{
path
"/actn-vn:access-point/actn-vn:ap/actn-vn:ap-id"
;
path
"/actn-vn:access-point/actn-vn:ap/actn-vn:ap-id"
;
}
}
description
description
"A reference to the
PE
node in the
native
TE Topology"
;
"A reference to the
access point
node in the TE Topology"
;
}
}
}
//datacenter
}
//datacenter
...
@@ -156,55 +144,55 @@ module ietf-dcpop-dc {
...
@@ -156,55 +144,55 @@ module ietf-dcpop-dc {
leaf
total
{
leaf
total
{
type
uint32
;
type
uint32
;
description
description
"
A unique identifier for the referred hypervisor
"
;
"
Total RAM assigned to the hyperviosr (in bytes)
"
;
}
}
leaf
used
{
leaf
used
{
type
uint32
;
type
uint32
;
description
description
"
A unique identifier for the referred hypervisor
"
;
"
Used RAM by the hypervisor (in bytes)
"
;
}
}
leaf
free
{
leaf
free
{
type
uint32
;
type
uint32
;
description
description
"
A unique identifier for the referred hypervisor
"
;
"
Free RAM avaiable for the hypervisor (in bytes)
"
;
}
}
}
}
container
disk
{
container
disk
{
description
description
"The
RAM
characteristics of the DC"
;
"The
stroage
characteristics of the DC"
;
leaf
total
{
leaf
total
{
type
uint32
;
type
uint32
;
description
description
"
A unique identifier for the referred hypervisor
"
;
"
Total DISK assigned to the hyperviosr (in bytes)
"
;
}
}
leaf
used
{
leaf
used
{
type
uint32
;
type
uint32
;
description
description
"
A unique identifier for the referred hypervisor
"
;
"
Used DISK by the hypervisor (in bytes)
"
;
}
}
leaf
free
{
leaf
free
{
type
uint32
;
type
uint32
;
description
description
"
A unique identifier for the referred hypervisor
"
;
"
Free DISK avaiable for the hypervisor (in bytes)
"
;
}
}
}
}
container
vcpu
{
container
vcpu
{
description
description
"The
RAM
characteristics of the DC"
;
"The
CPU
characteristics of the DC"
;
leaf
total
{
leaf
total
{
type
uint
32
;
type
uint
16
;
description
description
"
A unique identifier for the referred
hypervi
s
or"
;
"
Total number of CPUs assigned to the
hypervio
s
r"
;
}
}
leaf
used
{
leaf
used
{
type
uint
32
;
type
uint
16
;
description
description
"
A unique identifier for the referred
hypervisor"
;
"
Number of used CPUs by the
hypervisor"
;
}
}
leaf
free
{
leaf
free
{
type
uint
32
;
type
uint
16
;
description
description
"
A unique identifier for the referred
hypervisor"
;
"
Number of free avaiable CPUS for the
hypervisor"
;
}
}
}
}
leaf-list
instance
{
leaf-list
instance
{
...
@@ -212,27 +200,142 @@ module ietf-dcpop-dc {
...
@@ -212,27 +200,142 @@ module ietf-dcpop-dc {
path
"/dcpop/dc/instance/id"
;
path
"/dcpop/dc/instance/id"
;
}
}
description
description
"A reference to
the PE node in the native TE Topology
"
;
"A reference to
a DC instance
"
;
}
}
leaf
hyp-
id
{
leaf
id
{
type
hyp-id
;
type
string
;
description
description
"A unique identifier for the referred hypervisor"
;
"A unique identifier for the referred hypervisor"
;
}
}
leaf
name
{
leaf
name
{
type
string
;
type
string
;
description
description
"A
unique identifier
for the referred hypervisor"
;
"A
name
for the referred hypervisor"
;
}
}
}
//hypervisor
}
//hypervisor
grouping
instance
{
grouping
instance
{
description
description
"Instance related information"
;
"Instance related information"
;
leaf
instance-id
{
container
flavor
{
type
instance-id
;
description
description
"A unique identifier for the referred hypervisor"
;
"The flavor characteristics of the instance"
;
leaf
disk
{
type
uint32
;
description
""
;
}
leaf
ram
{
type
uint32
;
description
""
;
}
leaf
vcpus
{
type
uint16
;
description
""
;
}
leaf
bandwidth
{
type
uint32
;
description
""
;
}
leaf
id
{
type
string
;
description
""
;
}
leaf
name
{
type
string
;
description
""
;
}
}
container
image
{
description
"The image characteristics of the instance"
;
leaf
checksum
{
type
string
;
description
""
;
}
leaf
size
{
type
uint32
;
description
""
;
}
container
format
{
description
""
;
leaf
container
{
type
enumeration
{
enum
zero
{
value
0
;
description
"Ni idea que va aca"
;
}
}
description
""
;
}
leaf
disk
{
type
enumeration
{
enum
zero
{
value
0
;
description
"Ni idea que va aca"
;
}
}
}
}
leaf
id
{
type
string
;
description
""
;
}
leaf
name
{
type
string
;
description
""
;
}
}
leaf
hypervisor
{
type
leafref
{
path
"/dcpop/dc/hypervisor/id"
;
}
description
"A reference to a hypervisor of the instance"
;
}
// leaf port {
// type leafref {
// path "/dcpop/dc/network/subnetwork/port/id";
// }
// description
// "A reference to the port of the subnetwork";
// }
leaf
project
{
type
string
;
description
""
;
}
leaf
status
{
type
enumeration
{
enum
zero
{
value
0
;
description
"Ni idea que va aca"
;
}
}
}
leaf
id
{
type
string
;
description
"A unique identifier for the referred instance"
;
}
leaf
name
{
type
string
;
description
""
;
}
}
}
//instance
}
//instance
...
@@ -243,7 +346,7 @@ module ietf-dcpop-dc {
...
@@ -243,7 +346,7 @@ module ietf-dcpop-dc {
description
description
"DC configurations"
;
"DC configurations"
;
list
dc
{
list
dc
{
key
"
dc-
id"
;
key
"id"
;
description
description
"datacenter identifier"
;
"datacenter identifier"
;
uses
datacenter
{
uses
datacenter
{
...
@@ -254,8 +357,5 @@ module ietf-dcpop-dc {
...
@@ -254,8 +357,5 @@ module ietf-dcpop-dc {
reference
reference
" "
;
" "
;
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment