iproutejs 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (510) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +245 -0
  3. package/lib/commands/address/add.interfaces.d.ts +94 -0
  4. package/lib/commands/address/add.interfaces.js +3 -0
  5. package/lib/commands/address/add.interfaces.js.map +1 -0
  6. package/lib/commands/address/add.schema.d.ts +3 -0
  7. package/lib/commands/address/add.schema.js +121 -0
  8. package/lib/commands/address/add.schema.js.map +1 -0
  9. package/lib/commands/address/delete.interfaces.d.ts +56 -0
  10. package/lib/commands/address/delete.interfaces.js +3 -0
  11. package/lib/commands/address/delete.interfaces.js.map +1 -0
  12. package/lib/commands/address/delete.schema.d.ts +3 -0
  13. package/lib/commands/address/delete.schema.js +64 -0
  14. package/lib/commands/address/delete.schema.js.map +1 -0
  15. package/lib/commands/address/flush.interfaces.d.ts +89 -0
  16. package/lib/commands/address/flush.interfaces.js +3 -0
  17. package/lib/commands/address/flush.interfaces.js.map +1 -0
  18. package/lib/commands/address/flush.schema.d.ts +3 -0
  19. package/lib/commands/address/flush.schema.js +165 -0
  20. package/lib/commands/address/flush.schema.js.map +1 -0
  21. package/lib/commands/address/show.interfaces.d.ts +166 -0
  22. package/lib/commands/address/show.interfaces.js +3 -0
  23. package/lib/commands/address/show.interfaces.js.map +1 -0
  24. package/lib/commands/address/show.schema.d.ts +3 -0
  25. package/lib/commands/address/show.schema.js +176 -0
  26. package/lib/commands/address/show.schema.js.map +1 -0
  27. package/lib/commands/address.constants.d.ts +33 -0
  28. package/lib/commands/address.constants.js +39 -0
  29. package/lib/commands/address.constants.js.map +1 -0
  30. package/lib/commands/address.d.ts +179 -0
  31. package/lib/commands/address.js +265 -0
  32. package/lib/commands/address.js.map +1 -0
  33. package/lib/commands/addrlabel/add.interfaces.d.ts +12 -0
  34. package/lib/commands/addrlabel/add.interfaces.js +3 -0
  35. package/lib/commands/addrlabel/add.interfaces.js.map +1 -0
  36. package/lib/commands/addrlabel/add.schema.d.ts +3 -0
  37. package/lib/commands/addrlabel/add.schema.js +26 -0
  38. package/lib/commands/addrlabel/add.schema.js.map +1 -0
  39. package/lib/commands/addrlabel/del.interfaces.d.ts +6 -0
  40. package/lib/commands/addrlabel/del.interfaces.js +3 -0
  41. package/lib/commands/addrlabel/del.interfaces.js.map +1 -0
  42. package/lib/commands/addrlabel/del.schema.d.ts +3 -0
  43. package/lib/commands/addrlabel/del.schema.js +27 -0
  44. package/lib/commands/addrlabel/del.schema.js.map +1 -0
  45. package/lib/commands/addrlabel/list.interfaces.d.ts +9 -0
  46. package/lib/commands/addrlabel/list.interfaces.js +3 -0
  47. package/lib/commands/addrlabel/list.interfaces.js.map +1 -0
  48. package/lib/commands/addrlabel.d.ts +104 -0
  49. package/lib/commands/addrlabel.js +149 -0
  50. package/lib/commands/addrlabel.js.map +1 -0
  51. package/lib/commands/batch.d.ts +60 -0
  52. package/lib/commands/batch.js +90 -0
  53. package/lib/commands/batch.js.map +1 -0
  54. package/lib/commands/link/add.interfaces.d.ts +122 -0
  55. package/lib/commands/link/add.interfaces.js +4 -0
  56. package/lib/commands/link/add.interfaces.js.map +1 -0
  57. package/lib/commands/link/add.schema.d.ts +4 -0
  58. package/lib/commands/link/add.schema.js +172 -0
  59. package/lib/commands/link/add.schema.js.map +1 -0
  60. package/lib/commands/link/delete.interfaces.d.ts +22 -0
  61. package/lib/commands/link/delete.interfaces.js +3 -0
  62. package/lib/commands/link/delete.interfaces.js.map +1 -0
  63. package/lib/commands/link/delete.schema.d.ts +3 -0
  64. package/lib/commands/link/delete.schema.js +29 -0
  65. package/lib/commands/link/delete.schema.js.map +1 -0
  66. package/lib/commands/link/extended-virtual-link-types/bond-slave.interfaces.d.ts +8 -0
  67. package/lib/commands/link/extended-virtual-link-types/bond-slave.interfaces.js +3 -0
  68. package/lib/commands/link/extended-virtual-link-types/bond-slave.interfaces.js.map +1 -0
  69. package/lib/commands/link/extended-virtual-link-types/bond-slave.schema.d.ts +3 -0
  70. package/lib/commands/link/extended-virtual-link-types/bond-slave.schema.js +16 -0
  71. package/lib/commands/link/extended-virtual-link-types/bond-slave.schema.js.map +1 -0
  72. package/lib/commands/link/extended-virtual-link-types/bridge-slave.interfaces.d.ts +77 -0
  73. package/lib/commands/link/extended-virtual-link-types/bridge-slave.interfaces.js +3 -0
  74. package/lib/commands/link/extended-virtual-link-types/bridge-slave.interfaces.js.map +1 -0
  75. package/lib/commands/link/extended-virtual-link-types/bridge-slave.schema.d.ts +3 -0
  76. package/lib/commands/link/extended-virtual-link-types/bridge-slave.schema.js +126 -0
  77. package/lib/commands/link/extended-virtual-link-types/bridge-slave.schema.js.map +1 -0
  78. package/lib/commands/link/set.interfaces.d.ts +271 -0
  79. package/lib/commands/link/set.interfaces.js +4 -0
  80. package/lib/commands/link/set.interfaces.js.map +1 -0
  81. package/lib/commands/link/set.schema.d.ts +5 -0
  82. package/lib/commands/link/set.schema.js +284 -0
  83. package/lib/commands/link/set.schema.js.map +1 -0
  84. package/lib/commands/link/show.interfaces.d.ts +116 -0
  85. package/lib/commands/link/show.interfaces.js +3 -0
  86. package/lib/commands/link/show.interfaces.js.map +1 -0
  87. package/lib/commands/link/show.schema.d.ts +3 -0
  88. package/lib/commands/link/show.schema.js +43 -0
  89. package/lib/commands/link/show.schema.js.map +1 -0
  90. package/lib/commands/link/virtual-link-types/bareup.interfaces.d.ts +30 -0
  91. package/lib/commands/link/virtual-link-types/bareup.interfaces.js +3 -0
  92. package/lib/commands/link/virtual-link-types/bareup.interfaces.js.map +1 -0
  93. package/lib/commands/link/virtual-link-types/bareup.schema.d.ts +3 -0
  94. package/lib/commands/link/virtual-link-types/bareup.schema.js +43 -0
  95. package/lib/commands/link/virtual-link-types/bareup.schema.js.map +1 -0
  96. package/lib/commands/link/virtual-link-types/bridge.interfaces.d.ts +140 -0
  97. package/lib/commands/link/virtual-link-types/bridge.interfaces.js +3 -0
  98. package/lib/commands/link/virtual-link-types/bridge.interfaces.js.map +1 -0
  99. package/lib/commands/link/virtual-link-types/bridge.schema.d.ts +3 -0
  100. package/lib/commands/link/virtual-link-types/bridge.schema.js +186 -0
  101. package/lib/commands/link/virtual-link-types/bridge.schema.js.map +1 -0
  102. package/lib/commands/link/virtual-link-types/can.interfaces.d.ts +71 -0
  103. package/lib/commands/link/virtual-link-types/can.interfaces.js +3 -0
  104. package/lib/commands/link/virtual-link-types/can.interfaces.js.map +1 -0
  105. package/lib/commands/link/virtual-link-types/can.schema.d.ts +3 -0
  106. package/lib/commands/link/virtual-link-types/can.schema.js +141 -0
  107. package/lib/commands/link/virtual-link-types/can.schema.js.map +1 -0
  108. package/lib/commands/link/virtual-link-types/erspan-ip6erspan.interfaces.d.ts +58 -0
  109. package/lib/commands/link/virtual-link-types/erspan-ip6erspan.interfaces.js +3 -0
  110. package/lib/commands/link/virtual-link-types/erspan-ip6erspan.interfaces.js.map +1 -0
  111. package/lib/commands/link/virtual-link-types/erspan-ip6erspan.schema.d.ts +3 -0
  112. package/lib/commands/link/virtual-link-types/erspan-ip6erspan.schema.js +64 -0
  113. package/lib/commands/link/virtual-link-types/erspan-ip6erspan.schema.js.map +1 -0
  114. package/lib/commands/link/virtual-link-types/geneve.interfaces.d.ts +54 -0
  115. package/lib/commands/link/virtual-link-types/geneve.interfaces.js +3 -0
  116. package/lib/commands/link/virtual-link-types/geneve.interfaces.js.map +1 -0
  117. package/lib/commands/link/virtual-link-types/geneve.schema.d.ts +3 -0
  118. package/lib/commands/link/virtual-link-types/geneve.schema.js +93 -0
  119. package/lib/commands/link/virtual-link-types/geneve.schema.js.map +1 -0
  120. package/lib/commands/link/virtual-link-types/gre-gretap.interfaces.d.ts +106 -0
  121. package/lib/commands/link/virtual-link-types/gre-gretap.interfaces.js +3 -0
  122. package/lib/commands/link/virtual-link-types/gre-gretap.interfaces.js.map +1 -0
  123. package/lib/commands/link/virtual-link-types/gre-gretap.schema.d.ts +3 -0
  124. package/lib/commands/link/virtual-link-types/gre-gretap.schema.js +208 -0
  125. package/lib/commands/link/virtual-link-types/gre-gretap.schema.js.map +1 -0
  126. package/lib/commands/link/virtual-link-types/hsr.interfaces.d.ts +20 -0
  127. package/lib/commands/link/virtual-link-types/hsr.interfaces.js +3 -0
  128. package/lib/commands/link/virtual-link-types/hsr.interfaces.js.map +1 -0
  129. package/lib/commands/link/virtual-link-types/hsr.schema.d.ts +3 -0
  130. package/lib/commands/link/virtual-link-types/hsr.schema.js +36 -0
  131. package/lib/commands/link/virtual-link-types/hsr.schema.js.map +1 -0
  132. package/lib/commands/link/virtual-link-types/ip6gre-ip6gretap.interfaces.d.ts +80 -0
  133. package/lib/commands/link/virtual-link-types/ip6gre-ip6gretap.interfaces.js +3 -0
  134. package/lib/commands/link/virtual-link-types/ip6gre-ip6gretap.interfaces.js.map +1 -0
  135. package/lib/commands/link/virtual-link-types/ip6gre-ip6gretap.schema.d.ts +3 -0
  136. package/lib/commands/link/virtual-link-types/ip6gre-ip6gretap.schema.js +170 -0
  137. package/lib/commands/link/virtual-link-types/ip6gre-ip6gretap.schema.js.map +1 -0
  138. package/lib/commands/link/virtual-link-types/ipip-sit.interfaces.d.ts +51 -0
  139. package/lib/commands/link/virtual-link-types/ipip-sit.interfaces.js +3 -0
  140. package/lib/commands/link/virtual-link-types/ipip-sit.interfaces.js.map +1 -0
  141. package/lib/commands/link/virtual-link-types/ipip-sit.schema.d.ts +3 -0
  142. package/lib/commands/link/virtual-link-types/ipip-sit.schema.js +74 -0
  143. package/lib/commands/link/virtual-link-types/ipip-sit.schema.js.map +1 -0
  144. package/lib/commands/link/virtual-link-types/ipoib.interfaces.d.ts +11 -0
  145. package/lib/commands/link/virtual-link-types/ipoib.interfaces.js +3 -0
  146. package/lib/commands/link/virtual-link-types/ipoib.interfaces.js.map +1 -0
  147. package/lib/commands/link/virtual-link-types/ipoib.schema.d.ts +3 -0
  148. package/lib/commands/link/virtual-link-types/ipoib.schema.js +22 -0
  149. package/lib/commands/link/virtual-link-types/ipoib.schema.js.map +1 -0
  150. package/lib/commands/link/virtual-link-types/macsec.interfaces.d.ts +44 -0
  151. package/lib/commands/link/virtual-link-types/macsec.interfaces.js +3 -0
  152. package/lib/commands/link/virtual-link-types/macsec.interfaces.js.map +1 -0
  153. package/lib/commands/link/virtual-link-types/macsec.schema.d.ts +3 -0
  154. package/lib/commands/link/virtual-link-types/macsec.schema.js +87 -0
  155. package/lib/commands/link/virtual-link-types/macsec.schema.js.map +1 -0
  156. package/lib/commands/link/virtual-link-types/macvlan-macvtap.interfaces.d.ts +59 -0
  157. package/lib/commands/link/virtual-link-types/macvlan-macvtap.interfaces.js +3 -0
  158. package/lib/commands/link/virtual-link-types/macvlan-macvtap.interfaces.js.map +1 -0
  159. package/lib/commands/link/virtual-link-types/macvlan-macvtap.schema.d.ts +4 -0
  160. package/lib/commands/link/virtual-link-types/macvlan-macvtap.schema.js +60 -0
  161. package/lib/commands/link/virtual-link-types/macvlan-macvtap.schema.js.map +1 -0
  162. package/lib/commands/link/virtual-link-types/rmnet.interfaces.d.ts +8 -0
  163. package/lib/commands/link/virtual-link-types/rmnet.interfaces.js +3 -0
  164. package/lib/commands/link/virtual-link-types/rmnet.interfaces.js.map +1 -0
  165. package/lib/commands/link/virtual-link-types/rmnet.schema.d.ts +3 -0
  166. package/lib/commands/link/virtual-link-types/rmnet.schema.js +16 -0
  167. package/lib/commands/link/virtual-link-types/rmnet.schema.js.map +1 -0
  168. package/lib/commands/link/virtual-link-types/veth-vxcan.interfaces.d.ts +8 -0
  169. package/lib/commands/link/virtual-link-types/veth-vxcan.interfaces.js +3 -0
  170. package/lib/commands/link/virtual-link-types/veth-vxcan.interfaces.js.map +1 -0
  171. package/lib/commands/link/virtual-link-types/veth-vxcan.schema.d.ts +3 -0
  172. package/lib/commands/link/virtual-link-types/veth-vxcan.schema.js +16 -0
  173. package/lib/commands/link/virtual-link-types/veth-vxcan.schema.js.map +1 -0
  174. package/lib/commands/link/virtual-link-types/vlan.interfaces.d.ts +36 -0
  175. package/lib/commands/link/virtual-link-types/vlan.interfaces.js +3 -0
  176. package/lib/commands/link/virtual-link-types/vlan.interfaces.js.map +1 -0
  177. package/lib/commands/link/virtual-link-types/vlan.schema.d.ts +3 -0
  178. package/lib/commands/link/virtual-link-types/vlan.schema.js +65 -0
  179. package/lib/commands/link/virtual-link-types/vlan.schema.js.map +1 -0
  180. package/lib/commands/link/virtual-link-types/vrf.interfaces.d.ts +8 -0
  181. package/lib/commands/link/virtual-link-types/vrf.interfaces.js +3 -0
  182. package/lib/commands/link/virtual-link-types/vrf.interfaces.js.map +1 -0
  183. package/lib/commands/link/virtual-link-types/vrf.schema.d.ts +3 -0
  184. package/lib/commands/link/virtual-link-types/vrf.schema.js +16 -0
  185. package/lib/commands/link/virtual-link-types/vrf.schema.js.map +1 -0
  186. package/lib/commands/link/virtual-link-types/vxlan.interfaces.d.ts +127 -0
  187. package/lib/commands/link/virtual-link-types/vxlan.interfaces.js +3 -0
  188. package/lib/commands/link/virtual-link-types/vxlan.interfaces.js.map +1 -0
  189. package/lib/commands/link/virtual-link-types/vxlan.schema.d.ts +3 -0
  190. package/lib/commands/link/virtual-link-types/vxlan.schema.js +176 -0
  191. package/lib/commands/link/virtual-link-types/vxlan.schema.js.map +1 -0
  192. package/lib/commands/link/virtual-link-types/xfrm.interfaces.d.ts +16 -0
  193. package/lib/commands/link/virtual-link-types/xfrm.interfaces.js +3 -0
  194. package/lib/commands/link/virtual-link-types/xfrm.interfaces.js.map +1 -0
  195. package/lib/commands/link/virtual-link-types/xfrm.schema.d.ts +3 -0
  196. package/lib/commands/link/virtual-link-types/xfrm.schema.js +21 -0
  197. package/lib/commands/link/virtual-link-types/xfrm.schema.js.map +1 -0
  198. package/lib/commands/link/xdp-options/object.interfaces.d.ts +36 -0
  199. package/lib/commands/link/xdp-options/object.interfaces.js +3 -0
  200. package/lib/commands/link/xdp-options/object.interfaces.js.map +1 -0
  201. package/lib/commands/link/xdp-options/object.schema.d.ts +3 -0
  202. package/lib/commands/link/xdp-options/object.schema.js +25 -0
  203. package/lib/commands/link/xdp-options/object.schema.js.map +1 -0
  204. package/lib/commands/link/xdp-options/off.interfaces.d.ts +8 -0
  205. package/lib/commands/link/xdp-options/off.interfaces.js +3 -0
  206. package/lib/commands/link/xdp-options/off.interfaces.js.map +1 -0
  207. package/lib/commands/link/xdp-options/off.schema.d.ts +3 -0
  208. package/lib/commands/link/xdp-options/off.schema.js +15 -0
  209. package/lib/commands/link/xdp-options/off.schema.js.map +1 -0
  210. package/lib/commands/link/xdp-options/pinned.interfaces.d.ts +13 -0
  211. package/lib/commands/link/xdp-options/pinned.interfaces.js +3 -0
  212. package/lib/commands/link/xdp-options/pinned.interfaces.js.map +1 -0
  213. package/lib/commands/link/xdp-options/pinned.schema.d.ts +3 -0
  214. package/lib/commands/link/xdp-options/pinned.schema.js +15 -0
  215. package/lib/commands/link/xdp-options/pinned.schema.js.map +1 -0
  216. package/lib/commands/link.constants.d.ts +425 -0
  217. package/lib/commands/link.constants.js +366 -0
  218. package/lib/commands/link.constants.js.map +1 -0
  219. package/lib/commands/link.d.ts +113 -0
  220. package/lib/commands/link.js +159 -0
  221. package/lib/commands/link.js.map +1 -0
  222. package/lib/commands/maddress/add.interfaces.d.ts +10 -0
  223. package/lib/commands/maddress/add.interfaces.js +3 -0
  224. package/lib/commands/maddress/add.interfaces.js.map +1 -0
  225. package/lib/commands/maddress/add.schema.d.ts +3 -0
  226. package/lib/commands/maddress/add.schema.js +22 -0
  227. package/lib/commands/maddress/add.schema.js.map +1 -0
  228. package/lib/commands/maddress/show.interfaces.d.ts +25 -0
  229. package/lib/commands/maddress/show.interfaces.js +3 -0
  230. package/lib/commands/maddress/show.interfaces.js.map +1 -0
  231. package/lib/commands/maddress/show.schema.d.ts +3 -0
  232. package/lib/commands/maddress/show.schema.js +17 -0
  233. package/lib/commands/maddress/show.schema.js.map +1 -0
  234. package/lib/commands/maddress.d.ts +82 -0
  235. package/lib/commands/maddress.js +121 -0
  236. package/lib/commands/maddress.js.map +1 -0
  237. package/lib/commands/monitor/monitor.interfaces.d.ts +24 -0
  238. package/lib/commands/monitor/monitor.interfaces.js +3 -0
  239. package/lib/commands/monitor/monitor.interfaces.js.map +1 -0
  240. package/lib/commands/monitor/monitor.schema.d.ts +3 -0
  241. package/lib/commands/monitor/monitor.schema.js +33 -0
  242. package/lib/commands/monitor/monitor.schema.js.map +1 -0
  243. package/lib/commands/monitor.constants.d.ts +17 -0
  244. package/lib/commands/monitor.constants.js +22 -0
  245. package/lib/commands/monitor.constants.js.map +1 -0
  246. package/lib/commands/monitor.d.ts +52 -0
  247. package/lib/commands/monitor.js +75 -0
  248. package/lib/commands/monitor.js.map +1 -0
  249. package/lib/commands/mroute/show.interfaces.d.ts +26 -0
  250. package/lib/commands/mroute/show.interfaces.js +3 -0
  251. package/lib/commands/mroute/show.interfaces.js.map +1 -0
  252. package/lib/commands/mroute/show.schema.d.ts +3 -0
  253. package/lib/commands/mroute/show.schema.js +44 -0
  254. package/lib/commands/mroute/show.schema.js.map +1 -0
  255. package/lib/commands/mroute.d.ts +29 -0
  256. package/lib/commands/mroute.js +53 -0
  257. package/lib/commands/mroute.js.map +1 -0
  258. package/lib/commands/neighbour/add.interfaces.d.ts +34 -0
  259. package/lib/commands/neighbour/add.interfaces.js +3 -0
  260. package/lib/commands/neighbour/add.interfaces.js.map +1 -0
  261. package/lib/commands/neighbour/add.schema.d.ts +3 -0
  262. package/lib/commands/neighbour/add.schema.js +49 -0
  263. package/lib/commands/neighbour/add.schema.js.map +1 -0
  264. package/lib/commands/neighbour/del.interfaces.d.ts +23 -0
  265. package/lib/commands/neighbour/del.interfaces.js +3 -0
  266. package/lib/commands/neighbour/del.interfaces.js.map +1 -0
  267. package/lib/commands/neighbour/del.schema.d.ts +3 -0
  268. package/lib/commands/neighbour/del.schema.js +37 -0
  269. package/lib/commands/neighbour/del.schema.js.map +1 -0
  270. package/lib/commands/neighbour/get.interfaces.d.ts +12 -0
  271. package/lib/commands/neighbour/get.interfaces.js +3 -0
  272. package/lib/commands/neighbour/get.interfaces.js.map +1 -0
  273. package/lib/commands/neighbour/get.schema.d.ts +3 -0
  274. package/lib/commands/neighbour/get.schema.js +26 -0
  275. package/lib/commands/neighbour/get.schema.js.map +1 -0
  276. package/lib/commands/neighbour/show.interfaces.d.ts +37 -0
  277. package/lib/commands/neighbour/show.interfaces.js +3 -0
  278. package/lib/commands/neighbour/show.interfaces.js.map +1 -0
  279. package/lib/commands/neighbour/show.schema.d.ts +3 -0
  280. package/lib/commands/neighbour/show.schema.js +39 -0
  281. package/lib/commands/neighbour/show.schema.js.map +1 -0
  282. package/lib/commands/neighbour.constants.d.ts +34 -0
  283. package/lib/commands/neighbour.constants.js +39 -0
  284. package/lib/commands/neighbour.constants.js.map +1 -0
  285. package/lib/commands/neighbour.d.ts +169 -0
  286. package/lib/commands/neighbour.js +238 -0
  287. package/lib/commands/neighbour.js.map +1 -0
  288. package/lib/commands/ntable/change.interfaces.d.ts +42 -0
  289. package/lib/commands/ntable/change.interfaces.js +3 -0
  290. package/lib/commands/ntable/change.interfaces.js.map +1 -0
  291. package/lib/commands/ntable/change.schema.d.ts +3 -0
  292. package/lib/commands/ntable/change.schema.js +101 -0
  293. package/lib/commands/ntable/change.schema.js.map +1 -0
  294. package/lib/commands/ntable/show.interfaces.d.ts +59 -0
  295. package/lib/commands/ntable/show.interfaces.js +3 -0
  296. package/lib/commands/ntable/show.interfaces.js.map +1 -0
  297. package/lib/commands/ntable/show.schema.d.ts +3 -0
  298. package/lib/commands/ntable/show.schema.js +22 -0
  299. package/lib/commands/ntable/show.schema.js.map +1 -0
  300. package/lib/commands/ntable.d.ts +43 -0
  301. package/lib/commands/ntable.js +75 -0
  302. package/lib/commands/ntable.js.map +1 -0
  303. package/lib/commands/route/add.interfaces.d.ts +261 -0
  304. package/lib/commands/route/add.interfaces.js +4 -0
  305. package/lib/commands/route/add.interfaces.js.map +1 -0
  306. package/lib/commands/route/add.schema.d.ts +3 -0
  307. package/lib/commands/route/add.schema.js +366 -0
  308. package/lib/commands/route/add.schema.js.map +1 -0
  309. package/lib/commands/route/encap-types/bpf.interfaces.d.ts +14 -0
  310. package/lib/commands/route/encap-types/bpf.interfaces.js +3 -0
  311. package/lib/commands/route/encap-types/bpf.interfaces.js.map +1 -0
  312. package/lib/commands/route/encap-types/bpf.schema.d.ts +3 -0
  313. package/lib/commands/route/encap-types/bpf.schema.js +31 -0
  314. package/lib/commands/route/encap-types/bpf.schema.js.map +1 -0
  315. package/lib/commands/route/encap-types/ioam6.interfaces.d.ts +19 -0
  316. package/lib/commands/route/encap-types/ioam6.interfaces.js +3 -0
  317. package/lib/commands/route/encap-types/ioam6.interfaces.js.map +1 -0
  318. package/lib/commands/route/encap-types/ioam6.schema.d.ts +3 -0
  319. package/lib/commands/route/encap-types/ioam6.schema.js +30 -0
  320. package/lib/commands/route/encap-types/ioam6.schema.js.map +1 -0
  321. package/lib/commands/route/encap-types/ip.interfaces.d.ts +17 -0
  322. package/lib/commands/route/encap-types/ip.interfaces.js +3 -0
  323. package/lib/commands/route/encap-types/ip.interfaces.js.map +1 -0
  324. package/lib/commands/route/encap-types/ip.schema.d.ts +3 -0
  325. package/lib/commands/route/encap-types/ip.schema.js +48 -0
  326. package/lib/commands/route/encap-types/ip.schema.js.map +1 -0
  327. package/lib/commands/route/encap-types/mpls.interfaces.d.ts +11 -0
  328. package/lib/commands/route/encap-types/mpls.interfaces.js +3 -0
  329. package/lib/commands/route/encap-types/mpls.interfaces.js.map +1 -0
  330. package/lib/commands/route/encap-types/mpls.schema.d.ts +3 -0
  331. package/lib/commands/route/encap-types/mpls.schema.js +46 -0
  332. package/lib/commands/route/encap-types/mpls.schema.js.map +1 -0
  333. package/lib/commands/route/encap-types/seg6.interfaces.d.ts +20 -0
  334. package/lib/commands/route/encap-types/seg6.interfaces.js +3 -0
  335. package/lib/commands/route/encap-types/seg6.interfaces.js.map +1 -0
  336. package/lib/commands/route/encap-types/seg6.schema.d.ts +3 -0
  337. package/lib/commands/route/encap-types/seg6.schema.js +38 -0
  338. package/lib/commands/route/encap-types/seg6.schema.js.map +1 -0
  339. package/lib/commands/route/encap-types/seg6local.interfaces.d.ts +76 -0
  340. package/lib/commands/route/encap-types/seg6local.interfaces.js +3 -0
  341. package/lib/commands/route/encap-types/seg6local.interfaces.js.map +1 -0
  342. package/lib/commands/route/encap-types/seg6local.schema.d.ts +6 -0
  343. package/lib/commands/route/encap-types/seg6local.schema.js +181 -0
  344. package/lib/commands/route/encap-types/seg6local.schema.js.map +1 -0
  345. package/lib/commands/route/get.interfaces.d.ts +37 -0
  346. package/lib/commands/route/get.interfaces.js +3 -0
  347. package/lib/commands/route/get.interfaces.js.map +1 -0
  348. package/lib/commands/route/get.schema.d.ts +3 -0
  349. package/lib/commands/route/get.schema.js +86 -0
  350. package/lib/commands/route/get.schema.js.map +1 -0
  351. package/lib/commands/route/show.constants.d.ts +105 -0
  352. package/lib/commands/route/show.constants.js +112 -0
  353. package/lib/commands/route/show.constants.js.map +1 -0
  354. package/lib/commands/route/show.interfaces.d.ts +96 -0
  355. package/lib/commands/route/show.interfaces.js +3 -0
  356. package/lib/commands/route/show.interfaces.js.map +1 -0
  357. package/lib/commands/route/show.schema.d.ts +3 -0
  358. package/lib/commands/route/show.schema.js +161 -0
  359. package/lib/commands/route/show.schema.js.map +1 -0
  360. package/lib/commands/route.constants.d.ts +129 -0
  361. package/lib/commands/route.constants.js +136 -0
  362. package/lib/commands/route.constants.js.map +1 -0
  363. package/lib/commands/route.d.ts +268 -0
  364. package/lib/commands/route.js +362 -0
  365. package/lib/commands/route.js.map +1 -0
  366. package/lib/commands/rule/add.interfaces.d.ts +41 -0
  367. package/lib/commands/rule/add.interfaces.js +3 -0
  368. package/lib/commands/rule/add.interfaces.js.map +1 -0
  369. package/lib/commands/rule/add.schema.d.ts +3 -0
  370. package/lib/commands/rule/add.schema.js +182 -0
  371. package/lib/commands/rule/add.schema.js.map +1 -0
  372. package/lib/commands/rule/show.interfaces.d.ts +86 -0
  373. package/lib/commands/rule/show.interfaces.js +3 -0
  374. package/lib/commands/rule/show.interfaces.js.map +1 -0
  375. package/lib/commands/rule/show.schema.d.ts +3 -0
  376. package/lib/commands/rule/show.schema.js +157 -0
  377. package/lib/commands/rule/show.schema.js.map +1 -0
  378. package/lib/commands/rule.constants.d.ts +34 -0
  379. package/lib/commands/rule.constants.js +40 -0
  380. package/lib/commands/rule.constants.js.map +1 -0
  381. package/lib/commands/rule.d.ts +143 -0
  382. package/lib/commands/rule.js +205 -0
  383. package/lib/commands/rule.js.map +1 -0
  384. package/lib/commands/tunnel/6rd.interfaces.d.ts +17 -0
  385. package/lib/commands/tunnel/6rd.interfaces.js +3 -0
  386. package/lib/commands/tunnel/6rd.interfaces.js.map +1 -0
  387. package/lib/commands/tunnel/6rd.schema.d.ts +3 -0
  388. package/lib/commands/tunnel/6rd.schema.js +33 -0
  389. package/lib/commands/tunnel/6rd.schema.js.map +1 -0
  390. package/lib/commands/tunnel/add.interfaces.d.ts +124 -0
  391. package/lib/commands/tunnel/add.interfaces.js +3 -0
  392. package/lib/commands/tunnel/add.interfaces.js.map +1 -0
  393. package/lib/commands/tunnel/add.schema.d.ts +3 -0
  394. package/lib/commands/tunnel/add.schema.js +213 -0
  395. package/lib/commands/tunnel/add.schema.js.map +1 -0
  396. package/lib/commands/tunnel/prl.interfaces.d.ts +17 -0
  397. package/lib/commands/tunnel/prl.interfaces.js +3 -0
  398. package/lib/commands/tunnel/prl.interfaces.js.map +1 -0
  399. package/lib/commands/tunnel/prl.schema.d.ts +3 -0
  400. package/lib/commands/tunnel/prl.schema.js +34 -0
  401. package/lib/commands/tunnel/prl.schema.js.map +1 -0
  402. package/lib/commands/tunnel.constants.d.ts +23 -0
  403. package/lib/commands/tunnel.constants.js +24 -0
  404. package/lib/commands/tunnel.constants.js.map +1 -0
  405. package/lib/commands/tunnel.d.ts +151 -0
  406. package/lib/commands/tunnel.js +210 -0
  407. package/lib/commands/tunnel.js.map +1 -0
  408. package/lib/commands/tuntap/add.interfaces.d.ts +25 -0
  409. package/lib/commands/tuntap/add.interfaces.js +3 -0
  410. package/lib/commands/tuntap/add.interfaces.js.map +1 -0
  411. package/lib/commands/tuntap/add.schema.d.ts +3 -0
  412. package/lib/commands/tuntap/add.schema.js +77 -0
  413. package/lib/commands/tuntap/add.schema.js.map +1 -0
  414. package/lib/commands/tuntap/show.interfaces.d.ts +17 -0
  415. package/lib/commands/tuntap/show.interfaces.js +3 -0
  416. package/lib/commands/tuntap/show.interfaces.js.map +1 -0
  417. package/lib/commands/tuntap/show.schema.d.ts +3 -0
  418. package/lib/commands/tuntap/show.schema.js +80 -0
  419. package/lib/commands/tuntap/show.schema.js.map +1 -0
  420. package/lib/commands/tuntap.constants.d.ts +8 -0
  421. package/lib/commands/tuntap.constants.js +13 -0
  422. package/lib/commands/tuntap.constants.js.map +1 -0
  423. package/lib/commands/tuntap.d.ts +83 -0
  424. package/lib/commands/tuntap.js +121 -0
  425. package/lib/commands/tuntap.js.map +1 -0
  426. package/lib/common/classes/command-with-filepath.d.ts +16 -0
  427. package/lib/common/classes/command-with-filepath.js +53 -0
  428. package/lib/common/classes/command-with-filepath.js.map +1 -0
  429. package/lib/common/classes/command-with-redirect-from-filepath-and-returned-data.d.ts +15 -0
  430. package/lib/common/classes/command-with-redirect-from-filepath-and-returned-data.js +45 -0
  431. package/lib/common/classes/command-with-redirect-from-filepath-and-returned-data.js.map +1 -0
  432. package/lib/common/classes/command-with-redirect-from-filepath.d.ts +16 -0
  433. package/lib/common/classes/command-with-redirect-from-filepath.js +53 -0
  434. package/lib/common/classes/command-with-redirect-from-filepath.js.map +1 -0
  435. package/lib/common/classes/command-with-redirect-to-filepath.d.ts +16 -0
  436. package/lib/common/classes/command-with-redirect-to-filepath.js +53 -0
  437. package/lib/common/classes/command-with-redirect-to-filepath.js.map +1 -0
  438. package/lib/common/classes/command-with-returned-data.d.ts +15 -0
  439. package/lib/common/classes/command-with-returned-data.js +45 -0
  440. package/lib/common/classes/command-with-returned-data.js.map +1 -0
  441. package/lib/common/classes/command-with-stdin.d.ts +16 -0
  442. package/lib/common/classes/command-with-stdin.js +53 -0
  443. package/lib/common/classes/command-with-stdin.js.map +1 -0
  444. package/lib/common/classes/command.d.ts +26 -0
  445. package/lib/common/classes/command.js +144 -0
  446. package/lib/common/classes/command.js.map +1 -0
  447. package/lib/common/classes/monitor-command.d.ts +30 -0
  448. package/lib/common/classes/monitor-command.js +108 -0
  449. package/lib/common/classes/monitor-command.js.map +1 -0
  450. package/lib/common/constants/attribute-values.d.ts +33 -0
  451. package/lib/common/constants/attribute-values.js +41 -0
  452. package/lib/common/constants/attribute-values.js.map +1 -0
  453. package/lib/common/constants/regexes.d.ts +34 -0
  454. package/lib/common/constants/regexes.js +38 -0
  455. package/lib/common/constants/regexes.js.map +1 -0
  456. package/lib/common/constants/schemas.d.ts +52 -0
  457. package/lib/common/constants/schemas.js +296 -0
  458. package/lib/common/constants/schemas.js.map +1 -0
  459. package/lib/common/constants/tests.d.ts +4 -0
  460. package/lib/common/constants/tests.js +9 -0
  461. package/lib/common/constants/tests.js.map +1 -0
  462. package/lib/common/errors/command.d.ts +11 -0
  463. package/lib/common/errors/command.js +20 -0
  464. package/lib/common/errors/command.js.map +1 -0
  465. package/lib/common/errors/parameters.d.ts +16 -0
  466. package/lib/common/errors/parameters.js +21 -0
  467. package/lib/common/errors/parameters.js.map +1 -0
  468. package/lib/common/interfaces/common.d.ts +115 -0
  469. package/lib/common/interfaces/common.js +3 -0
  470. package/lib/common/interfaces/common.js.map +1 -0
  471. package/lib/common/interfaces/monitor.d.ts +17 -0
  472. package/lib/common/interfaces/monitor.js +3 -0
  473. package/lib/common/interfaces/monitor.js.map +1 -0
  474. package/lib/common/interfaces/tests.d.ts +33 -0
  475. package/lib/common/interfaces/tests.js +3 -0
  476. package/lib/common/interfaces/tests.js.map +1 -0
  477. package/lib/common/misc.d.ts +4 -0
  478. package/lib/common/misc.js +18 -0
  479. package/lib/common/misc.js.map +1 -0
  480. package/lib/common/parse-output.d.ts +14 -0
  481. package/lib/common/parse-output.js +51 -0
  482. package/lib/common/parse-output.js.map +1 -0
  483. package/lib/common/validator.d.ts +3 -0
  484. package/lib/common/validator.js +45 -0
  485. package/lib/common/validator.js.map +1 -0
  486. package/lib/index.d.ts +400 -0
  487. package/lib/index.js +189 -0
  488. package/lib/index.js.map +1 -0
  489. package/lib/utils/index.d.ts +33 -0
  490. package/lib/utils/index.js +40 -0
  491. package/lib/utils/index.js.map +1 -0
  492. package/lib/utils/ip-forwarding.constants.d.ts +21 -0
  493. package/lib/utils/ip-forwarding.constants.js +27 -0
  494. package/lib/utils/ip-forwarding.constants.js.map +1 -0
  495. package/lib/utils/ip-forwarding.d.ts +103 -0
  496. package/lib/utils/ip-forwarding.js +149 -0
  497. package/lib/utils/ip-forwarding.js.map +1 -0
  498. package/lib/utils/routing-tables.constants.d.ts +7 -0
  499. package/lib/utils/routing-tables.constants.js +11 -0
  500. package/lib/utils/routing-tables.constants.js.map +1 -0
  501. package/lib/utils/routing-tables.d.ts +134 -0
  502. package/lib/utils/routing-tables.interfaces.d.ts +16 -0
  503. package/lib/utils/routing-tables.interfaces.js +3 -0
  504. package/lib/utils/routing-tables.interfaces.js.map +1 -0
  505. package/lib/utils/routing-tables.js +243 -0
  506. package/lib/utils/routing-tables.js.map +1 -0
  507. package/lib/utils/routing-tables.schemas.d.ts +3 -0
  508. package/lib/utils/routing-tables.schemas.js +22 -0
  509. package/lib/utils/routing-tables.schemas.js.map +1 -0
  510. package/package.json +92 -0
