aboutsummaryrefslogtreecommitdiffstats
path: root/sdnr/wt/devicemanager-onap/onf14/provider/src/test/resources/currentRevision/cera-linkbonding-profile@2022-08-19.yang
blob: 4a02e049dab90814d6fe707b4ed612415642da5e (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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
module cera-linkbonding-profile {
  yang-version 1.1;
  namespace "urn:onf:params:xml:ns:yang:cera-linkbonding-profile";
  prefix cera-linkbonding-profile;

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

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

  revision 2022-08-19 {
    description
      "Initial version";
    reference
      "";
  }

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

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

  grouping cera-linkbonding-profile-pac {
    description
      "none";
    container cera-linkbonding-profile-attributes {
      description
        "none";
      uses cera-linkbonding-profile-attributes-g;
    }
    list cera-linkbonding-profile-member-attributes {
      key "member-id-ref link-bonding-members-config-vlan-id";
      description
        "none";
      uses cera-linkbonding-profile-member-attributes-g;
    }
  }

  grouping cera-linkbonding-profile-attributes-g {
    description
      "This container contains the attributes of the linkbonding group.";
    leaf link-bonding-groups-config-max-bandwidth-allocated {
      type enumeration {
        enum "max-bw-10G" {
          value 0;
        }
        enum "max-bw-20G" {
          value 1;
        }
        enum "max-bw-30G" {
          value 2;
        }
      }
      description
        "The Max bandwidth allocated.";
    }
    leaf link-bonding-groups-config-lbg-mod {
      type enumeration {
        enum "standard" {
          value 0;
        }
        enum "enhanced" {
          value 1;
        }
      }
      description
        "The Link Bonding group mode.";
    }
    leaf link-bonding-eth-type {
      type enumeration {
        enum "eth-type-0x9908" {
          value 0;
        }
      }
      config false;
      description
        "The ETH type of the link bonding segments";
    }
    leaf link-bonding-tpid-type {
      type enumeration {
        enum "tpid-type-0x88a8" {
          value 0;
        }
        enum "tpid-type-0x9200" {
          value 1;
        }
        enum "tpid-type-0x9100" {
          value 2;
        }
        enum "tpid-type-0x8100" {
          value 3;
        }
      }
      config false;
      description
        "The ETH type of the VLAN (if used) of the link bonding segments";
    }
    leaf link-bonding-control-channel-supported {
      type cera-common:no-yes;
      config false;
      description
        "Indicates whether the Link Bonding control channel supported by Hardware";
    }
    list logical-termination-point-list {
      key "logical-termination-point vlan-id";
      description
        "List of interfaces, which are part of the group.";
      leaf logical-termination-point {
        type leafref {
          path "/core-model:control-construct/core-model:logical-termination-point/core-model:uuid";
          require-instance false;
        }
      }
      leaf vlan-id {
        type int32 {
          range "0..4097";
        }
      }
    }
  }

  grouping cera-linkbonding-profile-member-attributes-g {
    description
      "Attributes of the interfaces, which are part of the group.";
    leaf member-id-ref {
      type leafref {
        path "/core-model:control-construct/core-model:logical-termination-point/core-model:uuid";
        require-instance false;
      }
    }
    leaf link-bonding-members-config-vlan-id {
      type int32 {
        range "0..4097";
      }
      description
        "The link bonding member VLAN ID";
    }
    leaf link-bonding-members-config-admin {
      type cera-common:enable-disable;
      description
        "Admin configuration of the member";
    }
    leaf link-bonding-members-config-shaper-max-bitrate {
      type uint32;
      description
        "Member shaper maximum bit rate in Kbits per second";
    }
    leaf link-bonding-members-config-bw-ctrl-port-id {
      type uint32;
      description
        "Port ID in the received BNM packet";
    }
    leaf link-bonding-members-config-bw-ctrl-vlan-id {
      type int32 {
        range "0..4097";
      }
      description
        "VLAN ID in the received BNM packet";
    }
    leaf link-bonding-members-config-bw-ctrl-src-mac-address {
      type yang:mac-address;
      description
        "Source MAC address in the received BNM packet";
    }
    leaf link-bonding-members-config-bw-ctrl-ifindex {
      type uint32;
      description
        "Interface location of the BNM receiving port";
    }
    leaf link-bonding-members-config-l1-header-compensation-enabled {
      type cera-common:no-yes;
      description
        "L1 header compensation enabled";
    }
    leaf link-bonding-members-config-l1-header-compensation-value {
      type int32;
      description
        "L1 header compensation value in bytes";
    }
    leaf link-bonding-members-config-l2-header-compensation-enabled {
      type cera-common:no-yes;
      description
        "L2 header compensation enabled";
    }
    leaf link-bonding-members-config-l2-header-compensation-value {
      type int32;
      description
        "L2 header compensation value in bytes";
    }
    leaf link-bonding-members-status-clear-on-read {
      type cera-common:no-yes;
      description
        "Clear counter statistics after reading";
    }
    leaf link-bonding-members-status-num-tx-packets {
      type uint32;
      config false;
      description
        "Number of Tx packets";
    }
    leaf link-bonding-members-status-num-tx-bytes {
      type uint32;
      config false;
      description
        "Number of Tx bytes";
    }
    leaf link-bonding-members-status-num-rx-packets {
      type uint32;
      config false;
      description
        "Number of Rx packets";
    }
    leaf link-bonding-members-status-num-rx-bytes {
      type uint32;
      config false;
      description
        "Number of Rx bytes";
    }
    leaf link-bonding-members-status-shaper-actual-bitrate {
      type uint32;
      config false;
      description
        "Member shaper actual bit rate in Kbits per second";
    }
  }

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