205 lines · yaml
1# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)2 3name: team4 5protocol: genetlink-legacy6 7doc: |8 Network team device driver.9 10c-family-name: team-genl-name11c-version-name: team-genl-version12kernel-policy: global13uapi-header: linux/if_team.h14 15definitions:16 -17 name: string-max-len18 type: const19 value: 3220 -21 name: genl-change-event-mc-grp-name22 type: const23 value: change_event24 25attribute-sets:26 -27 name: team28 doc:29 The team nested layout of get/set msg looks like30 [TEAM_ATTR_LIST_OPTION]31 [TEAM_ATTR_ITEM_OPTION]32 [TEAM_ATTR_OPTION_*], ...33 [TEAM_ATTR_ITEM_OPTION]34 [TEAM_ATTR_OPTION_*], ...35 ...36 [TEAM_ATTR_LIST_PORT]37 [TEAM_ATTR_ITEM_PORT]38 [TEAM_ATTR_PORT_*], ...39 [TEAM_ATTR_ITEM_PORT]40 [TEAM_ATTR_PORT_*], ...41 ...42 name-prefix: team-attr-43 attributes:44 -45 name: unspec46 type: unused47 value: 048 -49 name: team-ifindex50 type: u3251 -52 name: list-option53 type: nest54 nested-attributes: item-option55 -56 name: list-port57 type: nest58 nested-attributes: item-port59 -60 name: item-option61 name-prefix: team-attr-item-62 attr-cnt-name: __team-attr-item-option-max63 attr-max-name: team-attr-item-option-max64 attributes:65 -66 name: option-unspec67 type: unused68 value: 069 -70 name: option71 type: nest72 nested-attributes: attr-option73 -74 name: attr-option75 name-prefix: team-attr-option-76 attributes:77 -78 name: unspec79 type: unused80 value: 081 -82 name: name83 type: string84 checks:85 max-len: string-max-len86 unterminated-ok: true87 -88 name: changed89 type: flag90 -91 name: type92 type: u893 -94 name: data95 type: binary96 -97 name: removed98 type: flag99 -100 name: port-ifindex101 type: u32102 doc: for per-port options103 -104 name: array-index105 type: u32106 doc: for array options107 -108 name: item-port109 name-prefix: team-attr-item-110 attr-cnt-name: __team-attr-item-port-max111 attr-max-name: team-attr-item-port-max112 attributes:113 -114 name: port-unspec115 type: unused116 value: 0117 -118 name: port119 type: nest120 nested-attributes: attr-port121 -122 name: attr-port123 name-prefix: team-attr-port-124 attributes:125 -126 name: unspec127 type: unused128 value: 0129 -130 name: ifindex131 type: u32132 -133 name: changed134 type: flag135 -136 name: linkup137 type: flag138 -139 name: speed140 type: u32141 -142 name: duplex143 type: u8144 -145 name: removed146 type: flag147 148operations:149 list:150 -151 name: noop152 doc: No operation153 value: 0154 attribute-set: team155 dont-validate: [ strict ]156 157 do:158 # Actually it only reply the team netlink family159 reply:160 attributes:161 - team-ifindex162 163 -164 name: options-set165 doc: Set team options166 attribute-set: team167 dont-validate: [ strict ]168 flags: [ admin-perm ]169 170 do:171 request: &option_attrs172 attributes:173 - team-ifindex174 - list-option175 reply: *option_attrs176 177 -178 name: options-get179 doc: Get team options info180 attribute-set: team181 dont-validate: [ strict ]182 flags: [ admin-perm ]183 184 do:185 request:186 attributes:187 - team-ifindex188 reply: *option_attrs189 190 -191 name: port-list-get192 doc: Get team ports info193 attribute-set: team194 dont-validate: [ strict ]195 flags: [ admin-perm ]196 197 do:198 request:199 attributes:200 - team-ifindex201 reply: &port_attrs202 attributes:203 - team-ifindex204 - list-port205