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,18 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.validate = void 0;
7
+ const validator_1 = __importDefault(require("./validator"));
8
+ const parameters_1 = require("./errors/parameters");
9
+ /** @internal */
10
+ function validate(schemaId, schema, options) {
11
+ const ajvValidate = validator_1.default.getSchema(schemaId) || validator_1.default.compile(schema);
12
+ const isValid = ajvValidate(options);
13
+ if (!isValid) {
14
+ throw new parameters_1.ParametersError(parameters_1.ParametersError.message, ajvValidate.errors);
15
+ }
16
+ }
17
+ exports.validate = validate;
18
+ //# sourceMappingURL=misc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"misc.js","sourceRoot":"","sources":["../../src/common/misc.ts"],"names":[],"mappings":";;;;;;AAEA,4DAA8B;AAE9B,oDAAsD;AAEtD,gBAAgB;AAChB,SAAgB,QAAQ,CAAY,QAAmB,EACnB,MAAiC,EACjC,OAAkB;IAEpD,MAAM,WAAW,GAAG,mBAAG,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,mBAAG,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACnE,MAAM,OAAO,GAAO,WAAW,CAAC,OAAO,CAAC,CAAC;IAEzC,IAAI,CAAC,OAAO,EAAE;QACZ,MAAM,IAAI,4BAAe,CAAC,4BAAe,CAAC,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;KACxE;AACH,CAAC;AAVD,4BAUC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Robust parser for `ip -json` command output.
3
+ *
4
+ * Some iproute2 versions do not produce a valid JSON array but instead output
5
+ * objects separated by newlines (NDJSON), or a JSON array where elements are
6
+ * separated by newlines without commas. This function tries three strategies:
7
+ *
8
+ * 1. Standard JSON – `[{...},{...}]`
9
+ * 2. NDJSON – `{...}\n{...}` or `[...]\n[...]`
10
+ * 3. Array w/o commas – `[{...}\n{...}]`
11
+ *
12
+ * Throws `SyntaxError` only if all three strategies fail.
13
+ */
14
+ export declare function parseCommandOutput<T>(stdout: string): T;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.parseCommandOutput = void 0;
4
+ /**
5
+ * Robust parser for `ip -json` command output.
6
+ *
7
+ * Some iproute2 versions do not produce a valid JSON array but instead output
8
+ * objects separated by newlines (NDJSON), or a JSON array where elements are
9
+ * separated by newlines without commas. This function tries three strategies:
10
+ *
11
+ * 1. Standard JSON – `[{...},{...}]`
12
+ * 2. NDJSON – `{...}\n{...}` or `[...]\n[...]`
13
+ * 3. Array w/o commas – `[{...}\n{...}]`
14
+ *
15
+ * Throws `SyntaxError` only if all three strategies fail.
16
+ */
17
+ function parseCommandOutput(stdout) {
18
+ const trimmed = stdout.trim();
19
+ if (!trimmed) {
20
+ return [];
21
+ }
22
+ // 1. Standard JSON (the happy path)
23
+ try {
24
+ return JSON.parse(trimmed);
25
+ }
26
+ catch ( /* fall through */_a) { /* fall through */ }
27
+ // 2. NDJSON — one JSON value per line
28
+ const fromLines = [];
29
+ for (const line of trimmed.split('\n')) {
30
+ const l = line.trim();
31
+ if (!l)
32
+ continue;
33
+ try {
34
+ const parsed = JSON.parse(l);
35
+ Array.isArray(parsed) ? fromLines.push(...parsed) : fromLines.push(parsed);
36
+ }
37
+ catch ( /* skip unparseable lines */_b) { /* skip unparseable lines */ }
38
+ }
39
+ if (fromLines.length > 0) {
40
+ return fromLines;
41
+ }
42
+ // 3. JSON array with missing commas between objects
43
+ try {
44
+ const fixed = trimmed.replace(/\}\s*\n\s*\{/g, '},{');
45
+ return JSON.parse(fixed);
46
+ }
47
+ catch ( /* fall through */_c) { /* fall through */ }
48
+ throw new SyntaxError(`parseCommandOutput: failed to parse ip command output: ${trimmed.slice(0, 300)}`);
49
+ }
50
+ exports.parseCommandOutput = parseCommandOutput;
51
+ //# sourceMappingURL=parse-output.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-output.js","sourceRoot":"","sources":["../../src/common/parse-output.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;GAYG;AACH,SAAgB,kBAAkB,CAAI,MAAc;IAClD,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC;IAE9B,IAAI,CAAC,OAAO,EAAE;QACZ,OAAO,EAAkB,CAAC;KAC3B;IAED,oCAAoC;IACpC,IAAI;QACF,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;KAC5B;IAAC,QAAQ,kBAAkB,IAApB,EAAE,kBAAkB,EAAE;IAE9B,sCAAsC;IACtC,MAAM,SAAS,GAAc,EAAE,CAAC;IAChC,KAAK,MAAM,IAAI,IAAI,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE;QACtC,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;QACtB,IAAI,CAAC,CAAC;YAAE,SAAS;QACjB,IAAI;YACF,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAC7B,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SAC5E;QAAC,QAAQ,4BAA4B,IAA9B,EAAE,4BAA4B,EAAE;KACzC;IACD,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE;QACxB,OAAO,SAAyB,CAAC;KAClC;IAED,oDAAoD;IACpD,IAAI;QACF,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC;QACtD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;KAC1B;IAAC,QAAQ,kBAAkB,IAApB,EAAE,kBAAkB,EAAE;IAE9B,MAAM,IAAI,WAAW,CACnB,0DAA0D,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAClF,CAAC;AACJ,CAAC;AAnCD,gDAmCC"}
@@ -0,0 +1,3 @@
1
+ import Ajv from 'ajv';
2
+ declare const ajv: Ajv;
3
+ export default ajv;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const ajv_1 = __importDefault(require("ajv"));
7
+ const ajv_formats_1 = __importDefault(require("ajv-formats"));
8
+ const regexes_1 = require("./constants/regexes");
9
+ const ajv = new ajv_1.default({
10
+ strict: true,
11
+ useDefaults: true,
12
+ coerceTypes: false,
13
+ allowUnionTypes: true
14
+ });
15
+ ajv.addKeyword({
16
+ keyword: 'keyless',
17
+ schemaType: 'boolean',
18
+ valid: true,
19
+ code(cxt) {
20
+ // Noop.
21
+ }
22
+ });
23
+ (0, ajv_formats_1.default)(ajv, [
24
+ 'ipv4',
25
+ 'ipv6'
26
+ ]);
27
+ ajv.addFormat('mac', regexes_1.mac);
28
+ ajv.addFormat('4-hex', regexes_1.hex4Digits);
29
+ ajv.addFormat('filepath', /^(\/)?([^/\0]+(\/)?)+(\.\w+)?$/);
30
+ ajv.addFormat('slash-separated-strings', regexes_1.slashSeparatedStrings);
31
+ ajv.addFormat('slash-separated-numbers', regexes_1.slashSeparatedNumbers);
32
+ ajv.addFormat('comma-separated-ipv6-addresses', regexes_1.commaSeparatedIpv6Addresses);
33
+ ajv.addFormat('time-with-unit', regexes_1.timeWithUnit);
34
+ ajv.addFormat('colon-separated-numbers', regexes_1.colonSeparatedNumbers);
35
+ ajv.addFormat('tos', regexes_1.tos);
36
+ // Since `ajv` doesn't support several formats for same property.
37
+ ajv.addFormat('ip', new RegExp(regexes_1.ip, 'i'));
38
+ ajv.addFormat('ip-with-optional-mask', new RegExp(regexes_1.ipWithOptionalMask, 'i'));
39
+ ajv.addFormat('ip-with-required-mask', new RegExp(regexes_1.ipWithRequiredMask, 'i'));
40
+ ajv.addFormat('ip-or-any', new RegExp(regexes_1.ipOrAny, 'i'));
41
+ ajv.addFormat('ip-with-required-mask-and-all-and-default-values', new RegExp(regexes_1.ipWithRequiredMaskAndAllAndDefaultValues, 'i'));
42
+ ajv.addFormat('ip-with-optional-mask-and-all-and-default-values', new RegExp(regexes_1.ipWithOptionalMaskAndAllAndDefaultValues, 'i'));
43
+ ajv.addFormat('ip-with-optional-family-prefix', new RegExp(regexes_1.ipWithOptionalFamilyPrefix, 'i'));
44
+ exports.default = ajv;
45
+ //# sourceMappingURL=validator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validator.js","sourceRoot":"","sources":["../../src/common/validator.ts"],"names":[],"mappings":";;;;;AAAA,8CAAyC;AACzC,8DAAqC;AAErC,iDAW6B;AAE7B,MAAM,GAAG,GAAG,IAAI,aAAG,CAAC;IAClB,MAAM,EAAW,IAAI;IACrB,WAAW,EAAM,IAAI;IACrB,WAAW,EAAM,KAAK;IACtB,eAAe,EAAE,IAAI;CACtB,CAAC,CAAC;AAEH,GAAG,CAAC,UAAU,CAAC;IACb,OAAO,EAAK,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,KAAK,EAAO,IAAI;IAChB,IAAI,CAAC,GAAe;QAClB,QAAQ;IACV,CAAC;CACF,CAAC,CAAC;AAEH,IAAA,qBAAU,EAAC,GAAG,EAAE;IACd,MAAM;IACN,MAAM;CACP,CAAC,CAAC;AAEH,GAAG,CAAC,SAAS,CAAC,KAAK,EAAE,aAAG,CAAC,CAAC;AAC1B,GAAG,CAAC,SAAS,CAAC,OAAO,EAAE,oBAAU,CAAC,CAAC;AACnC,GAAG,CAAC,SAAS,CAAC,UAAU,EAAE,gCAAgC,CAAC,CAAC;AAC5D,GAAG,CAAC,SAAS,CAAC,yBAAyB,EAAE,+BAAqB,CAAC,CAAC;AAChE,GAAG,CAAC,SAAS,CAAC,yBAAyB,EAAE,+BAAqB,CAAC,CAAC;AAChE,GAAG,CAAC,SAAS,CAAC,gCAAgC,EAAE,qCAA2B,CAAC,CAAC;AAC7E,GAAG,CAAC,SAAS,CAAC,gBAAgB,EAAE,sBAAY,CAAC,CAAC;AAC9C,GAAG,CAAC,SAAS,CAAC,yBAAyB,EAAE,+BAAqB,CAAC,CAAC;AAChE,GAAG,CAAC,SAAS,CAAC,KAAK,EAAE,aAAG,CAAC,CAAC;AAE1B,iEAAiE;AACjE,GAAG,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,MAAM,CAAC,YAAE,EAAE,GAAG,CAAC,CAAC,CAAC;AACzC,GAAG,CAAC,SAAS,CAAC,uBAAuB,EAAE,IAAI,MAAM,CAAC,4BAAkB,EAAE,GAAG,CAAC,CAAC,CAAC;AAC5E,GAAG,CAAC,SAAS,CAAC,uBAAuB,EAAE,IAAI,MAAM,CAAC,4BAAkB,EAAE,GAAG,CAAC,CAAC,CAAC;AAE5E,GAAG,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,MAAM,CAAC,iBAAO,EAAE,GAAG,CAAC,CAAC,CAAC;AAErD,GAAG,CAAC,SAAS,CAAC,kDAAkD,EAAE,IAAI,MAAM,CAAC,kDAAwC,EAAE,GAAG,CAAC,CAAC,CAAC;AAC7H,GAAG,CAAC,SAAS,CAAC,kDAAkD,EAAE,IAAI,MAAM,CAAC,kDAAwC,EAAE,GAAG,CAAC,CAAC,CAAC;AAC7H,GAAG,CAAC,SAAS,CAAC,gCAAgC,EAAE,IAAI,MAAM,CAAC,oCAA0B,EAAE,GAAG,CAAC,CAAC,CAAC;AAE7F,kBAAe,GAAG,CAAC"}
package/lib/index.d.ts ADDED
@@ -0,0 +1,400 @@
1
+ import * as batchModule from './commands/batch';
2
+ import * as linkModule from './commands/link';
3
+ import * as addressModule from './commands/address';
4
+ import * as routeModule from './commands/route';
5
+ import * as ruleModule from './commands/rule';
6
+ import * as monitorModule from './commands/monitor';
7
+ import * as addrlabelModule from './commands/addrlabel';
8
+ import * as neighbourModule from './commands/neighbour';
9
+ import * as ntableModule from './commands/ntable';
10
+ import * as tunnelModule from './commands/tunnel';
11
+ import * as tuntapModule from './commands/tuntap';
12
+ import * as maddressModule from './commands/maddress';
13
+ import * as mrouteModule from './commands/mroute';
14
+ import * as utilsModule from './utils';
15
+ import Command from './common/classes/command';
16
+ import MonitorCommand from './common/classes/monitor-command';
17
+ export { OnOffToggle, EnableDisableToggle, EnableDisableAsStringToggle, EnableDisableAutoToggle } from './common/constants/attribute-values';
18
+ export { SchemaIds } from './common/constants/schemas';
19
+ export { mac, hex4Digits, ipv4, ipv6, ip, ipWithOptionalMask, ipWithRequiredMask, ipOrAny, ipWithOptionalMaskAndAllAndDefaultValues, ipWithRequiredMaskAndAllAndDefaultValues, ipWithOptionalFamilyPrefix, slashSeparatedStrings, slashSeparatedNumbers, commaSeparatedIpv6Addresses, timeWithUnit, colonSeparatedNumbers } from './common/constants/regexes';
20
+ export { GlobalOptions, Empty, FilePathRequiredGlobalOption, StdinRequiredGlobalOption, GlobalOptionsWithRequiredFilePath, GlobalOptionsWithRequiredStdin } from './common/interfaces/common';
21
+ export { MonitorEmittedData } from './common/interfaces/monitor';
22
+ export { CommandError } from './common/errors/command';
23
+ export { ParametersError } from './common/errors/parameters';
24
+ /**
25
+ * Read commands from provided file or standard input and invoke them.
26
+ *
27
+ * @see [Man Page](https://man7.org/linux/man-pages/man8/ip.8.html)
28
+ * @category IP Commands
29
+ *
30
+ * @example
31
+ * ```
32
+ * import { batch } from 'iproutejs';
33
+ * ```
34
+ */
35
+ export { batchModule as batch };
36
+ /**
37
+ * Network devices configuration.
38
+ *
39
+ * @see [Man Page](https://man7.org/linux/man-pages/man8/ip-link.8.html)
40
+ * @category IP Commands
41
+ *
42
+ * @example
43
+ * ```
44
+ * import { link } from 'iproutejs';
45
+ * ```
46
+ */
47
+ export { linkModule as link };
48
+ export { LinkTypes, ExtendedLinkTypes, VlanProtocols, DontFragmentFlagValues, SecondaryUdpEncapsulations, IpipSipDeviceModes, IpoIbModes, ErspanDirections, TtlSpecialValues, MacvlanMacvtapModes, HsrVersions, HsrProtocols, MultiCastRouterOptions, IgmpVersions, MldVersions, MacsecValidationModeOptions, SecureAssociationEncodings, AddrGenMode, BridgeSlavePortStates, XdpOptionTypes } from './commands/link.constants';
49
+ export { LinkAddOptions, LinkTypesMappings } from './commands/link/add.interfaces';
50
+ export { LinkDeleteOptions } from './commands/link/delete.interfaces';
51
+ export { LinkSetCommonOptions, LinkSetGroupOptions, LinkSetDevOptions, LinkSetOptions, XdpOptionTypesMappings } from './commands/link/set.interfaces';
52
+ export { LinkShowCommonOptions, LinkShowGroupOptions, LinkShowDevOptions, LinkShowOptions, LinkInfo } from './commands/link/show.interfaces';
53
+ export { SetLinkBondSlaveTypeArgs } from './commands/link/extended-virtual-link-types/bond-slave.interfaces';
54
+ export { SetLinkBridgeSlaveTypeArgs } from './commands/link/extended-virtual-link-types/bridge-slave.interfaces';
55
+ export { AddLinkBareudpTypeArgs } from './commands/link/virtual-link-types/bareup.interfaces';
56
+ export { AddLinkBridgeTypeArgs } from './commands/link/virtual-link-types/bridge.interfaces';
57
+ export { AddLinkCanTypeArgs } from './commands/link/virtual-link-types/can.interfaces';
58
+ export { AddLinkErspanIp6erspanTypeArgs } from './commands/link/virtual-link-types/erspan-ip6erspan.interfaces';
59
+ export { AddLinkGeneveTypeArgs } from './commands/link/virtual-link-types/geneve.interfaces';
60
+ export { AddLinkGreGretapTypeArgs } from './commands/link/virtual-link-types/gre-gretap.interfaces';
61
+ export { AddLinkHsrTypeArgs } from './commands/link/virtual-link-types/hsr.interfaces';
62
+ export { AddLinkIp6GreIp6gretapTypeArgs } from './commands/link/virtual-link-types/ip6gre-ip6gretap.interfaces';
63
+ export { AddLinkIpipSitTypeArgs } from './commands/link/virtual-link-types/ipip-sit.interfaces';
64
+ export { AddLinkIpoibTypeArgs } from './commands/link/virtual-link-types/ipoib.interfaces';
65
+ export { AddLinkMacsecTypeArgs } from './commands/link/virtual-link-types/macsec.interfaces';
66
+ export { AddLinkMacvlanMacvtapTypeArgs, SetLinkMacvlanMacvtapTypeArgs } from './commands/link/virtual-link-types/macvlan-macvtap.interfaces';
67
+ export { AddLinkRmnetTypeArgs } from './commands/link/virtual-link-types/rmnet.interfaces';
68
+ export { AddLinkVethVxcanTypeArgs } from './commands/link/virtual-link-types/veth-vxcan.interfaces';
69
+ export { AddLinkVlanTypeArgs } from './commands/link/virtual-link-types/vlan.interfaces';
70
+ export { AddLinkVrfTypeArgs } from './commands/link/virtual-link-types/vrf.interfaces';
71
+ export { AddLinkVxlanTypeArgs } from './commands/link/virtual-link-types/vxlan.interfaces';
72
+ export { AddLinkXfrmTypeArgs } from './commands/link/virtual-link-types/xfrm.interfaces';
73
+ export { LinkSetXdpObjectOptions } from './commands/link/xdp-options/object.interfaces';
74
+ export { LinkSetXdpOffOptions } from './commands/link/xdp-options/off.interfaces';
75
+ export { LinkSetXdpPinnedOptions } from './commands/link/xdp-options/pinned.interfaces';
76
+ /**
77
+ * Protocol address management.
78
+ *
79
+ * @see [Man Page](https://man7.org/linux/man-pages/man8/ip-address.8.html)
80
+ * @category IP Commands
81
+ *
82
+ * @example
83
+ * ```
84
+ * import { address } from 'iproutejs';
85
+ * ```
86
+ */
87
+ export { addressModule as address };
88
+ export { AddressScopes, AddressFamilies } from './commands/address.constants';
89
+ export { AddressAddOptions } from './commands/address/add.interfaces';
90
+ export { AddressDeleteOptions } from './commands/address/delete.interfaces';
91
+ export { AddressFlushOptions } from './commands/address/flush.interfaces';
92
+ export { AddressShowOptions, LinkWithAddressInfo, OnlyAddressInfo, AddressInfo } from './commands/address/show.interfaces';
93
+ /**
94
+ * Routing table management.
95
+ *
96
+ * @see [Man Page](https://man7.org/linux/man-pages/man8/ip-route.8.html)
97
+ * @category IP Commands
98
+ *
99
+ * @example
100
+ * ```
101
+ * import { route } from 'iproutejs';
102
+ * ```
103
+ */
104
+ export { routeModule as route };
105
+ export { RoutePreferences, EncapSeg6LocalActions, EncapTypes } from './commands/route.constants';
106
+ export { RouteAddOptions, NextHopArgs, EncapTypesMappings, EncapSeg6LocalActionsMappings } from './commands/route/add.interfaces';
107
+ export { RouteGetOptions } from './commands/route/get.interfaces';
108
+ export { RouteRoutingTables, RoutingTableProtocols, RouteTypes } from './commands/route/show.constants';
109
+ export { RouteShowOptions, RouteInfo } from './commands/route/show.interfaces';
110
+ export { AddRouteBpfEncapArgs } from './commands/route/encap-types/bpf.interfaces';
111
+ export { AddRouteIoam6EncapArgs } from './commands/route/encap-types/ioam6.interfaces';
112
+ export { AddRouteIpEncapArgs } from './commands/route/encap-types/ip.interfaces';
113
+ export { AddRouteMplsEncapArgs } from './commands/route/encap-types/mpls.interfaces';
114
+ export { AddRouteSeg6EncapArgs } from './commands/route/encap-types/seg6.interfaces';
115
+ export { AddRouteSeg6LocalEncapArgs, EndXSeg6LocalEncapArgs, EndDt6Seg6LocalEncapArgs, EndB6Seg6LocalEncapArgs, EndDx6Seg6LocalEncapArgs, EndDt4Seg6LocalEncapArgs, EndDt46Seg6LocalEncapArgs, EndB6EncapsSeg6LocalEncapArgs } from './commands/route/encap-types/seg6local.interfaces';
116
+ /**
117
+ * Routing policy database (RPDB) management.
118
+ *
119
+ * @see [Man Page](https://man7.org/linux/man-pages/man8/ip-rule.8.html)
120
+ * @category IP Commands
121
+ *
122
+ * @example
123
+ * ```
124
+ * import { rule } from 'iproutejs';
125
+ * ```
126
+ */
127
+ export { ruleModule as rule };
128
+ export { RoutingTables, RuleTypes } from './commands/rule.constants';
129
+ export { RuleAddOptions } from './commands/rule/add.interfaces';
130
+ export { RuleShowOptions, RuleInfo } from './commands/rule/show.interfaces';
131
+ /**
132
+ * State monitoring.
133
+ *
134
+ * @see [Man Page](https://man7.org/linux/man-pages/man8/ip-monitor.8.html)
135
+ * @category IP Commands
136
+ *
137
+ * @example
138
+ * ```
139
+ * import { monitor } from 'iproutejs';
140
+ * ```
141
+ */
142
+ export { monitorModule as monitor };
143
+ export { MonitorObjects } from './commands/monitor.constants';
144
+ export { MonitorOptions } from './commands/monitor/monitor.interfaces';
145
+ /**
146
+ * Protocol address label management.
147
+ *
148
+ * @remarks
149
+ * IPv6 address labels are used for address selection; they are described in RFC 3484.
150
+ * Precedence is managed by userspace, and only the label itself is stored in the kernel.
151
+ *
152
+ * @see [Man Page](https://man7.org/linux/man-pages/man8/ip-addrlabel.8.html)
153
+ * @category IP Commands
154
+ *
155
+ * @example
156
+ * ```
157
+ * import { addrlabel } from 'iproutejs';
158
+ * ```
159
+ */
160
+ export { addrlabelModule as addrlabel };
161
+ export { AddrlabelAddOptions } from './commands/addrlabel/add.interfaces';
162
+ export { AddrlabelDelOptions } from './commands/addrlabel/del.interfaces';
163
+ export { AddrlabelInfo } from './commands/addrlabel/list.interfaces';
164
+ /**
165
+ * Neighbour/ARP tables management.
166
+ *
167
+ * @remarks
168
+ * Manipulates neighbour objects that establish bindings between protocol addresses and
169
+ * link layer addresses for hosts sharing the same link.
170
+ *
171
+ * Neighbour entries are organized into tables.
172
+ * The IPv4 neighbour table is also known by another name - the ARP table.
173
+ *
174
+ * @see [Man Page](https://man7.org/linux/man-pages/man8/ip-neighbour.8.html)
175
+ * @category IP Commands
176
+ *
177
+ * @example
178
+ * ```
179
+ * import { neighbour } from 'iproutejs';
180
+ * ```
181
+ */
182
+ export { neighbourModule as neighbour };
183
+ export { NudStates } from './commands/neighbour.constants';
184
+ export { NeighbourAddOptions } from './commands/neighbour/add.interfaces';
185
+ export { NeighbourDelOptions } from './commands/neighbour/del.interfaces';
186
+ export { NeighbourShowOptions, NeighbourInfo } from './commands/neighbour/show.interfaces';
187
+ export { NeighbourGetOptions } from './commands/neighbour/get.interfaces';
188
+ /**
189
+ * Neighbour table configuration.
190
+ *
191
+ * @remarks
192
+ * Controls the parameters for the neighbour tables.
193
+ *
194
+ * @see [Man Page](https://man7.org/linux/man-pages/man8/ip-ntable.8.html)
195
+ * @category IP Commands
196
+ *
197
+ * @example
198
+ * ```
199
+ * import { ntable } from 'iproutejs';
200
+ * ```
201
+ */
202
+ export { ntableModule as ntable };
203
+ export { NtableInfo, NtableShowOptions } from './commands/ntable/show.interfaces';
204
+ export { NtableChangeOptions } from './commands/ntable/change.interfaces';
205
+ /**
206
+ * Tunnel configuration.
207
+ *
208
+ * @remarks
209
+ * Tunnel objects are tunnels, encapsulating packets in IP packets and then sending them over
210
+ * the IP infrastructure.
211
+ *
212
+ * @see [Man Page](https://man7.org/linux/man-pages/man8/ip-tunnel.8.html)
213
+ * @category IP Commands
214
+ *
215
+ * @example
216
+ * ```
217
+ * import { tunnel } from 'iproutejs';
218
+ * ```
219
+ */
220
+ export { tunnelModule as tunnel };
221
+ export { TunnelInfo, TunnelModes } from './commands/tunnel.constants';
222
+ export { TunnelAddOptions } from './commands/tunnel/add.interfaces';
223
+ export { Tunnel6rdOptions } from './commands/tunnel/6rd.interfaces';
224
+ export { TunnelPrlOptions } from './commands/tunnel/prl.interfaces';
225
+ /**
226
+ * TunTap.
227
+ *
228
+ * TODO: Man page doesn't exist yet.
229
+ * @category IP Commands
230
+ *
231
+ * @example
232
+ * ```
233
+ * import { tuntap } from 'iproutejs';
234
+ * ```
235
+ */
236
+ export { tuntapModule as tuntap };
237
+ export { TunTapTunnelModes } from './commands/tuntap.constants';
238
+ export { TunTapTunnelAddOptions } from './commands/tuntap/add.interfaces';
239
+ export { TunTapTunnelShowOptions, TunTapTunnelInfo } from './commands/tuntap/show.interfaces';
240
+ /**
241
+ * Multicast addresses management.
242
+ *
243
+ * @category IP Commands
244
+ *
245
+ * @example
246
+ * ```
247
+ * import { maddress } from 'iproutejs';
248
+ * ```
249
+ */
250
+ export { maddressModule as maddress };
251
+ export { MaddressAddOptions } from './commands/maddress/add.interfaces';
252
+ export { MaddressShowOptions, MaddressInfo } from './commands/maddress/show.interfaces';
253
+ /**
254
+ * Multicast routing cache management.
255
+ *
256
+ * @remarks
257
+ * `mroute` objects are multicast routing cache entries created by a user-level mrouting daemon (f.e. `pimd` or `mrouted`).
258
+ *
259
+ * Due to the limitations of the current interface to the multicast routing engine, it is impossible
260
+ * to change `mroute` objects administratively, so we can only display them.
261
+ * This limitation will be removed in the future.
262
+ *
263
+ * @category IP Commands
264
+ *
265
+ * @example
266
+ * ```
267
+ * import { mroute } from 'iproutejs';
268
+ * ```
269
+ */
270
+ export { mrouteModule as mroute };
271
+ export { MrouteInfo, MrouteShowOptions } from './commands/mroute/show.interfaces';
272
+ /**
273
+ * Custom utility library that complements `iproute` suite.
274
+ * @category IP Commands
275
+ *
276
+ * @example
277
+ * ```
278
+ * import { utils } from 'iproutejs';
279
+ * ```
280
+ */
281
+ export { utilsModule as utils };
282
+ export { RoutingTable, RoutingTableOptions } from './utils/routing-tables.interfaces';
283
+ export { Command as Command };
284
+ export { MonitorCommand as MonitorCommand };
285
+ /** @hidden **/
286
+ declare const _default: {
287
+ batch: {
288
+ fromFile: typeof batchModule.fromFile;
289
+ fromStdin: typeof batchModule.fromStdin;
290
+ };
291
+ link: {
292
+ add: typeof linkModule.add;
293
+ del: typeof linkModule.del;
294
+ show: typeof linkModule.show;
295
+ set: typeof linkModule.set;
296
+ change: typeof linkModule.set;
297
+ };
298
+ address: {
299
+ add: typeof addressModule.add;
300
+ change: typeof addressModule.change;
301
+ replace: typeof addressModule.replace;
302
+ del: typeof addressModule.del;
303
+ flush: typeof addressModule.flush;
304
+ save: typeof addressModule.save;
305
+ restore: typeof addressModule.restore;
306
+ showdump: typeof addressModule.showdump;
307
+ show: typeof addressModule.show;
308
+ };
309
+ rule: {
310
+ add: typeof ruleModule.add;
311
+ del: typeof ruleModule.del;
312
+ save: typeof ruleModule.save;
313
+ restore: typeof ruleModule.restore;
314
+ flush: typeof ruleModule.flush;
315
+ show: typeof ruleModule.show;
316
+ list: typeof ruleModule.show;
317
+ };
318
+ route: {
319
+ show: typeof routeModule.show;
320
+ flush: typeof routeModule.flush;
321
+ save: typeof routeModule.save;
322
+ restore: typeof routeModule.restore;
323
+ get: typeof routeModule.get;
324
+ add: typeof routeModule.add;
325
+ del: typeof routeModule.del;
326
+ change: typeof routeModule.change;
327
+ append: typeof routeModule.append;
328
+ replace: typeof routeModule.replace;
329
+ };
330
+ monitor: typeof monitorModule.monitor;
331
+ addrlabel: {
332
+ add: typeof addrlabelModule.add;
333
+ del: typeof addrlabelModule.del;
334
+ flush: typeof addrlabelModule.flush;
335
+ list: typeof addrlabelModule.list;
336
+ };
337
+ neighbour: {
338
+ add: typeof neighbourModule.add;
339
+ del: typeof neighbourModule.del;
340
+ change: typeof neighbourModule.change;
341
+ replace: typeof neighbourModule.replace;
342
+ flush: typeof neighbourModule.flush;
343
+ show: typeof neighbourModule.show;
344
+ get: typeof neighbourModule.get;
345
+ };
346
+ ntable: {
347
+ change: typeof ntableModule.change;
348
+ show: typeof ntableModule.show;
349
+ };
350
+ tunnel: {
351
+ add: typeof tunnelModule.add;
352
+ del: typeof tunnelModule.del;
353
+ change: typeof tunnelModule.change;
354
+ show: typeof tunnelModule.show;
355
+ prl: typeof tunnelModule.prl;
356
+ v6Rd: typeof tunnelModule.v6Rd;
357
+ };
358
+ tuntap: {
359
+ add: typeof tuntapModule.add;
360
+ del: typeof tuntapModule.del;
361
+ show: typeof tuntapModule.show;
362
+ list: typeof tuntapModule.show;
363
+ lst: typeof tuntapModule.show;
364
+ };
365
+ maddress: {
366
+ add: typeof maddressModule.add;
367
+ del: typeof maddressModule.del;
368
+ show: typeof maddressModule.show;
369
+ };
370
+ mroute: {
371
+ show: typeof mrouteModule.show;
372
+ };
373
+ utils: {
374
+ ipForwarding: {
375
+ v4: {
376
+ enable: (globalOptions?: import("./common/interfaces/common").GlobalOptions) => Promise<string | null>;
377
+ disable: (globalOptions?: import("./common/interfaces/common").GlobalOptions) => Promise<string | null>;
378
+ status: (globalOptions?: import("./common/interfaces/common").GlobalOptions) => Promise<string | null>;
379
+ };
380
+ v6: {
381
+ enable: (globalOptions?: import("./common/interfaces/common").GlobalOptions) => Promise<string | null>;
382
+ disable: (globalOptions?: import("./common/interfaces/common").GlobalOptions) => Promise<string | null>;
383
+ status: (globalOptions?: import("./common/interfaces/common").GlobalOptions) => Promise<string | null>;
384
+ };
385
+ enable: (globalOptions?: import("./common/interfaces/common").GlobalOptions) => Promise<void>;
386
+ disable: (globalOptions?: import("./common/interfaces/common").GlobalOptions) => Promise<void>;
387
+ status: (globalOptions?: import("./common/interfaces/common").GlobalOptions) => Promise<{
388
+ v4: string;
389
+ v6: string;
390
+ }>;
391
+ };
392
+ routingTables: {
393
+ show: typeof utilsModule.routingTables.show;
394
+ add: typeof utilsModule.routingTables.add;
395
+ del: typeof utilsModule.routingTables.del;
396
+ clear: typeof utilsModule.routingTables.clear;
397
+ };
398
+ };
399
+ };
400
+ export default _default;