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

Agrego hypervisor al modelo

parent 53252081
No related branches found
No related tags found
No related merge requests found
...@@ -50,7 +50,7 @@ module ietf-dcpop-dc { ...@@ -50,7 +50,7 @@ module ietf-dcpop-dc {
"Draft-ietf-teas-actn-vn-yang-16: YANG module for the VN"; "Draft-ietf-teas-actn-vn-yang-16: YANG module for the VN";
} }
organization organization
"IETF Traffic Engineering Architecture and Signaling (TEAS) "IETF Traffic Engineering Architecture and Signaling (TEAS)
Working Group"; Working Group";
contact contact
...@@ -80,7 +80,7 @@ module ietf-dcpop-dc { ...@@ -80,7 +80,7 @@ module ietf-dcpop-dc {
described in BCP 14 (RFC 2119) (RFC 8174) when, and only when, described in BCP 14 (RFC 2119) (RFC 8174) when, and only when,
they appear in all capitals, as shown here."; they appear in all capitals, as shown here.";
revision 2022-11-16 { revision 2022-07-11 {
description description
"initial version."; "initial version.";
reference reference
...@@ -98,7 +98,19 @@ module ietf-dcpop-dc { ...@@ -98,7 +98,19 @@ module ietf-dcpop-dc {
/* Typedef */ /* Typedef */
typedef dc-id { 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; type string;
description description
"Defines a type of datacenter (dc) identifier."; "Defines a type of datacenter (dc) identifier.";
...@@ -107,7 +119,7 @@ module ietf-dcpop-dc { ...@@ -107,7 +119,7 @@ module ietf-dcpop-dc {
/* Groupings */ /* Groupings */
grouping datacenter { grouping datacenter {
description description
"Datacenter related information"; "Datacenter related information";
leaf dc-id { leaf dc-id {
...@@ -116,16 +128,113 @@ module ietf-dcpop-dc { ...@@ -116,16 +128,113 @@ module ietf-dcpop-dc {
"A unique identifier for the referred datacenter"; "A unique identifier for the referred datacenter";
} }
leaf-list ap { list hypervisor{
key "hyp-id";
description
"access-point identifier";
uses hypervisor {
description
"The access-point information";
}
}
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 PE node in the native TE Topology";
} }
} //datacenter
grouping hypervisor {
description
"Hypervisor related information";
container ram {
description
"The RAM characteristics of the DC";
leaf total {
type uint32;
description
"A unique identifier for the referred hypervisor";
}
leaf used {
type uint32;
description
"A unique identifier for the referred hypervisor";
}
leaf free {
type uint32;
description
"A unique identifier for the referred hypervisor";
}
}
container disk {
description
"The RAM characteristics of the DC";
leaf total {
type uint32;
description
"A unique identifier for the referred hypervisor";
}
leaf used {
type uint32;
description
"A unique identifier for the referred hypervisor";
}
leaf free {
type uint32;
description
"A unique identifier for the referred hypervisor";
}
}
container vcpu {
description
"The RAM characteristics of the DC";
leaf total {
type uint32;
description
"A unique identifier for the referred hypervisor";
}
leaf used {
type uint32;
description
"A unique identifier for the referred hypervisor";
}
leaf free {
type uint32;
description
"A unique identifier for the referred hypervisor";
}
}
leaf-list instance {
type leafref {
path "/dcpop/dc/instance/id";
}
description
"A reference to the PE node in the native TE Topology";
}
leaf hyp-id {
type hyp-id;
description
"A unique identifier for the referred hypervisor";
}
leaf name {
type string;
description
"A unique identifier for the referred hypervisor";
}
} //hypervisor
} //datacenter grouping instance {
description
"Instance related information";
leaf instance-id {
type instance-id;
description
"A unique identifier for the referred hypervisor";
}
} //instance
/* Configuration data nodes */ /* Configuration data nodes */
......
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