Skip to content
Snippets Groups Projects
Commit c993e59c authored by Matias Richart's avatar Matias Richart
Browse files

Agrego instance

parent 3f570691
No related branches found
No related tags found
No related merge requests found
...@@ -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 uint32; type uint16;
description description
"A unique identifier for the referred hypervisor"; "Total number of CPUs assigned to the hyperviosr";
} }
leaf used { leaf used {
type uint32; type uint16;
description description
"A unique identifier for the referred hypervisor"; "Number of used CPUs by the hypervisor";
} }
leaf free { leaf free {
type uint32; type uint16;
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
" "; " ";
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment