aboutsummaryrefslogtreecommitdiffstats
path: root/sdnr/wt/devicemanager-onap/onf14/provider/src/test/resources/currentRevision/cera-radioprotection-profile@2022-10-03.yang
blob: 23379d69cb3877c8244a3cf8182c442c2c33533c (plain)
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
module cera-radioprotection-profile {
  yang-version 1.1;
  namespace "urn:onf:params:xml:ns:yang:cera-radioprotection-profile";
  prefix cera-radioprotection-profile;

  import core-model-1-4 {
    prefix core-model;
  }
  import cera-common {
    prefix cera-common;
  }

  organization
    "Ceragon Networks";
  contact
    "
     Editors:
     ";
  description
    "This model contains a collection of YANG definitions for managing Ceragon wireless network equipment.";

  revision 2022-10-03 {
    description
      "Initial version";
    reference
      "";
  }

  identity PROFILE_NAME_TYPE_CERA_RADIOPROTECTION_PROFILE {
    base core-model:PROFILE_NAME_TYPE;
    description
      "none";
  }

  grouping cera-radioprotection-profile-spec {
    description
      "none";
    container cera-radioprotection-profile-pac {
      description
        "none";
      uses cera-radioprotection-profile-pac;
    }
  }

  grouping cera-radioprotection-profile-pac {
    description
      "none";
    container cera-radioprotection-profile-attributes {
      description
        "none";
      uses cera-radioprotection-profile-attributes-g;
    }
  }

  grouping cera-radioprotection-profile-attributes-g {
    description
      "This container contains the attributes of the radioprotection group.";
    leaf radio-protection-group-id {
      type uint32 {
        range "1..4";
      }
      description
        "The Id of the radio protection group.";
    }
    leaf radio-protection-attribute-copy-to-mate-source-ifindex {
      type uint32;
      description
        "The radio location which is required to be the source of configuration for copy-to-mate command.";
    }
    leaf radio-protection-attribute-revertive-admin {
      type cera-common:enable-disable;
      description
        "Enable or disable revertive mode of radio protection.";
    }
    leaf radio-protection-attribute-revertive-primary-ifindex {
      type int32;
      description
        "The radio which the system is required to revert to.";
    }
    leaf radio-protection-group-type {
      type enumeration {
        enum "one-plus-one-hsb" {
          value 0;
        }
        enum "two-plus-two-hsb" {
          value 4;
        }
        enum "two-plus-two-hsb-sd" {
          value 5;
        }
        enum "one-plus-one-hsb-sd" {
          value 6;
        }
      }
      description
        "The type of the radio protection group.";
    }
    leaf radio-protection-status-active-member-ifindex {
      type int32;
      config false;
      description
        "The active radio location";
    }
    leaf radio-protection-status-standby-member-ifindex {
      type int32;
      config false;
      description
        "The standby radio location.";
    }
    leaf radio-protection-status-lockout {
      type cera-common:no-yes;
      config false;
      description
        "Indicates whether the radio protection is currently in lockout";
    }
    leaf-list logical-termination-point-list {
      type leafref {
        path "/core-model:control-construct/core-model:logical-termination-point/core-model:uuid";
        require-instance false;
      }
      description
        "List of interfaces, which are part of the group.";
    }
  }

  augment "/core-model:control-construct/core-model:profile-collection/core-model:profile" {
    when "derived-from-or-self(./core-model:profile-name, 'cera-radioprotection-profile:PROFILE_NAME_TYPE_CERA_RADIOPROTECTION_PROFILE')";
    description
      "none";
    uses cera-radioprotection-profile-spec;
  }

  rpc radio-protection-command {
    description
      "Radio protection user commands for maintenance purposes: force-switch, lockout and manual-switch.";

    input {
      leaf profile-uuid {
        type leafref {
          path "/core-model:control-construct/core-model:profile-collection/core-model:profile/core-model:uuid";
          require-instance false;
        }
        description
          "The radioprotection profile uuid";
      }
      leaf radio-protection-attribute-command {
        type enumeration {
          enum "clear" {
            value 0;
          }
          enum "manual-switch" {
            value 1;
          }
          enum "force-switch" {
            value 2;
          }
          enum "lockout" {
            value 3;
          }
        }
        mandatory true;
        description
          "The radio protection command argument.";
      }
    }
  }
  rpc radio-protection-copy-to-mate {
    description
      "Copy to mate command that copies the configuration from one radio to another in order to achieve configuration alignment.";

    input {
      leaf profile-uuid {
        type leafref {
          path "/core-model:control-construct/core-model:profile-collection/core-model:profile/core-model:uuid";
          require-instance false;
        }
        description
          "The radioprotection profile uuid";
      }
      leaf radio-protection-attribute-copy-to-mate {
        type cera-common:off-on;
      }
    }
  }
}