-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathietf-hw-inventory-ref-topo.yang
122 lines (102 loc) · 3.91 KB
/
ietf-hw-inventory-ref-topo.yang
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
module ietf-hw-inventory-ref-topo {
yang-version 1.1;
namespace "urn:ietf:params:xml:ns:yang:ietf-hw-inventory-ref-topo";
prefix hirt;
import ietf-network {
prefix nw;
reference
"RFC8345: A YANG Data Model for Network Topologies";
}
import ietf-network-topology {
prefix nt;
reference
"RFC8345: A YANG Data Model for Network Topologies";
}
import ietf-network-hardware-inventory {
prefix nhi;
reference
"RFC XXXX: A YANG Data Model for Network Hardware Inventory.";
//RFC Editor: replace XXXX with actual RFC number, update date
//information and remove this note
}
organization
"IETF CCAMP Working Group";
contact
"WG Web: <https://datatracker.ietf.org/wg/ccamp/>
WG List: <mailto:ccamp@ietf.org>
Editor: Chaode Yu
<yuchaode@huawei.com>
Editor: Sergio Belotti
<sergio.belotti@nokia.com>
Editor: Jean-Francois Bouquier
<jeff.bouquier@vodafone.com>
Editor: Fabio Peruzzini
<fabio.peruzzini@telecomitalia.it>
Editor: Phil Bedard
<phbedard@cisco.com>";
description
"This module defines a model for navigation between hardware
inventory data module and network topology module.
The model fully conforms to the Network Management
Datastore Architecture (NMDA).
Copyright (c) 2021 IETF Trust and the persons
identified as authors of the code. All rights reserved.
Redistribution and use in source and binary forms, with or
without modification, is permitted pursuant to, and subject
to the license terms contained in, the Simplified BSD License
set forth in Section 4.c of the IETF Trust's Legal Provisions
Relating to IETF Documents
(https://trustee.ietf.org/license-info).
This version of this YANG module is part of RFC XXXX; see
the RFC itself for full legal notices.
The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL', 'SHALL
NOT', 'SHOULD', 'SHOULD NOT', 'RECOMMENDED', 'NOT RECOMMENDED',
'MAY', and 'OPTIONAL' in this document are to be interpreted as
described in BCP 14 (RFC 2119) (RFC 8174) when, and only when,
they appear in all capitals, as shown here.";
// RFC Ed.: replace XXXX with actual RFC number and remove this
// note.
// RFC Ed.: update the date below with the date of RFC publication
// and remove this note.
revision 2023-03-10 {
description
"Initial revision.";
reference
"RFC XXXX: A YANG Data Model for Network Hardware Inventory.";
//RFC Editor: replace XXXX with actual RFC number, update date
//information and remove this note
}
augment "/nw:networks/nw:network/nw:node" {
description
"Information that allows the relationship between the node in
the topology and the Network Element (NE) in the network
hardware inventory model from which the node is abstracted";
leaf inventory-id {
type leafref {
path "/nhi:network-hardware-inventory/nhi:network-elements"
+ "/nhi:network-element/nhi:uuid";
}
config false;
description
"The identifier of the Network Element (NE) from which this
node is abstracted";
}
}
augment "/nw:networks/nw:network/nw:node/nt:termination-point" {
description
"Information that allows the relationship between the Link
Termination Point (LTP) and the port component in the network
hardware inventory model from which this LTP is abstracted.";
leaf inventory-id {
type leafref {
path "/nhi:network-hardware-inventory/nhi:network-elements"
+ "/nhi:network-element/nhi:components/nhi:component"
+ "/nhi:uuid";
}
config false;
description
"The identifier of the port component from which this Link
Termination Point (LTP) is abstracted";
}
}
}