@@ -0,0 +1,116 @@
1
+ import { ExtendedLinkTypes } from '../link.constants';
2
+ /**
3
+ * Link show common options.
4
+ *
5
+ * @category Interfaces
6
+ * @internal
7
+ */
8
+ export interface LinkShowCommonOptions {
9
+ /** Only display running interfaces. */
10
+ up?: true;
11
+ /** Specifies the master device which enslaves devices to show. */
12
+ master?: string;
13
+ /**
14
+ * Specifies the type of devices to show.
15
+ *
16
+ * Note that the type name is not checked against the list of supported types - instead it is
17
+ * sent as-is to the kernel.
18
+ *
19
+ * Later it is used to filter the returned interface list by comparing it with the relevant
20
+ * attribute in case the kernel didn't filter already.
21
+ *
22
+ * Therefore any string is accepted, but may lead to empty output.
23
+ */
24
+ type?: ExtendedLinkTypes;
25
+ /** Specifies the VRF which enslaves devices to show. */
26
+ vrf?: string;
27
+ }
28
+ /**
29
+ * Link show group options.
30
+ *
31
+ * @category Interfaces
32
+ * @internal
33
+ */
34
+ export interface LinkShowGroupOptions extends LinkShowCommonOptions {
35
+ /** Specifies what group of devices to show. */
36
+ group?: number;
37
+ }
38
+ /**
39
+ * Link show dev options.
40
+ *
41
+ * @category Interfaces
42
+ * @internal
43
+ */
44
+ export interface LinkShowDevOptions extends LinkShowCommonOptions {
45
+ /** Specifies the network device to show. */
46
+ dev?: string;
47
+ }
48
+ /**
49
+ * Link show options.
50
+ * @category Interfaces
51
+ */
52
+ export type LinkShowOptions = LinkShowGroupOptions | LinkShowDevOptions;
53
+ /**
54
+ * Link Info.
55
+ * TODO: Need help to build this undocumented & comprehensive interface.
56
+ *
57
+ * @category Interfaces
58
+ */
59
+ export interface LinkInfo {
60
+ ifindex: number;
61
+ ifname: string;
62
+ flags: string[];
63
+ mtu: number;
64
+ qdisc: string;
65
+ operstate: string;
66
+ linkmode: string;
67
+ link_type: string;
68
+ group: string;
69
+ address: string;
70
+ broadcast: string;
71
+ txqlen: number;
72
+ promiscuity: number;
73
+ min_mtu: number;
74
+ max_mtu: number;
75
+ num_tx_queues: number;
76
+ num_rx_queues: number;
77
+ gso_max_size: number;
78
+ gso_max_segs: number;
79
+ link_netnsid?: number;
80
+ inet6_addr_gen_mode?: string;
81
+ link?: string;
82
+ linkinfo?: {
83
+ info_kind: string;
84
+ info_data: any;
85
+ };
86
+ parentbus?: string;
87
+ parentdev?: string;
88
+ stats: {
89
+ rx: {
90
+ bytes: number;
91
+ packets: number;
92
+ errors: number;
93
+ dropped: number;
94
+ over_errors: number;
95
+ multicast: number;
96
+ compressed?: number;
97
+ crc_errors?: number;
98
+ frame_errors?: number;
99
+ fifo_errors?: number;
100
+ missed_errors?: number;
101
+ };
102
+ tx: {
103
+ bytes: number;
104
+ packets: number;
105
+ errors: number;
106
+ dropped: number;
107
+ carrier_errors: number;
108
+ collisions: number;
109
+ aborted_errors?: number;
110
+ fifo_errors?: number;
111
+ heartbeat_errors?: number;
112
+ window_errors?: number;
113
+ compressed?: number;
114
+ };
115
+ };
116
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=show.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"show.interfaces.js","sourceRoot":"","sources":["../../../src/commands/link/show.interfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import { JSONSchemaType } from 'ajv';
2
+ import { LinkShowOptions } from './show.interfaces';
3
+ export declare const LinkShowSchema: JSONSchemaType<LinkShowOptions>;
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LinkShowSchema = void 0;
4
+ const link_constants_1 = require("../link.constants");
5
+ const schemas_1 = require("../../common/constants/schemas");
6
+ exports.LinkShowSchema = {
7
+ $id: schemas_1.SchemaIds.LinkShow,
8
+ type: 'object',
9
+ required: [],
10
+ properties: {
11
+ dev: {
12
+ type: 'string',
13
+ minLength: 1,
14
+ nullable: true
15
+ },
16
+ group: {
17
+ type: 'integer',
18
+ minimum: 0,
19
+ nullable: true
20
+ },
21
+ up: {
22
+ type: 'boolean',
23
+ enum: [true],
24
+ nullable: true
25
+ },
26
+ master: {
27
+ type: 'string',
28
+ minLength: 1,
29
+ nullable: true
30
+ },
31
+ type: {
32
+ type: 'string',
33
+ enum: Object.values(link_constants_1.ExtendedLinkTypes),
34
+ nullable: true
35
+ },
36
+ vrf: {
37
+ type: 'string',
38
+ minLength: 1,
39
+ nullable: true
40
+ }
41
+ }
42
+ };
43
+ //# sourceMappingURL=show.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"show.schema.js","sourceRoot":"","sources":["../../../src/commands/link/show.schema.ts"],"names":[],"mappings":";;;AAEA,sDAAsD;AACtD,4DAA2D;AAG9C,QAAA,cAAc,GAAoC;IAC7D,GAAG,EAAS,mBAAS,CAAC,QAAQ;IAC9B,IAAI,EAAQ,QAAQ;IACpB,QAAQ,EAAI,EAAE;IACd,UAAU,EAAE;QACV,GAAG,EAAK;YACN,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAG,IAAI;SAChB;QACD,KAAK,EAAG;YACN,IAAI,EAAM,SAAS;YACnB,OAAO,EAAG,CAAC;YACX,QAAQ,EAAE,IAAI;SACf;QACD,EAAE,EAAM;YACN,IAAI,EAAM,SAAS;YACnB,IAAI,EAAM,CAAC,IAAI,CAAC;YAChB,QAAQ,EAAE,IAAI;SACf;QACD,MAAM,EAAE;YACN,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAG,IAAI;SAChB;QACD,IAAI,EAAI;YACN,IAAI,EAAM,QAAQ;YAClB,IAAI,EAAM,MAAM,CAAC,MAAM,CAAC,kCAAiB,CAAwB;YACjE,QAAQ,EAAE,IAAI;SACf;QACD,GAAG,EAAK;YACN,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAG,IAAI;SAChB;KACF;CACF,CAAC"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Add link bare UDP type arguments.
3
+ * @category Interfaces
4
+ */
5
+ export interface AddLinkBareudpTypeArgs {
6
+ /** Specifies the destination port for the UDP tunnel. */
7
+ dstport: number;
8
+ /**
9
+ * Specifies the `ethertype` of the L3 protocol being tunnelled.
10
+ * `ethertype` can be given as plain Ethernet protocol number or using the protocol name
11
+ * ("ipv4", "ipv6", "mpls_uc", etc.).
12
+ *
13
+ * TODO: Add an enum with all known protocols numbers and names?
14
+ * @see https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
15
+ */
16
+ ethertype: string | number;
17
+ /** Selects the lowest value of the UDP tunnel source port range. */
18
+ srcportmin?: number;
19
+ /**
20
+ * Activates support for protocols similar to the one specified by {@link ethertype}.
21
+ * When {@link ethertype} is "mpls_uc" (that is, unicast MPLS), this allows the tunnel
22
+ * to also handle multicast MPLS.
23
+ *
24
+ * When {@link ethertype} is "ipv4", this allows the tunnel to also handle IPv6.
25
+ * This option is disabled by default.
26
+ */
27
+ multiproto?: boolean;
28
+ /** @see {@link multiproto} */
29
+ nomultiproto?: boolean;
30
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=bareup.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bareup.interfaces.js","sourceRoot":"","sources":["../../../../src/commands/link/virtual-link-types/bareup.interfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import { JSONSchemaType } from 'ajv';
2
+ import { AddLinkBareudpTypeArgs } from './bareup.interfaces';
3
+ export declare const AddLinkBareudpArgsSchema: JSONSchemaType<AddLinkBareudpTypeArgs>;
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AddLinkBareudpArgsSchema = void 0;
4
+ exports.AddLinkBareudpArgsSchema = {
5
+ type: 'object',
6
+ required: ['dstport', 'ethertype'],
7
+ additionalProperties: false,
8
+ properties: {
9
+ dstport: {
10
+ type: 'integer',
11
+ minimum: 1,
12
+ maximum: 65535
13
+ },
14
+ ethertype: {
15
+ type: ['string', 'integer'],
16
+ oneOf: [
17
+ {
18
+ type: 'string'
19
+ },
20
+ {
21
+ type: 'integer',
22
+ minimum: 0,
23
+ maximum: 255
24
+ }
25
+ ]
26
+ },
27
+ srcportmin: {
28
+ type: 'integer',
29
+ nullable: true,
30
+ minimum: 1,
31
+ maximum: 65535
32
+ },
33
+ multiproto: {
34
+ type: 'boolean',
35
+ nullable: true
36
+ },
37
+ nomultiproto: {
38
+ type: 'boolean',
39
+ nullable: true
40
+ }
41
+ }
42
+ };
43
+ //# sourceMappingURL=bareup.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bareup.schema.js","sourceRoot":"","sources":["../../../../src/commands/link/virtual-link-types/bareup.schema.ts"],"names":[],"mappings":";;;AAIa,QAAA,wBAAwB,GAA2C;IAC9E,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC;IAClC,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE;QACV,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,CAAC;YACV,OAAO,EAAE,KAAK;SACf;QACD,SAAS,EAAE;YACT,IAAI,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;YAC3B,KAAK,EAAE;gBACL;oBACE,IAAI,EAAE,QAAQ;iBACf;gBACD;oBACE,IAAI,EAAE,SAAS;oBACf,OAAO,EAAE,CAAC;oBACV,OAAO,EAAE,GAAG;iBACb;aACF;SACF;QACD,UAAU,EAAE;YACV,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC;YACV,OAAO,EAAE,KAAK;SACf;QACD,UAAU,EAAE;YACV,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,IAAI;SACf;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,IAAI;SACf;KACF;CACF,CAAC"}
@@ -0,0 +1,140 @@
1
+ import { EnableDisableToggle } from '../../../common/constants/attribute-values';
2
+ import { IgmpVersions, MldVersions, MultiCastRouterOptions, VlanProtocols } from '../../link.constants';
3
+ /**
4
+ * Add link bridge type arguments.
5
+ * @category Interfaces
6
+ */
7
+ export interface AddLinkBridgeTypeArgs {
8
+ /**
9
+ * Configure the bridge's FDB entries ageing time, ie the number of seconds a
10
+ * MAC address will be kept in the FDB after a packet has been received from
11
+ * that address.
12
+ *
13
+ * After this time has passed, entries are cleaned up.
14
+ */
15
+ ageing_time?: number;
16
+ /**
17
+ * Set the group forward mask.
18
+ *
19
+ * This is the bitmask that is applied to decide whether
20
+ * to forward incoming frames destined to link-local addresses, ie addresses of the
21
+ * form 01:80:C2:00:00:0X (defaults to `0`, ie the bridge does not forward any link-local frames).
22
+ */
23
+ group_fwd_mask?: number;
24
+ /**
25
+ * Set the MAC address of the multicast group this bridge uses for STP.
26
+ * The address must be a link-local address in standard Ethernet MAC address format,
27
+ * ie an address of the form 01:80:C2:00:00:0X, with X in [0, 4..f].
28
+ */
29
+ group_address?: string;
30
+ /**
31
+ * Set the forwarding delay in seconds, ie the time spent in LISTENING state (before moving to
32
+ * LEARNING) and in LEARNING state (before moving to FORWARDING).
33
+ *
34
+ * Only relevant if STP is enabled. Valid values are between 2 and 30.
35
+ */
36
+ forward_delay?: number;
37
+ /**
38
+ * Set the time in seconds between hello packets sent by the bridge, when it is a root bridge
39
+ * or a designated bridges.
40
+ *
41
+ * Only relevant if STP is enabled. Valid values are between 1 and 10.
42
+ */
43
+ hello_time?: number;
44
+ /**
45
+ * Set the hello packet timeout, ie the time in seconds until another bridge in the spanning
46
+ * tree is assumed to be dead, after reception of its last hello message.
47
+ *
48
+ * Only relevant if STP is enabled. Valid values are between 6 and 40.
49
+ */
50
+ max_age?: number;
51
+ /** Turn spanning tree protocol on (STP_STATE > 0) or off (STP_STATE == 0) for this bridge. */
52
+ stp_state?: EnableDisableToggle;
53
+ /**
54
+ * Set this bridge's spanning tree priority, used during STP root bridge election.
55
+ *
56
+ * PRIORITY is a 16bit unsigned integer.
57
+ */
58
+ priority?: number;
59
+ /**
60
+ * Turn VLAN filtering on (VLAN_FILTERING > 0) or off (VLAN_FILTERING == 0).
61
+ *
62
+ * When disabled, the bridge will not consider the VLAN tag when handling packets.
63
+ */
64
+ vlan_filtering?: EnableDisableToggle;
65
+ /** Set the protocol used for VLAN filtering. */
66
+ vlan_protocol?: VlanProtocols;
67
+ /** Set the default PVID (native/untagged VLAN ID) for this bridge. */
68
+ vlan_default_pvid?: number;
69
+ /** Enable (VLAN_STATS_ENABLED == 1) or disable (VLAN_STATS_ENABLED == 0) per-VLAN stats accounting. */
70
+ vlan_stats_enabled?: EnableDisableToggle;
71
+ /**
72
+ * Enable (VLAN_STATS_PER_PORT == 1) or disable (VLAN_STATS_PER_PORT == 0) per-VLAN per-port stats accounting.
73
+ *
74
+ * Can be changed only when there are no port VLANs configured.
75
+ */
76
+ vlan_stats_per_port?: EnableDisableToggle;
77
+ /** Turn multicast snooping on (MULTICAST_SNOOPING > 0) or off (MULTICAST_SNOOPING == 0). */
78
+ mcast_snooping?: EnableDisableToggle;
79
+ /**
80
+ * Set bridge's multicast router if IGMP snooping is enabled.
81
+ *
82
+ * MULTICAST_ROUTER is an integer value having the following meaning:
83
+ * 0 - disabled.
84
+ * 1 - automatic (queried).
85
+ * 2 - permanently enabled.
86
+ */
87
+ mcast_router?: MultiCastRouterOptions;
88
+ /**
89
+ * Whether to use the bridge's own IP address as source address for IGMP queries
90
+ * (MCAST_QUERY_USE_IFADDR > 0)
91
+ * or the default of 0.0.0.0 (MCAST_QUERY_USE_IFADDR == 0).
92
+ */
93
+ mcast_query_use_ifaddr?: EnableDisableToggle;
94
+ /**
95
+ * Enable (MULTICAST_QUERIER > 0) or disable (MULTICAST_QUERIER == 0) IGMP querier,
96
+ * ie sending of multicast queries by the bridge (default: disabled).
97
+ */
98
+ mcast_querier?: EnableDisableToggle;
99
+ /**
100
+ * Set multicast database hash elasticity, ie the maximum chain length in the multicast
101
+ * hash table (defaults to 4).
102
+ */
103
+ mcast_hash_elasticity?: number;
104
+ /** Set maximum size of multicast hash table (defaults to 512, value must be a power of 2). */
105
+ mcast_hash_max?: number;
106
+ /**
107
+ * Set multicast last member count, ie the number of queries the bridge will send before stopping
108
+ * forwarding a multicast group after a "leave" message has been received (defaults to 2).
109
+ */
110
+ mcast_last_member_count?: number;
111
+ /** Set the number of IGMP queries to send during startup phase (defaults to 2). */
112
+ mcast_startup_query_count?: number;
113
+ /** Interval between queries to find remaining members of a group, after a "leave" message is received. */
114
+ mcast_last_member_interval?: number;
115
+ /** Delay after which the bridge will leave a group, if no membership reports for this group are received. */
116
+ mcast_membership_interval?: number;
117
+ /**
118
+ * Interval between queries sent by other routers. if no queries are seen after this delay has passed,
119
+ * the bridge will start to send its own queries (as if mcast_querier was enabled).
120
+ */
121
+ mcast_querier_interval?: number;
122
+ /** Interval between queries sent by the bridge after the end of the startup phase. */
123
+ mcast_query_interval?: number;
124
+ /** Set the Max Response Time/Maximum Response Delay for IGMP/MLD queries sent by the bridge. */
125
+ mcast_query_response_interval?: number;
126
+ /** Interval between queries in the startup phase. */
127
+ mcast_startup_query_interval?: number;
128
+ /** Enable (MCAST_STATS_ENABLED > 0) or disable (MCAST_STATS_ENABLED == 0) multicast (IGMP/MLD) stats accounting. */
129
+ mcast_stats_enabled?: EnableDisableToggle;
130
+ /** Set the IGMP version. */
131
+ mcast_igmp_version?: IgmpVersions;
132
+ /** Set the MLD version. */
133
+ mcast_mld_version?: MldVersions;
134
+ /** Enable (NF_CALL_IPTABLES > 0) or disable (NF_CALL_IPTABLES == 0) iptables hooks on the bridge. */
135
+ nf_call_iptables?: EnableDisableToggle;
136
+ /** Enable (NF_CALL_IP6TABLES > 0) or disable (NF_CALL_IP6TABLES == 0) ip6tables hooks on the bridge. */
137
+ nf_call_ip6tables?: EnableDisableToggle;
138
+ /** Enable (NF_CALL_ARPTABLES > 0) or disable (NF_CALL_ARPTABLES == 0) arptables hooks on the bridge. */
139
+ nf_call_arptables?: EnableDisableToggle;
140
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=bridge.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bridge.interfaces.js","sourceRoot":"","sources":["../../../../src/commands/link/virtual-link-types/bridge.interfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import { JSONSchemaType } from 'ajv';
2
+ import { AddLinkBridgeTypeArgs } from './bridge.interfaces';
3
+ export declare const AddLinkBridgeArgsSchema: JSONSchemaType<AddLinkBridgeTypeArgs>;
@@ -0,0 +1,186 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AddLinkBridgeArgsSchema = void 0;
4
+ const attribute_values_1 = require("../../../common/constants/attribute-values");
5
+ const link_constants_1 = require("../../link.constants");
6
+ exports.AddLinkBridgeArgsSchema = {
7
+ type: 'object',
8
+ required: [],
9
+ additionalProperties: false,
10
+ properties: {
11
+ ageing_time: {
12
+ type: 'integer',
13
+ minimum: 1,
14
+ maximum: 1000000,
15
+ nullable: true
16
+ },
17
+ group_fwd_mask: {
18
+ type: 'integer',
19
+ minimum: 0,
20
+ maximum: 65535,
21
+ nullable: true
22
+ },
23
+ group_address: {
24
+ type: 'string',
25
+ minLength: 1,
26
+ format: 'mac',
27
+ nullable: true
28
+ },
29
+ forward_delay: {
30
+ type: 'integer',
31
+ minimum: 2,
32
+ maximum: 30,
33
+ nullable: true
34
+ },
35
+ hello_time: {
36
+ type: 'integer',
37
+ minimum: 1,
38
+ maximum: 10,
39
+ nullable: true
40
+ },
41
+ max_age: {
42
+ type: 'integer',
43
+ minimum: 6,
44
+ maximum: 40,
45
+ nullable: true
46
+ },
47
+ stp_state: {
48
+ type: 'integer',
49
+ enum: Object.values(attribute_values_1.EnableDisableToggle),
50
+ nullable: true
51
+ },
52
+ priority: {
53
+ type: 'integer',
54
+ minimum: 0,
55
+ maximum: 65535,
56
+ nullable: true
57
+ },
58
+ vlan_filtering: {
59
+ type: 'integer',
60
+ enum: Object.values(attribute_values_1.EnableDisableToggle),
61
+ nullable: true
62
+ },
63
+ vlan_protocol: {
64
+ type: 'string',
65
+ enum: Object.values(link_constants_1.VlanProtocols),
66
+ nullable: true
67
+ },
68
+ vlan_default_pvid: {
69
+ type: 'integer',
70
+ minimum: 0,
71
+ maximum: 4095,
72
+ nullable: true
73
+ },
74
+ vlan_stats_enabled: {
75
+ type: 'integer',
76
+ enum: Object.values(attribute_values_1.EnableDisableToggle),
77
+ nullable: true
78
+ },
79
+ vlan_stats_per_port: {
80
+ type: 'integer',
81
+ enum: Object.values(attribute_values_1.EnableDisableToggle),
82
+ nullable: true
83
+ },
84
+ mcast_snooping: {
85
+ type: 'integer',
86
+ enum: Object.values(attribute_values_1.EnableDisableToggle),
87
+ nullable: true
88
+ },
89
+ mcast_router: {
90
+ type: 'integer',
91
+ enum: Object.values(link_constants_1.MultiCastRouterOptions),
92
+ nullable: true
93
+ },
94
+ mcast_query_use_ifaddr: {
95
+ type: 'integer',
96
+ enum: Object.values(attribute_values_1.EnableDisableToggle),
97
+ nullable: true
98
+ },
99
+ mcast_querier: {
100
+ type: 'integer',
101
+ enum: Object.values(attribute_values_1.EnableDisableToggle),
102
+ nullable: true
103
+ },
104
+ mcast_hash_elasticity: {
105
+ type: 'integer',
106
+ minimum: 1,
107
+ nullable: true
108
+ },
109
+ mcast_hash_max: {
110
+ type: 'integer',
111
+ minimum: 1,
112
+ nullable: true
113
+ },
114
+ mcast_last_member_count: {
115
+ type: 'integer',
116
+ minimum: 1,
117
+ nullable: true
118
+ },
119
+ mcast_startup_query_count: {
120
+ type: 'integer',
121
+ minimum: 1,
122
+ nullable: true
123
+ },
124
+ mcast_last_member_interval: {
125
+ type: 'integer',
126
+ minimum: 1,
127
+ nullable: true
128
+ },
129
+ mcast_membership_interval: {
130
+ type: 'integer',
131
+ minimum: 1,
132
+ nullable: true
133
+ },
134
+ mcast_querier_interval: {
135
+ type: 'integer',
136
+ minimum: 1,
137
+ nullable: true
138
+ },
139
+ mcast_query_interval: {
140
+ type: 'integer',
141
+ minimum: 1,
142
+ nullable: true
143
+ },
144
+ mcast_query_response_interval: {
145
+ type: 'integer',
146
+ minimum: 1,
147
+ nullable: true
148
+ },
149
+ mcast_startup_query_interval: {
150
+ type: 'integer',
151
+ minimum: 1,
152
+ nullable: true
153
+ },
154
+ mcast_stats_enabled: {
155
+ type: 'integer',
156
+ enum: Object.values(attribute_values_1.EnableDisableToggle),
157
+ nullable: true
158
+ },
159
+ mcast_igmp_version: {
160
+ type: 'integer',
161
+ enum: Object.values(link_constants_1.IgmpVersions),
162
+ nullable: true
163
+ },
164
+ mcast_mld_version: {
165
+ type: 'integer',
166
+ enum: Object.values(link_constants_1.MldVersions),
167
+ nullable: true
168
+ },
169
+ nf_call_iptables: {
170
+ type: 'integer',
171
+ enum: Object.values(attribute_values_1.EnableDisableToggle),
172
+ nullable: true
173
+ },
174
+ nf_call_ip6tables: {
175
+ type: 'integer',
176
+ enum: Object.values(attribute_values_1.EnableDisableToggle),
177
+ nullable: true
178
+ },
179
+ nf_call_arptables: {
180
+ type: 'integer',
181
+ enum: Object.values(attribute_values_1.EnableDisableToggle),
182
+ nullable: true
183
+ }
184
+ }
185
+ };
186
+ //# sourceMappingURL=bridge.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bridge.schema.js","sourceRoot":"","sources":["../../../../src/commands/link/virtual-link-types/bridge.schema.ts"],"names":[],"mappings":"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"}