Newer
Older
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
module ztp_device {
yang-version "1";
namespace "urn:ztp_nos";
prefix "ztp_nos";
organization "EVIDEN";
contact "jose.carcel@eviden.com";
description "Basic example of data model for modelling NOS ZTP Device";
revision "2023-08-03" {
description "Basic example of data model for modelling NOS ZTP Device";
reference "";
}
grouping config{
leaf ztp_device_sw_url{
type string;
}
leaf config_script_url{
type string;
}
}
typedef state {
type enumeration{
enum "UNDEF";
enum "INIT_HW";
enum "INIT_SW";
enum "CONFIGURED";
enum "RUNNING";
enum "UPDATING";
enum "MIGRATING";
enum "DELETED";
}
}
grouping state {
leaf ztp_device_state {
type state;
}
}
}