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.
- package/LICENSE +22 -0
- package/README.md +245 -0
- package/lib/commands/address/add.interfaces.d.ts +94 -0
- package/lib/commands/address/add.interfaces.js +3 -0
- package/lib/commands/address/add.interfaces.js.map +1 -0
- package/lib/commands/address/add.schema.d.ts +3 -0
- package/lib/commands/address/add.schema.js +121 -0
- package/lib/commands/address/add.schema.js.map +1 -0
- package/lib/commands/address/delete.interfaces.d.ts +56 -0
- package/lib/commands/address/delete.interfaces.js +3 -0
- package/lib/commands/address/delete.interfaces.js.map +1 -0
- package/lib/commands/address/delete.schema.d.ts +3 -0
- package/lib/commands/address/delete.schema.js +64 -0
- package/lib/commands/address/delete.schema.js.map +1 -0
- package/lib/commands/address/flush.interfaces.d.ts +89 -0
- package/lib/commands/address/flush.interfaces.js +3 -0
- package/lib/commands/address/flush.interfaces.js.map +1 -0
- package/lib/commands/address/flush.schema.d.ts +3 -0
- package/lib/commands/address/flush.schema.js +165 -0
- package/lib/commands/address/flush.schema.js.map +1 -0
- package/lib/commands/address/show.interfaces.d.ts +166 -0
- package/lib/commands/address/show.interfaces.js +3 -0
- package/lib/commands/address/show.interfaces.js.map +1 -0
- package/lib/commands/address/show.schema.d.ts +3 -0
- package/lib/commands/address/show.schema.js +176 -0
- package/lib/commands/address/show.schema.js.map +1 -0
- package/lib/commands/address.constants.d.ts +33 -0
- package/lib/commands/address.constants.js +39 -0
- package/lib/commands/address.constants.js.map +1 -0
- package/lib/commands/address.d.ts +179 -0
- package/lib/commands/address.js +265 -0
- package/lib/commands/address.js.map +1 -0
- package/lib/commands/addrlabel/add.interfaces.d.ts +12 -0
- package/lib/commands/addrlabel/add.interfaces.js +3 -0
- package/lib/commands/addrlabel/add.interfaces.js.map +1 -0
- package/lib/commands/addrlabel/add.schema.d.ts +3 -0
- package/lib/commands/addrlabel/add.schema.js +26 -0
- package/lib/commands/addrlabel/add.schema.js.map +1 -0
- package/lib/commands/addrlabel/del.interfaces.d.ts +6 -0
- package/lib/commands/addrlabel/del.interfaces.js +3 -0
- package/lib/commands/addrlabel/del.interfaces.js.map +1 -0
- package/lib/commands/addrlabel/del.schema.d.ts +3 -0
- package/lib/commands/addrlabel/del.schema.js +27 -0
- package/lib/commands/addrlabel/del.schema.js.map +1 -0
- package/lib/commands/addrlabel/list.interfaces.d.ts +9 -0
- package/lib/commands/addrlabel/list.interfaces.js +3 -0
- package/lib/commands/addrlabel/list.interfaces.js.map +1 -0
- package/lib/commands/addrlabel.d.ts +104 -0
- package/lib/commands/addrlabel.js +149 -0
- package/lib/commands/addrlabel.js.map +1 -0
- package/lib/commands/batch.d.ts +60 -0
- package/lib/commands/batch.js +90 -0
- package/lib/commands/batch.js.map +1 -0
- package/lib/commands/link/add.interfaces.d.ts +122 -0
- package/lib/commands/link/add.interfaces.js +4 -0
- package/lib/commands/link/add.interfaces.js.map +1 -0
- package/lib/commands/link/add.schema.d.ts +4 -0
- package/lib/commands/link/add.schema.js +172 -0
- package/lib/commands/link/add.schema.js.map +1 -0
- package/lib/commands/link/delete.interfaces.d.ts +22 -0
- package/lib/commands/link/delete.interfaces.js +3 -0
- package/lib/commands/link/delete.interfaces.js.map +1 -0
- package/lib/commands/link/delete.schema.d.ts +3 -0
- package/lib/commands/link/delete.schema.js +29 -0
- package/lib/commands/link/delete.schema.js.map +1 -0
- package/lib/commands/link/extended-virtual-link-types/bond-slave.interfaces.d.ts +8 -0
- package/lib/commands/link/extended-virtual-link-types/bond-slave.interfaces.js +3 -0
- package/lib/commands/link/extended-virtual-link-types/bond-slave.interfaces.js.map +1 -0
- package/lib/commands/link/extended-virtual-link-types/bond-slave.schema.d.ts +3 -0
- package/lib/commands/link/extended-virtual-link-types/bond-slave.schema.js +16 -0
- package/lib/commands/link/extended-virtual-link-types/bond-slave.schema.js.map +1 -0
- package/lib/commands/link/extended-virtual-link-types/bridge-slave.interfaces.d.ts +77 -0
- package/lib/commands/link/extended-virtual-link-types/bridge-slave.interfaces.js +3 -0
- package/lib/commands/link/extended-virtual-link-types/bridge-slave.interfaces.js.map +1 -0
- package/lib/commands/link/extended-virtual-link-types/bridge-slave.schema.d.ts +3 -0
- package/lib/commands/link/extended-virtual-link-types/bridge-slave.schema.js +126 -0
- package/lib/commands/link/extended-virtual-link-types/bridge-slave.schema.js.map +1 -0
- package/lib/commands/link/set.interfaces.d.ts +271 -0
- package/lib/commands/link/set.interfaces.js +4 -0
- package/lib/commands/link/set.interfaces.js.map +1 -0
- package/lib/commands/link/set.schema.d.ts +5 -0
- package/lib/commands/link/set.schema.js +284 -0
- package/lib/commands/link/set.schema.js.map +1 -0
- package/lib/commands/link/show.interfaces.d.ts +116 -0
- package/lib/commands/link/show.interfaces.js +3 -0
- package/lib/commands/link/show.interfaces.js.map +1 -0
- package/lib/commands/link/show.schema.d.ts +3 -0
- package/lib/commands/link/show.schema.js +43 -0
- package/lib/commands/link/show.schema.js.map +1 -0
- package/lib/commands/link/virtual-link-types/bareup.interfaces.d.ts +30 -0
- package/lib/commands/link/virtual-link-types/bareup.interfaces.js +3 -0
- package/lib/commands/link/virtual-link-types/bareup.interfaces.js.map +1 -0
- package/lib/commands/link/virtual-link-types/bareup.schema.d.ts +3 -0
- package/lib/commands/link/virtual-link-types/bareup.schema.js +43 -0
- package/lib/commands/link/virtual-link-types/bareup.schema.js.map +1 -0
- package/lib/commands/link/virtual-link-types/bridge.interfaces.d.ts +140 -0
- package/lib/commands/link/virtual-link-types/bridge.interfaces.js +3 -0
- package/lib/commands/link/virtual-link-types/bridge.interfaces.js.map +1 -0
- package/lib/commands/link/virtual-link-types/bridge.schema.d.ts +3 -0
- package/lib/commands/link/virtual-link-types/bridge.schema.js +186 -0
- package/lib/commands/link/virtual-link-types/bridge.schema.js.map +1 -0
- package/lib/commands/link/virtual-link-types/can.interfaces.d.ts +71 -0
- package/lib/commands/link/virtual-link-types/can.interfaces.js +3 -0
- package/lib/commands/link/virtual-link-types/can.interfaces.js.map +1 -0
- package/lib/commands/link/virtual-link-types/can.schema.d.ts +3 -0
- package/lib/commands/link/virtual-link-types/can.schema.js +141 -0
- package/lib/commands/link/virtual-link-types/can.schema.js.map +1 -0
- package/lib/commands/link/virtual-link-types/erspan-ip6erspan.interfaces.d.ts +58 -0
- package/lib/commands/link/virtual-link-types/erspan-ip6erspan.interfaces.js +3 -0
- package/lib/commands/link/virtual-link-types/erspan-ip6erspan.interfaces.js.map +1 -0
- package/lib/commands/link/virtual-link-types/erspan-ip6erspan.schema.d.ts +3 -0
- package/lib/commands/link/virtual-link-types/erspan-ip6erspan.schema.js +64 -0
- package/lib/commands/link/virtual-link-types/erspan-ip6erspan.schema.js.map +1 -0
- package/lib/commands/link/virtual-link-types/geneve.interfaces.d.ts +54 -0
- package/lib/commands/link/virtual-link-types/geneve.interfaces.js +3 -0
- package/lib/commands/link/virtual-link-types/geneve.interfaces.js.map +1 -0
- package/lib/commands/link/virtual-link-types/geneve.schema.d.ts +3 -0
- package/lib/commands/link/virtual-link-types/geneve.schema.js +93 -0
- package/lib/commands/link/virtual-link-types/geneve.schema.js.map +1 -0
- package/lib/commands/link/virtual-link-types/gre-gretap.interfaces.d.ts +106 -0
- package/lib/commands/link/virtual-link-types/gre-gretap.interfaces.js +3 -0
- package/lib/commands/link/virtual-link-types/gre-gretap.interfaces.js.map +1 -0
- package/lib/commands/link/virtual-link-types/gre-gretap.schema.d.ts +3 -0
- package/lib/commands/link/virtual-link-types/gre-gretap.schema.js +208 -0
- package/lib/commands/link/virtual-link-types/gre-gretap.schema.js.map +1 -0
- package/lib/commands/link/virtual-link-types/hsr.interfaces.d.ts +20 -0
- package/lib/commands/link/virtual-link-types/hsr.interfaces.js +3 -0
- package/lib/commands/link/virtual-link-types/hsr.interfaces.js.map +1 -0
- package/lib/commands/link/virtual-link-types/hsr.schema.d.ts +3 -0
- package/lib/commands/link/virtual-link-types/hsr.schema.js +36 -0
- package/lib/commands/link/virtual-link-types/hsr.schema.js.map +1 -0
- package/lib/commands/link/virtual-link-types/ip6gre-ip6gretap.interfaces.d.ts +80 -0
- package/lib/commands/link/virtual-link-types/ip6gre-ip6gretap.interfaces.js +3 -0
- package/lib/commands/link/virtual-link-types/ip6gre-ip6gretap.interfaces.js.map +1 -0
- package/lib/commands/link/virtual-link-types/ip6gre-ip6gretap.schema.d.ts +3 -0
- package/lib/commands/link/virtual-link-types/ip6gre-ip6gretap.schema.js +170 -0
- package/lib/commands/link/virtual-link-types/ip6gre-ip6gretap.schema.js.map +1 -0
- package/lib/commands/link/virtual-link-types/ipip-sit.interfaces.d.ts +51 -0
- package/lib/commands/link/virtual-link-types/ipip-sit.interfaces.js +3 -0
- package/lib/commands/link/virtual-link-types/ipip-sit.interfaces.js.map +1 -0
- package/lib/commands/link/virtual-link-types/ipip-sit.schema.d.ts +3 -0
- package/lib/commands/link/virtual-link-types/ipip-sit.schema.js +74 -0
- package/lib/commands/link/virtual-link-types/ipip-sit.schema.js.map +1 -0
- package/lib/commands/link/virtual-link-types/ipoib.interfaces.d.ts +11 -0
- package/lib/commands/link/virtual-link-types/ipoib.interfaces.js +3 -0
- package/lib/commands/link/virtual-link-types/ipoib.interfaces.js.map +1 -0
- package/lib/commands/link/virtual-link-types/ipoib.schema.d.ts +3 -0
- package/lib/commands/link/virtual-link-types/ipoib.schema.js +22 -0
- package/lib/commands/link/virtual-link-types/ipoib.schema.js.map +1 -0
- package/lib/commands/link/virtual-link-types/macsec.interfaces.d.ts +44 -0
- package/lib/commands/link/virtual-link-types/macsec.interfaces.js +3 -0
- package/lib/commands/link/virtual-link-types/macsec.interfaces.js.map +1 -0
- package/lib/commands/link/virtual-link-types/macsec.schema.d.ts +3 -0
- package/lib/commands/link/virtual-link-types/macsec.schema.js +87 -0
- package/lib/commands/link/virtual-link-types/macsec.schema.js.map +1 -0
- package/lib/commands/link/virtual-link-types/macvlan-macvtap.interfaces.d.ts +59 -0
- package/lib/commands/link/virtual-link-types/macvlan-macvtap.interfaces.js +3 -0
- package/lib/commands/link/virtual-link-types/macvlan-macvtap.interfaces.js.map +1 -0
- package/lib/commands/link/virtual-link-types/macvlan-macvtap.schema.d.ts +4 -0
- package/lib/commands/link/virtual-link-types/macvlan-macvtap.schema.js +60 -0
- package/lib/commands/link/virtual-link-types/macvlan-macvtap.schema.js.map +1 -0
- package/lib/commands/link/virtual-link-types/rmnet.interfaces.d.ts +8 -0
- package/lib/commands/link/virtual-link-types/rmnet.interfaces.js +3 -0
- package/lib/commands/link/virtual-link-types/rmnet.interfaces.js.map +1 -0
- package/lib/commands/link/virtual-link-types/rmnet.schema.d.ts +3 -0
- package/lib/commands/link/virtual-link-types/rmnet.schema.js +16 -0
- package/lib/commands/link/virtual-link-types/rmnet.schema.js.map +1 -0
- package/lib/commands/link/virtual-link-types/veth-vxcan.interfaces.d.ts +8 -0
- package/lib/commands/link/virtual-link-types/veth-vxcan.interfaces.js +3 -0
- package/lib/commands/link/virtual-link-types/veth-vxcan.interfaces.js.map +1 -0
- package/lib/commands/link/virtual-link-types/veth-vxcan.schema.d.ts +3 -0
- package/lib/commands/link/virtual-link-types/veth-vxcan.schema.js +16 -0
- package/lib/commands/link/virtual-link-types/veth-vxcan.schema.js.map +1 -0
- package/lib/commands/link/virtual-link-types/vlan.interfaces.d.ts +36 -0
- package/lib/commands/link/virtual-link-types/vlan.interfaces.js +3 -0
- package/lib/commands/link/virtual-link-types/vlan.interfaces.js.map +1 -0
- package/lib/commands/link/virtual-link-types/vlan.schema.d.ts +3 -0
- package/lib/commands/link/virtual-link-types/vlan.schema.js +65 -0
- package/lib/commands/link/virtual-link-types/vlan.schema.js.map +1 -0
- package/lib/commands/link/virtual-link-types/vrf.interfaces.d.ts +8 -0
- package/lib/commands/link/virtual-link-types/vrf.interfaces.js +3 -0
- package/lib/commands/link/virtual-link-types/vrf.interfaces.js.map +1 -0
- package/lib/commands/link/virtual-link-types/vrf.schema.d.ts +3 -0
- package/lib/commands/link/virtual-link-types/vrf.schema.js +16 -0
- package/lib/commands/link/virtual-link-types/vrf.schema.js.map +1 -0
- package/lib/commands/link/virtual-link-types/vxlan.interfaces.d.ts +127 -0
- package/lib/commands/link/virtual-link-types/vxlan.interfaces.js +3 -0
- package/lib/commands/link/virtual-link-types/vxlan.interfaces.js.map +1 -0
- package/lib/commands/link/virtual-link-types/vxlan.schema.d.ts +3 -0
- package/lib/commands/link/virtual-link-types/vxlan.schema.js +176 -0
- package/lib/commands/link/virtual-link-types/vxlan.schema.js.map +1 -0
- package/lib/commands/link/virtual-link-types/xfrm.interfaces.d.ts +16 -0
- package/lib/commands/link/virtual-link-types/xfrm.interfaces.js +3 -0
- package/lib/commands/link/virtual-link-types/xfrm.interfaces.js.map +1 -0
- package/lib/commands/link/virtual-link-types/xfrm.schema.d.ts +3 -0
- package/lib/commands/link/virtual-link-types/xfrm.schema.js +21 -0
- package/lib/commands/link/virtual-link-types/xfrm.schema.js.map +1 -0
- package/lib/commands/link/xdp-options/object.interfaces.d.ts +36 -0
- package/lib/commands/link/xdp-options/object.interfaces.js +3 -0
- package/lib/commands/link/xdp-options/object.interfaces.js.map +1 -0
- package/lib/commands/link/xdp-options/object.schema.d.ts +3 -0
- package/lib/commands/link/xdp-options/object.schema.js +25 -0
- package/lib/commands/link/xdp-options/object.schema.js.map +1 -0
- package/lib/commands/link/xdp-options/off.interfaces.d.ts +8 -0
- package/lib/commands/link/xdp-options/off.interfaces.js +3 -0
- package/lib/commands/link/xdp-options/off.interfaces.js.map +1 -0
- package/lib/commands/link/xdp-options/off.schema.d.ts +3 -0
- package/lib/commands/link/xdp-options/off.schema.js +15 -0
- package/lib/commands/link/xdp-options/off.schema.js.map +1 -0
- package/lib/commands/link/xdp-options/pinned.interfaces.d.ts +13 -0
- package/lib/commands/link/xdp-options/pinned.interfaces.js +3 -0
- package/lib/commands/link/xdp-options/pinned.interfaces.js.map +1 -0
- package/lib/commands/link/xdp-options/pinned.schema.d.ts +3 -0
- package/lib/commands/link/xdp-options/pinned.schema.js +15 -0
- package/lib/commands/link/xdp-options/pinned.schema.js.map +1 -0
- package/lib/commands/link.constants.d.ts +425 -0
- package/lib/commands/link.constants.js +366 -0
- package/lib/commands/link.constants.js.map +1 -0
- package/lib/commands/link.d.ts +113 -0
- package/lib/commands/link.js +159 -0
- package/lib/commands/link.js.map +1 -0
- package/lib/commands/maddress/add.interfaces.d.ts +10 -0
- package/lib/commands/maddress/add.interfaces.js +3 -0
- package/lib/commands/maddress/add.interfaces.js.map +1 -0
- package/lib/commands/maddress/add.schema.d.ts +3 -0
- package/lib/commands/maddress/add.schema.js +22 -0
- package/lib/commands/maddress/add.schema.js.map +1 -0
- package/lib/commands/maddress/show.interfaces.d.ts +25 -0
- package/lib/commands/maddress/show.interfaces.js +3 -0
- package/lib/commands/maddress/show.interfaces.js.map +1 -0
- package/lib/commands/maddress/show.schema.d.ts +3 -0
- package/lib/commands/maddress/show.schema.js +17 -0
- package/lib/commands/maddress/show.schema.js.map +1 -0
- package/lib/commands/maddress.d.ts +82 -0
- package/lib/commands/maddress.js +121 -0
- package/lib/commands/maddress.js.map +1 -0
- package/lib/commands/monitor/monitor.interfaces.d.ts +24 -0
- package/lib/commands/monitor/monitor.interfaces.js +3 -0
- package/lib/commands/monitor/monitor.interfaces.js.map +1 -0
- package/lib/commands/monitor/monitor.schema.d.ts +3 -0
- package/lib/commands/monitor/monitor.schema.js +33 -0
- package/lib/commands/monitor/monitor.schema.js.map +1 -0
- package/lib/commands/monitor.constants.d.ts +17 -0
- package/lib/commands/monitor.constants.js +22 -0
- package/lib/commands/monitor.constants.js.map +1 -0
- package/lib/commands/monitor.d.ts +52 -0
- package/lib/commands/monitor.js +75 -0
- package/lib/commands/monitor.js.map +1 -0
- package/lib/commands/mroute/show.interfaces.d.ts +26 -0
- package/lib/commands/mroute/show.interfaces.js +3 -0
- package/lib/commands/mroute/show.interfaces.js.map +1 -0
- package/lib/commands/mroute/show.schema.d.ts +3 -0
- package/lib/commands/mroute/show.schema.js +44 -0
- package/lib/commands/mroute/show.schema.js.map +1 -0
- package/lib/commands/mroute.d.ts +29 -0
- package/lib/commands/mroute.js +53 -0
- package/lib/commands/mroute.js.map +1 -0
- package/lib/commands/neighbour/add.interfaces.d.ts +34 -0
- package/lib/commands/neighbour/add.interfaces.js +3 -0
- package/lib/commands/neighbour/add.interfaces.js.map +1 -0
- package/lib/commands/neighbour/add.schema.d.ts +3 -0
- package/lib/commands/neighbour/add.schema.js +49 -0
- package/lib/commands/neighbour/add.schema.js.map +1 -0
- package/lib/commands/neighbour/del.interfaces.d.ts +23 -0
- package/lib/commands/neighbour/del.interfaces.js +3 -0
- package/lib/commands/neighbour/del.interfaces.js.map +1 -0
- package/lib/commands/neighbour/del.schema.d.ts +3 -0
- package/lib/commands/neighbour/del.schema.js +37 -0
- package/lib/commands/neighbour/del.schema.js.map +1 -0
- package/lib/commands/neighbour/get.interfaces.d.ts +12 -0
- package/lib/commands/neighbour/get.interfaces.js +3 -0
- package/lib/commands/neighbour/get.interfaces.js.map +1 -0
- package/lib/commands/neighbour/get.schema.d.ts +3 -0
- package/lib/commands/neighbour/get.schema.js +26 -0
- package/lib/commands/neighbour/get.schema.js.map +1 -0
- package/lib/commands/neighbour/show.interfaces.d.ts +37 -0
- package/lib/commands/neighbour/show.interfaces.js +3 -0
- package/lib/commands/neighbour/show.interfaces.js.map +1 -0
- package/lib/commands/neighbour/show.schema.d.ts +3 -0
- package/lib/commands/neighbour/show.schema.js +39 -0
- package/lib/commands/neighbour/show.schema.js.map +1 -0
- package/lib/commands/neighbour.constants.d.ts +34 -0
- package/lib/commands/neighbour.constants.js +39 -0
- package/lib/commands/neighbour.constants.js.map +1 -0
- package/lib/commands/neighbour.d.ts +169 -0
- package/lib/commands/neighbour.js +238 -0
- package/lib/commands/neighbour.js.map +1 -0
- package/lib/commands/ntable/change.interfaces.d.ts +42 -0
- package/lib/commands/ntable/change.interfaces.js +3 -0
- package/lib/commands/ntable/change.interfaces.js.map +1 -0
- package/lib/commands/ntable/change.schema.d.ts +3 -0
- package/lib/commands/ntable/change.schema.js +101 -0
- package/lib/commands/ntable/change.schema.js.map +1 -0
- package/lib/commands/ntable/show.interfaces.d.ts +59 -0
- package/lib/commands/ntable/show.interfaces.js +3 -0
- package/lib/commands/ntable/show.interfaces.js.map +1 -0
- package/lib/commands/ntable/show.schema.d.ts +3 -0
- package/lib/commands/ntable/show.schema.js +22 -0
- package/lib/commands/ntable/show.schema.js.map +1 -0
- package/lib/commands/ntable.d.ts +43 -0
- package/lib/commands/ntable.js +75 -0
- package/lib/commands/ntable.js.map +1 -0
- package/lib/commands/route/add.interfaces.d.ts +261 -0
- package/lib/commands/route/add.interfaces.js +4 -0
- package/lib/commands/route/add.interfaces.js.map +1 -0
- package/lib/commands/route/add.schema.d.ts +3 -0
- package/lib/commands/route/add.schema.js +366 -0
- package/lib/commands/route/add.schema.js.map +1 -0
- package/lib/commands/route/encap-types/bpf.interfaces.d.ts +14 -0
- package/lib/commands/route/encap-types/bpf.interfaces.js +3 -0
- package/lib/commands/route/encap-types/bpf.interfaces.js.map +1 -0
- package/lib/commands/route/encap-types/bpf.schema.d.ts +3 -0
- package/lib/commands/route/encap-types/bpf.schema.js +31 -0
- package/lib/commands/route/encap-types/bpf.schema.js.map +1 -0
- package/lib/commands/route/encap-types/ioam6.interfaces.d.ts +19 -0
- package/lib/commands/route/encap-types/ioam6.interfaces.js +3 -0
- package/lib/commands/route/encap-types/ioam6.interfaces.js.map +1 -0
- package/lib/commands/route/encap-types/ioam6.schema.d.ts +3 -0
- package/lib/commands/route/encap-types/ioam6.schema.js +30 -0
- package/lib/commands/route/encap-types/ioam6.schema.js.map +1 -0
- package/lib/commands/route/encap-types/ip.interfaces.d.ts +17 -0
- package/lib/commands/route/encap-types/ip.interfaces.js +3 -0
- package/lib/commands/route/encap-types/ip.interfaces.js.map +1 -0
- package/lib/commands/route/encap-types/ip.schema.d.ts +3 -0
- package/lib/commands/route/encap-types/ip.schema.js +48 -0
- package/lib/commands/route/encap-types/ip.schema.js.map +1 -0
- package/lib/commands/route/encap-types/mpls.interfaces.d.ts +11 -0
- package/lib/commands/route/encap-types/mpls.interfaces.js +3 -0
- package/lib/commands/route/encap-types/mpls.interfaces.js.map +1 -0
- package/lib/commands/route/encap-types/mpls.schema.d.ts +3 -0
- package/lib/commands/route/encap-types/mpls.schema.js +46 -0
- package/lib/commands/route/encap-types/mpls.schema.js.map +1 -0
- package/lib/commands/route/encap-types/seg6.interfaces.d.ts +20 -0
- package/lib/commands/route/encap-types/seg6.interfaces.js +3 -0
- package/lib/commands/route/encap-types/seg6.interfaces.js.map +1 -0
- package/lib/commands/route/encap-types/seg6.schema.d.ts +3 -0
- package/lib/commands/route/encap-types/seg6.schema.js +38 -0
- package/lib/commands/route/encap-types/seg6.schema.js.map +1 -0
- package/lib/commands/route/encap-types/seg6local.interfaces.d.ts +76 -0
- package/lib/commands/route/encap-types/seg6local.interfaces.js +3 -0
- package/lib/commands/route/encap-types/seg6local.interfaces.js.map +1 -0
- package/lib/commands/route/encap-types/seg6local.schema.d.ts +6 -0
- package/lib/commands/route/encap-types/seg6local.schema.js +181 -0
- package/lib/commands/route/encap-types/seg6local.schema.js.map +1 -0
- package/lib/commands/route/get.interfaces.d.ts +37 -0
- package/lib/commands/route/get.interfaces.js +3 -0
- package/lib/commands/route/get.interfaces.js.map +1 -0
- package/lib/commands/route/get.schema.d.ts +3 -0
- package/lib/commands/route/get.schema.js +86 -0
- package/lib/commands/route/get.schema.js.map +1 -0
- package/lib/commands/route/show.constants.d.ts +105 -0
- package/lib/commands/route/show.constants.js +112 -0
- package/lib/commands/route/show.constants.js.map +1 -0
- package/lib/commands/route/show.interfaces.d.ts +96 -0
- package/lib/commands/route/show.interfaces.js +3 -0
- package/lib/commands/route/show.interfaces.js.map +1 -0
- package/lib/commands/route/show.schema.d.ts +3 -0
- package/lib/commands/route/show.schema.js +161 -0
- package/lib/commands/route/show.schema.js.map +1 -0
- package/lib/commands/route.constants.d.ts +129 -0
- package/lib/commands/route.constants.js +136 -0
- package/lib/commands/route.constants.js.map +1 -0
- package/lib/commands/route.d.ts +268 -0
- package/lib/commands/route.js +362 -0
- package/lib/commands/route.js.map +1 -0
- package/lib/commands/rule/add.interfaces.d.ts +41 -0
- package/lib/commands/rule/add.interfaces.js +3 -0
- package/lib/commands/rule/add.interfaces.js.map +1 -0
- package/lib/commands/rule/add.schema.d.ts +3 -0
- package/lib/commands/rule/add.schema.js +182 -0
- package/lib/commands/rule/add.schema.js.map +1 -0
- package/lib/commands/rule/show.interfaces.d.ts +86 -0
- package/lib/commands/rule/show.interfaces.js +3 -0
- package/lib/commands/rule/show.interfaces.js.map +1 -0
- package/lib/commands/rule/show.schema.d.ts +3 -0
- package/lib/commands/rule/show.schema.js +157 -0
- package/lib/commands/rule/show.schema.js.map +1 -0
- package/lib/commands/rule.constants.d.ts +34 -0
- package/lib/commands/rule.constants.js +40 -0
- package/lib/commands/rule.constants.js.map +1 -0
- package/lib/commands/rule.d.ts +143 -0
- package/lib/commands/rule.js +205 -0
- package/lib/commands/rule.js.map +1 -0
- package/lib/commands/tunnel/6rd.interfaces.d.ts +17 -0
- package/lib/commands/tunnel/6rd.interfaces.js +3 -0
- package/lib/commands/tunnel/6rd.interfaces.js.map +1 -0
- package/lib/commands/tunnel/6rd.schema.d.ts +3 -0
- package/lib/commands/tunnel/6rd.schema.js +33 -0
- package/lib/commands/tunnel/6rd.schema.js.map +1 -0
- package/lib/commands/tunnel/add.interfaces.d.ts +124 -0
- package/lib/commands/tunnel/add.interfaces.js +3 -0
- package/lib/commands/tunnel/add.interfaces.js.map +1 -0
- package/lib/commands/tunnel/add.schema.d.ts +3 -0
- package/lib/commands/tunnel/add.schema.js +213 -0
- package/lib/commands/tunnel/add.schema.js.map +1 -0
- package/lib/commands/tunnel/prl.interfaces.d.ts +17 -0
- package/lib/commands/tunnel/prl.interfaces.js +3 -0
- package/lib/commands/tunnel/prl.interfaces.js.map +1 -0
- package/lib/commands/tunnel/prl.schema.d.ts +3 -0
- package/lib/commands/tunnel/prl.schema.js +34 -0
- package/lib/commands/tunnel/prl.schema.js.map +1 -0
- package/lib/commands/tunnel.constants.d.ts +23 -0
- package/lib/commands/tunnel.constants.js +24 -0
- package/lib/commands/tunnel.constants.js.map +1 -0
- package/lib/commands/tunnel.d.ts +151 -0
- package/lib/commands/tunnel.js +210 -0
- package/lib/commands/tunnel.js.map +1 -0
- package/lib/commands/tuntap/add.interfaces.d.ts +25 -0
- package/lib/commands/tuntap/add.interfaces.js +3 -0
- package/lib/commands/tuntap/add.interfaces.js.map +1 -0
- package/lib/commands/tuntap/add.schema.d.ts +3 -0
- package/lib/commands/tuntap/add.schema.js +77 -0
- package/lib/commands/tuntap/add.schema.js.map +1 -0
- package/lib/commands/tuntap/show.interfaces.d.ts +17 -0
- package/lib/commands/tuntap/show.interfaces.js +3 -0
- package/lib/commands/tuntap/show.interfaces.js.map +1 -0
- package/lib/commands/tuntap/show.schema.d.ts +3 -0
- package/lib/commands/tuntap/show.schema.js +80 -0
- package/lib/commands/tuntap/show.schema.js.map +1 -0
- package/lib/commands/tuntap.constants.d.ts +8 -0
- package/lib/commands/tuntap.constants.js +13 -0
- package/lib/commands/tuntap.constants.js.map +1 -0
- package/lib/commands/tuntap.d.ts +83 -0
- package/lib/commands/tuntap.js +121 -0
- package/lib/commands/tuntap.js.map +1 -0
- package/lib/common/classes/command-with-filepath.d.ts +16 -0
- package/lib/common/classes/command-with-filepath.js +53 -0
- package/lib/common/classes/command-with-filepath.js.map +1 -0
- package/lib/common/classes/command-with-redirect-from-filepath-and-returned-data.d.ts +15 -0
- package/lib/common/classes/command-with-redirect-from-filepath-and-returned-data.js +45 -0
- package/lib/common/classes/command-with-redirect-from-filepath-and-returned-data.js.map +1 -0
- package/lib/common/classes/command-with-redirect-from-filepath.d.ts +16 -0
- package/lib/common/classes/command-with-redirect-from-filepath.js +53 -0
- package/lib/common/classes/command-with-redirect-from-filepath.js.map +1 -0
- package/lib/common/classes/command-with-redirect-to-filepath.d.ts +16 -0
- package/lib/common/classes/command-with-redirect-to-filepath.js +53 -0
- package/lib/common/classes/command-with-redirect-to-filepath.js.map +1 -0
- package/lib/common/classes/command-with-returned-data.d.ts +15 -0
- package/lib/common/classes/command-with-returned-data.js +45 -0
- package/lib/common/classes/command-with-returned-data.js.map +1 -0
- package/lib/common/classes/command-with-stdin.d.ts +16 -0
- package/lib/common/classes/command-with-stdin.js +53 -0
- package/lib/common/classes/command-with-stdin.js.map +1 -0
- package/lib/common/classes/command.d.ts +26 -0
- package/lib/common/classes/command.js +144 -0
- package/lib/common/classes/command.js.map +1 -0
- package/lib/common/classes/monitor-command.d.ts +30 -0
- package/lib/common/classes/monitor-command.js +108 -0
- package/lib/common/classes/monitor-command.js.map +1 -0
- package/lib/common/constants/attribute-values.d.ts +33 -0
- package/lib/common/constants/attribute-values.js +41 -0
- package/lib/common/constants/attribute-values.js.map +1 -0
- package/lib/common/constants/regexes.d.ts +34 -0
- package/lib/common/constants/regexes.js +38 -0
- package/lib/common/constants/regexes.js.map +1 -0
- package/lib/common/constants/schemas.d.ts +52 -0
- package/lib/common/constants/schemas.js +296 -0
- package/lib/common/constants/schemas.js.map +1 -0
- package/lib/common/constants/tests.d.ts +4 -0
- package/lib/common/constants/tests.js +9 -0
- package/lib/common/constants/tests.js.map +1 -0
- package/lib/common/errors/command.d.ts +11 -0
- package/lib/common/errors/command.js +20 -0
- package/lib/common/errors/command.js.map +1 -0
- package/lib/common/errors/parameters.d.ts +16 -0
- package/lib/common/errors/parameters.js +21 -0
- package/lib/common/errors/parameters.js.map +1 -0
- package/lib/common/interfaces/common.d.ts +115 -0
- package/lib/common/interfaces/common.js +3 -0
- package/lib/common/interfaces/common.js.map +1 -0
- package/lib/common/interfaces/monitor.d.ts +17 -0
- package/lib/common/interfaces/monitor.js +3 -0
- package/lib/common/interfaces/monitor.js.map +1 -0
- package/lib/common/interfaces/tests.d.ts +33 -0
- package/lib/common/interfaces/tests.js +3 -0
- package/lib/common/interfaces/tests.js.map +1 -0
- package/lib/common/misc.d.ts +4 -0
- package/lib/common/misc.js +18 -0
- package/lib/common/misc.js.map +1 -0
- package/lib/common/parse-output.d.ts +14 -0
- package/lib/common/parse-output.js +51 -0
- package/lib/common/parse-output.js.map +1 -0
- package/lib/common/validator.d.ts +3 -0
- package/lib/common/validator.js +45 -0
- package/lib/common/validator.js.map +1 -0
- package/lib/index.d.ts +400 -0
- package/lib/index.js +189 -0
- package/lib/index.js.map +1 -0
- package/lib/utils/index.d.ts +33 -0
- package/lib/utils/index.js +40 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/utils/ip-forwarding.constants.d.ts +21 -0
- package/lib/utils/ip-forwarding.constants.js +27 -0
- package/lib/utils/ip-forwarding.constants.js.map +1 -0
- package/lib/utils/ip-forwarding.d.ts +103 -0
- package/lib/utils/ip-forwarding.js +149 -0
- package/lib/utils/ip-forwarding.js.map +1 -0
- package/lib/utils/routing-tables.constants.d.ts +7 -0
- package/lib/utils/routing-tables.constants.js +11 -0
- package/lib/utils/routing-tables.constants.js.map +1 -0
- package/lib/utils/routing-tables.d.ts +134 -0
- package/lib/utils/routing-tables.interfaces.d.ts +16 -0
- package/lib/utils/routing-tables.interfaces.js +3 -0
- package/lib/utils/routing-tables.interfaces.js.map +1 -0
- package/lib/utils/routing-tables.js +243 -0
- package/lib/utils/routing-tables.js.map +1 -0
- package/lib/utils/routing-tables.schemas.d.ts +3 -0
- package/lib/utils/routing-tables.schemas.js +22 -0
- package/lib/utils/routing-tables.schemas.js.map +1 -0
- 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,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;
|