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,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TunnelPrlSchema = void 0;
|
|
4
|
+
const schemas_1 = require("../../common/constants/schemas");
|
|
5
|
+
exports.TunnelPrlSchema = {
|
|
6
|
+
$id: schemas_1.SchemaIds.TunnelPrl,
|
|
7
|
+
type: 'object',
|
|
8
|
+
required: ['dev'],
|
|
9
|
+
properties: {
|
|
10
|
+
dev: {
|
|
11
|
+
type: 'string',
|
|
12
|
+
minLength: 1
|
|
13
|
+
},
|
|
14
|
+
'prl-default': {
|
|
15
|
+
type: 'string',
|
|
16
|
+
format: 'ip-or-any',
|
|
17
|
+
minLength: 1,
|
|
18
|
+
nullable: true
|
|
19
|
+
},
|
|
20
|
+
'prl-nodefault': {
|
|
21
|
+
type: 'string',
|
|
22
|
+
format: 'ip-or-any',
|
|
23
|
+
minLength: 1,
|
|
24
|
+
nullable: true
|
|
25
|
+
},
|
|
26
|
+
'prl-delete': {
|
|
27
|
+
type: 'string',
|
|
28
|
+
format: 'ip-or-any',
|
|
29
|
+
minLength: 1,
|
|
30
|
+
nullable: true
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=prl.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prl.schema.js","sourceRoot":"","sources":["../../../src/commands/tunnel/prl.schema.ts"],"names":[],"mappings":";;;AAEA,4DAA2D;AAG9C,QAAA,eAAe,GAAqC;IAC/D,GAAG,EAAS,mBAAS,CAAC,SAAS;IAC/B,IAAI,EAAQ,QAAQ;IACpB,QAAQ,EAAI,CAAC,KAAK,CAAC;IACnB,UAAU,EAAE;QACV,GAAG,EAAc;YACf,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;SACb;QACD,aAAa,EAAI;YACf,IAAI,EAAO,QAAQ;YACnB,MAAM,EAAK,WAAW;YACtB,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAG,IAAI;SAChB;QACD,eAAe,EAAE;YACf,IAAI,EAAO,QAAQ;YACnB,MAAM,EAAK,WAAW;YACtB,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAG,IAAI;SAChB;QACD,YAAY,EAAK;YACf,IAAI,EAAO,QAAQ;YACnB,MAAM,EAAK,WAAW;YACtB,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAG,IAAI;SAChB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tunnel available modes.
|
|
3
|
+
* @category Constants
|
|
4
|
+
*/
|
|
5
|
+
export declare enum TunnelModes {
|
|
6
|
+
Ipip = "ipip",
|
|
7
|
+
Sit = "sit",
|
|
8
|
+
Isatap = "isatap",
|
|
9
|
+
Gre = "gre",
|
|
10
|
+
Ip6ip6 = "ip6ip6",
|
|
11
|
+
Ipip6 = "ipip6",
|
|
12
|
+
Ip6gre = "ip6gre",
|
|
13
|
+
vti6 = "vti6",
|
|
14
|
+
Any = "any"
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Tunnel Info.
|
|
18
|
+
* TODO: Need help to build this undocumented & comprehensive interface.
|
|
19
|
+
*
|
|
20
|
+
* @category Interfaces
|
|
21
|
+
*/
|
|
22
|
+
export interface TunnelInfo {
|
|
23
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TunnelModes = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Tunnel available modes.
|
|
6
|
+
* @category Constants
|
|
7
|
+
*/
|
|
8
|
+
var TunnelModes;
|
|
9
|
+
(function (TunnelModes) {
|
|
10
|
+
// IPv4
|
|
11
|
+
TunnelModes["Ipip"] = "ipip";
|
|
12
|
+
TunnelModes["Sit"] = "sit";
|
|
13
|
+
TunnelModes["Isatap"] = "isatap";
|
|
14
|
+
TunnelModes["Gre"] = "gre";
|
|
15
|
+
//
|
|
16
|
+
// IPv6
|
|
17
|
+
//
|
|
18
|
+
TunnelModes["Ip6ip6"] = "ip6ip6";
|
|
19
|
+
TunnelModes["Ipip6"] = "ipip6";
|
|
20
|
+
TunnelModes["Ip6gre"] = "ip6gre";
|
|
21
|
+
TunnelModes["vti6"] = "vti6";
|
|
22
|
+
TunnelModes["Any"] = "any";
|
|
23
|
+
})(TunnelModes || (exports.TunnelModes = TunnelModes = {}));
|
|
24
|
+
//# sourceMappingURL=tunnel.constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tunnel.constants.js","sourceRoot":"","sources":["../../src/commands/tunnel.constants.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,IAAY,WAcX;AAdD,WAAY,WAAW;IACrB,OAAO;IACP,4BAAe,CAAA;IACf,0BAAc,CAAA;IACd,gCAAiB,CAAA;IACjB,0BAAc,CAAA;IACd,EAAE;IACF,OAAO;IACP,EAAE;IACF,gCAAiB,CAAA;IACjB,8BAAgB,CAAA;IAChB,gCAAiB,CAAA;IACjB,4BAAe,CAAA;IACf,0BAAc,CAAA;AAChB,CAAC,EAdW,WAAW,2BAAX,WAAW,QActB"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import Command from '../common/classes/command';
|
|
2
|
+
import { Empty, GlobalOptions } from '../common/interfaces/common';
|
|
3
|
+
import { TunnelAddOptions } from './tunnel/add.interfaces';
|
|
4
|
+
import { TunnelInfo } from './tunnel.constants';
|
|
5
|
+
import { TunnelPrlOptions } from './tunnel/prl.interfaces';
|
|
6
|
+
import { Tunnel6rdOptions } from './tunnel/6rd.interfaces';
|
|
7
|
+
/**
|
|
8
|
+
* Add a new tunnel.
|
|
9
|
+
*
|
|
10
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
11
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
12
|
+
*
|
|
13
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
14
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
*
|
|
18
|
+
* Import module
|
|
19
|
+
* ```
|
|
20
|
+
* import { tunnel } from 'iproutejs';
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* Create a new tunnel
|
|
24
|
+
* ```
|
|
25
|
+
* await tunnel.add({
|
|
26
|
+
* name : 'tun0',
|
|
27
|
+
* mode : TunnelModes.Gre,
|
|
28
|
+
* remote: '203.0.113.4',
|
|
29
|
+
* local : '203.0.113.5',
|
|
30
|
+
* dev : 'eth0'
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare function add(options: TunnelAddOptions, globalOptions?: GlobalOptions): Promise<Command<TunnelAddOptions>>;
|
|
35
|
+
/**
|
|
36
|
+
* Destroy a tunnel.
|
|
37
|
+
*
|
|
38
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
39
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
40
|
+
*
|
|
41
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
42
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
*
|
|
46
|
+
* Import module
|
|
47
|
+
* ```
|
|
48
|
+
* import { tunnel } from 'iproutejs';
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* Delete a tunnel
|
|
52
|
+
* ```
|
|
53
|
+
* await tunnel.del({
|
|
54
|
+
* name: 'tun0'
|
|
55
|
+
* });
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
export declare function del(options: TunnelAddOptions, globalOptions?: GlobalOptions): Promise<Command<TunnelAddOptions>>;
|
|
59
|
+
/**
|
|
60
|
+
* Change an existing tunnel.
|
|
61
|
+
*
|
|
62
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
63
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
66
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
*
|
|
70
|
+
* Import module
|
|
71
|
+
* ```
|
|
72
|
+
* import { tunnel } from 'iproutejs';
|
|
73
|
+
* ```
|
|
74
|
+
*
|
|
75
|
+
* Modify an existing tunnel
|
|
76
|
+
* ```
|
|
77
|
+
* await tunnel.change({
|
|
78
|
+
* name : 'tun0',
|
|
79
|
+
* mode : TunnelModes.Ipip,
|
|
80
|
+
* remote: '203.0.113.6',
|
|
81
|
+
* local : '203.0.113.7',
|
|
82
|
+
* dev : 'eth1'
|
|
83
|
+
* });
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
export declare function change(options: TunnelAddOptions, globalOptions?: GlobalOptions): Promise<Command<TunnelAddOptions>>;
|
|
87
|
+
/**
|
|
88
|
+
* List tunnels.
|
|
89
|
+
*
|
|
90
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
93
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
*
|
|
97
|
+
* Import module
|
|
98
|
+
* ```
|
|
99
|
+
* import { tunnel } from 'iproutejs';
|
|
100
|
+
* ```
|
|
101
|
+
*
|
|
102
|
+
* Show tunnels
|
|
103
|
+
* ```
|
|
104
|
+
* const entries = await tunnel.show({});
|
|
105
|
+
* ```
|
|
106
|
+
*/
|
|
107
|
+
export declare function show(globalOptions?: GlobalOptions): Promise<Command<Empty> | TunnelInfo[]>;
|
|
108
|
+
/**
|
|
109
|
+
* Potential router list (ISATAP only).
|
|
110
|
+
*
|
|
111
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
112
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
113
|
+
*
|
|
114
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
115
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
116
|
+
*/
|
|
117
|
+
export declare function prl(options: TunnelPrlOptions, globalOptions?: GlobalOptions): Promise<Command<TunnelPrlOptions>>;
|
|
118
|
+
/**
|
|
119
|
+
* Specifies the 6rd (IPv6 Rapid Deployment) tunneling mechanism.
|
|
120
|
+
*
|
|
121
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
122
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
123
|
+
*
|
|
124
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
125
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
126
|
+
*
|
|
127
|
+
* @example
|
|
128
|
+
*
|
|
129
|
+
* Import module
|
|
130
|
+
* ```
|
|
131
|
+
* import { tunnel } from 'iproutejs';
|
|
132
|
+
* ```
|
|
133
|
+
*
|
|
134
|
+
* Configures 6rd tunneling mechanism.
|
|
135
|
+
* ```
|
|
136
|
+
* await tunnel.6rd({
|
|
137
|
+
* dev : 'eth0',
|
|
138
|
+
* 6rd_prefix : '2001:db8::'
|
|
139
|
+
* });
|
|
140
|
+
* ```
|
|
141
|
+
*/
|
|
142
|
+
export declare function v6Rd(options: Tunnel6rdOptions, globalOptions?: GlobalOptions): Promise<Command<Tunnel6rdOptions>>;
|
|
143
|
+
declare const _default: {
|
|
144
|
+
add: typeof add;
|
|
145
|
+
del: typeof del;
|
|
146
|
+
change: typeof change;
|
|
147
|
+
show: typeof show;
|
|
148
|
+
prl: typeof prl;
|
|
149
|
+
v6Rd: typeof v6Rd;
|
|
150
|
+
};
|
|
151
|
+
export default _default;
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.v6Rd = exports.prl = exports.show = exports.change = exports.del = exports.add = void 0;
|
|
16
|
+
const command_with_returned_data_1 = __importDefault(require("../common/classes/command-with-returned-data"));
|
|
17
|
+
const command_1 = __importDefault(require("../common/classes/command"));
|
|
18
|
+
const schemas_1 = require("../common/constants/schemas");
|
|
19
|
+
const add_schema_1 = require("./tunnel/add.schema");
|
|
20
|
+
const prl_schema_1 = require("./tunnel/prl.schema");
|
|
21
|
+
const _6rd_schema_1 = require("./tunnel/6rd.schema");
|
|
22
|
+
/**
|
|
23
|
+
* Add a new tunnel.
|
|
24
|
+
*
|
|
25
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
26
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
27
|
+
*
|
|
28
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
29
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
*
|
|
33
|
+
* Import module
|
|
34
|
+
* ```
|
|
35
|
+
* import { tunnel } from 'iproutejs';
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* Create a new tunnel
|
|
39
|
+
* ```
|
|
40
|
+
* await tunnel.add({
|
|
41
|
+
* name : 'tun0',
|
|
42
|
+
* mode : TunnelModes.Gre,
|
|
43
|
+
* remote: '203.0.113.4',
|
|
44
|
+
* local : '203.0.113.5',
|
|
45
|
+
* dev : 'eth0'
|
|
46
|
+
* });
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
function add(options, globalOptions = {}) {
|
|
50
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
+
const cmd = ['ip', 'tunnel', 'add'];
|
|
52
|
+
const ipCmd = new command_1.default(schemas_1.SchemaIds.TunnelAdd, add_schema_1.TunnelAddSchema, options, globalOptions, cmd);
|
|
53
|
+
return yield ipCmd.exec();
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
exports.add = add;
|
|
57
|
+
/**
|
|
58
|
+
* Destroy a tunnel.
|
|
59
|
+
*
|
|
60
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
61
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
64
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
*
|
|
68
|
+
* Import module
|
|
69
|
+
* ```
|
|
70
|
+
* import { tunnel } from 'iproutejs';
|
|
71
|
+
* ```
|
|
72
|
+
*
|
|
73
|
+
* Delete a tunnel
|
|
74
|
+
* ```
|
|
75
|
+
* await tunnel.del({
|
|
76
|
+
* name: 'tun0'
|
|
77
|
+
* });
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
function del(options, globalOptions = {}) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
const cmd = ['ip', 'tunnel', 'del'];
|
|
83
|
+
const ipCmd = new command_1.default(schemas_1.SchemaIds.TunnelAdd, add_schema_1.TunnelAddSchema, options, globalOptions, cmd);
|
|
84
|
+
return yield ipCmd.exec();
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
exports.del = del;
|
|
88
|
+
/**
|
|
89
|
+
* Change an existing tunnel.
|
|
90
|
+
*
|
|
91
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
92
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
95
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
*
|
|
99
|
+
* Import module
|
|
100
|
+
* ```
|
|
101
|
+
* import { tunnel } from 'iproutejs';
|
|
102
|
+
* ```
|
|
103
|
+
*
|
|
104
|
+
* Modify an existing tunnel
|
|
105
|
+
* ```
|
|
106
|
+
* await tunnel.change({
|
|
107
|
+
* name : 'tun0',
|
|
108
|
+
* mode : TunnelModes.Ipip,
|
|
109
|
+
* remote: '203.0.113.6',
|
|
110
|
+
* local : '203.0.113.7',
|
|
111
|
+
* dev : 'eth1'
|
|
112
|
+
* });
|
|
113
|
+
* ```
|
|
114
|
+
*/
|
|
115
|
+
function change(options, globalOptions = {}) {
|
|
116
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
+
const cmd = ['ip', 'tunnel', 'change'];
|
|
118
|
+
const ipCmd = new command_1.default(schemas_1.SchemaIds.TunnelAdd, add_schema_1.TunnelAddSchema, options, globalOptions, cmd);
|
|
119
|
+
return yield ipCmd.exec();
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
exports.change = change;
|
|
123
|
+
/**
|
|
124
|
+
* List tunnels.
|
|
125
|
+
*
|
|
126
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
127
|
+
*
|
|
128
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
129
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
*
|
|
133
|
+
* Import module
|
|
134
|
+
* ```
|
|
135
|
+
* import { tunnel } from 'iproutejs';
|
|
136
|
+
* ```
|
|
137
|
+
*
|
|
138
|
+
* Show tunnels
|
|
139
|
+
* ```
|
|
140
|
+
* const entries = await tunnel.show({});
|
|
141
|
+
* ```
|
|
142
|
+
*/
|
|
143
|
+
function show(globalOptions = {}) {
|
|
144
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
145
|
+
const cmd = ['ip', 'tunnel', 'show'];
|
|
146
|
+
const ipCmd = new command_with_returned_data_1.default(schemas_1.SchemaIds.Empty, schemas_1.EmptySchema, {}, Object.assign(Object.assign({}, globalOptions), {
|
|
147
|
+
// Overrides for a better show.
|
|
148
|
+
'-details': true, '-statistics': true, '-json': true }), cmd);
|
|
149
|
+
return yield ipCmd.exec();
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
exports.show = show;
|
|
153
|
+
/**
|
|
154
|
+
* Potential router list (ISATAP only).
|
|
155
|
+
*
|
|
156
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
157
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
158
|
+
*
|
|
159
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
160
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
161
|
+
*/
|
|
162
|
+
function prl(options, globalOptions = {}) {
|
|
163
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
164
|
+
const cmd = ['ip', 'tunnel', 'prl'];
|
|
165
|
+
const ipCmd = new command_1.default(schemas_1.SchemaIds.TunnelPrl, prl_schema_1.TunnelPrlSchema, options, globalOptions, cmd);
|
|
166
|
+
return yield ipCmd.exec();
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
exports.prl = prl;
|
|
170
|
+
/**
|
|
171
|
+
* Specifies the 6rd (IPv6 Rapid Deployment) tunneling mechanism.
|
|
172
|
+
*
|
|
173
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
174
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
175
|
+
*
|
|
176
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
177
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
178
|
+
*
|
|
179
|
+
* @example
|
|
180
|
+
*
|
|
181
|
+
* Import module
|
|
182
|
+
* ```
|
|
183
|
+
* import { tunnel } from 'iproutejs';
|
|
184
|
+
* ```
|
|
185
|
+
*
|
|
186
|
+
* Configures 6rd tunneling mechanism.
|
|
187
|
+
* ```
|
|
188
|
+
* await tunnel.6rd({
|
|
189
|
+
* dev : 'eth0',
|
|
190
|
+
* 6rd_prefix : '2001:db8::'
|
|
191
|
+
* });
|
|
192
|
+
* ```
|
|
193
|
+
*/
|
|
194
|
+
function v6Rd(options, globalOptions = {}) {
|
|
195
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
196
|
+
const cmd = ['ip', 'tunnel', '6rd'];
|
|
197
|
+
const ipCmd = new command_1.default(schemas_1.SchemaIds.Tunnel6rd, _6rd_schema_1.Tunnel6rdSchema, options, globalOptions, cmd);
|
|
198
|
+
return yield ipCmd.exec();
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
exports.v6Rd = v6Rd;
|
|
202
|
+
exports.default = {
|
|
203
|
+
add,
|
|
204
|
+
del,
|
|
205
|
+
change,
|
|
206
|
+
show,
|
|
207
|
+
prl,
|
|
208
|
+
v6Rd
|
|
209
|
+
};
|
|
210
|
+
//# sourceMappingURL=tunnel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tunnel.js","sourceRoot":"","sources":["../../src/commands/tunnel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,8GAAmF;AACnF,wEAAgD;AAChD,yDAAqE;AAGrE,oDAAsD;AAEtD,oDAAsD;AAGtD,qDAAsD;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,SAAsB,GAAG,CAAC,OAAyB,EACzB,gBAA+B,EAAE;;QAEzD,MAAM,GAAG,GAAG,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;QAEpC,MAAM,KAAK,GAAG,IAAI,iBAAO,CACvB,mBAAS,CAAC,SAAS,EACnB,4BAAe,EACf,OAAO,EACP,aAAa,EACb,GAAG,CAAC,CAAC;QAEP,OAAO,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC;IAC5B,CAAC;CAAA;AAbD,kBAaC;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAsB,GAAG,CAAC,OAAyB,EACzB,gBAA+B,EAAE;;QAEzD,MAAM,GAAG,GAAG,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;QAEpC,MAAM,KAAK,GAAG,IAAI,iBAAO,CACvB,mBAAS,CAAC,SAAS,EACnB,4BAAe,EACf,OAAO,EACP,aAAa,EACb,GAAG,CAAC,CAAC;QAEP,OAAO,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC;IAC5B,CAAC;CAAA;AAbD,kBAaC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,SAAsB,MAAM,CAAC,OAAyB,EACzB,gBAA+B,EAAE;;QAE5D,MAAM,GAAG,GAAG,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;QAEvC,MAAM,KAAK,GAAG,IAAI,iBAAO,CACvB,mBAAS,CAAC,SAAS,EACnB,4BAAe,EACf,OAAO,EACP,aAAa,EACb,GAAG,CAAC,CAAC;QAEP,OAAO,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC;IAC5B,CAAC;CAAA;AAbD,wBAaC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAsB,IAAI,CAAC,gBAA+B,EAAE;;QAE1D,MAAM,GAAG,GAAG,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;QAErC,MAAM,KAAK,GAAG,IAAI,oCAAuB,CACvC,mBAAS,CAAC,KAAK,EACf,qBAAW,EACX,EAAE,kCAEG,aAAa;YAChB,+BAA+B;YAC/B,UAAU,EAAK,IAAI,EACnB,aAAa,EAAE,IAAI,EACnB,OAAO,EAAQ,IAAI,KAErB,GAAG,CAAC,CAAC;QAEP,OAAO,MAAM,KAAK,CAAC,IAAI,EAAgB,CAAC;IAC1C,CAAC;CAAA;AAlBD,oBAkBC;AAED;;;;;;;;GAQG;AACH,SAAsB,GAAG,CAAC,OAAyB,EACzB,gBAA+B,EAAE;;QAEzD,MAAM,GAAG,GAAG,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;QAEpC,MAAM,KAAK,GAAG,IAAI,iBAAO,CACvB,mBAAS,CAAC,SAAS,EACnB,4BAAe,EACf,OAAO,EACP,aAAa,EACb,GAAG,CAAC,CAAC;QAEP,OAAO,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC;IAC5B,CAAC;CAAA;AAbD,kBAaC;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAsB,IAAI,CAAC,OAAyB,EACzB,gBAA+B,EAAE;;QAE1D,MAAM,GAAG,GAAG,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;QAEpC,MAAM,KAAK,GAAG,IAAI,iBAAO,CACvB,mBAAS,CAAC,SAAS,EACnB,6BAAe,EACf,OAAO,EACP,aAAa,EACb,GAAG,CAAC,CAAC;QAEP,OAAO,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC;IAC5B,CAAC;CAAA;AAbD,oBAaC;AAED,kBAAe;IACb,GAAG;IACH,GAAG;IACH,MAAM;IACN,IAAI;IACJ,GAAG;IACH,IAAI;CACL,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { TunTapTunnelModes } from '../tuntap.constants';
|
|
2
|
+
/**
|
|
3
|
+
* Tunnel add options.
|
|
4
|
+
* @category Interfaces
|
|
5
|
+
*/
|
|
6
|
+
export interface TunTapTunnelAddOptions {
|
|
7
|
+
/** The physical device to attach this tunnel to. */
|
|
8
|
+
dev?: string;
|
|
9
|
+
/** Set the tunnel mode. */
|
|
10
|
+
mode: TunTapTunnelModes;
|
|
11
|
+
/** XXX */
|
|
12
|
+
user?: string | number;
|
|
13
|
+
/** XXX */
|
|
14
|
+
group?: string | number;
|
|
15
|
+
/** XXX */
|
|
16
|
+
one_queue?: true;
|
|
17
|
+
/** XXX */
|
|
18
|
+
pi?: true;
|
|
19
|
+
/** XXX */
|
|
20
|
+
vnet_hdr?: true;
|
|
21
|
+
/** XXX */
|
|
22
|
+
multi_queue?: true;
|
|
23
|
+
/** XXX */
|
|
24
|
+
name?: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add.interfaces.js","sourceRoot":"","sources":["../../../src/commands/tuntap/add.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TunTapAddSchema = void 0;
|
|
4
|
+
const schemas_1 = require("../../common/constants/schemas");
|
|
5
|
+
const tuntap_constants_1 = require("../tuntap.constants");
|
|
6
|
+
exports.TunTapAddSchema = {
|
|
7
|
+
$id: schemas_1.SchemaIds.TunTapAdd,
|
|
8
|
+
type: 'object',
|
|
9
|
+
required: ['mode'],
|
|
10
|
+
properties: {
|
|
11
|
+
dev: {
|
|
12
|
+
type: 'string',
|
|
13
|
+
minLength: 1,
|
|
14
|
+
nullable: true
|
|
15
|
+
},
|
|
16
|
+
mode: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
enum: Object.values(tuntap_constants_1.TunTapTunnelModes)
|
|
19
|
+
},
|
|
20
|
+
user: {
|
|
21
|
+
type: ['string', 'integer'],
|
|
22
|
+
nullable: true,
|
|
23
|
+
oneOf: [
|
|
24
|
+
{
|
|
25
|
+
type: 'string',
|
|
26
|
+
minLength: 1
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
type: 'integer',
|
|
30
|
+
minimum: 0
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
group: {
|
|
35
|
+
type: ['string', 'integer'],
|
|
36
|
+
nullable: true,
|
|
37
|
+
anyOf: [
|
|
38
|
+
{
|
|
39
|
+
type: 'string',
|
|
40
|
+
minLength: 1,
|
|
41
|
+
nullable: true
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
type: 'integer',
|
|
45
|
+
minimum: 0,
|
|
46
|
+
nullable: true
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
one_queue: {
|
|
51
|
+
type: 'boolean',
|
|
52
|
+
enum: [true],
|
|
53
|
+
nullable: true
|
|
54
|
+
},
|
|
55
|
+
pi: {
|
|
56
|
+
type: 'boolean',
|
|
57
|
+
enum: [true],
|
|
58
|
+
nullable: true
|
|
59
|
+
},
|
|
60
|
+
vnet_hdr: {
|
|
61
|
+
type: 'boolean',
|
|
62
|
+
enum: [true],
|
|
63
|
+
nullable: true
|
|
64
|
+
},
|
|
65
|
+
multi_queue: {
|
|
66
|
+
type: 'boolean',
|
|
67
|
+
enum: [true],
|
|
68
|
+
nullable: true
|
|
69
|
+
},
|
|
70
|
+
name: {
|
|
71
|
+
type: 'string',
|
|
72
|
+
minLength: 1,
|
|
73
|
+
nullable: true
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
//# sourceMappingURL=add.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add.schema.js","sourceRoot":"","sources":["../../../src/commands/tuntap/add.schema.ts"],"names":[],"mappings":";;;AAEA,4DAA2D;AAE3D,0DAAwD;AAE3C,QAAA,eAAe,GAA2C;IACrE,GAAG,EAAS,mBAAS,CAAC,SAAS;IAC/B,IAAI,EAAQ,QAAQ;IACpB,QAAQ,EAAI,CAAC,MAAM,CAAC;IACpB,UAAU,EAAE;QACV,GAAG,EAAU;YACX,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAG,IAAI;SAChB;QACD,IAAI,EAAS;YACX,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,oCAAiB,CAAwB;SAC9D;QACD,IAAI,EAAS;YACX,IAAI,EAAM,CAAC,QAAQ,EAAE,SAAS,CAAC;YAC/B,QAAQ,EAAE,IAAI;YACd,KAAK,EAAK;gBACR;oBACE,IAAI,EAAO,QAAQ;oBACnB,SAAS,EAAE,CAAC;iBACb;gBACD;oBACE,IAAI,EAAK,SAAS;oBAClB,OAAO,EAAE,CAAC;iBACX;aACF;SACF;QACD,KAAK,EAAQ;YACX,IAAI,EAAM,CAAC,QAAQ,EAAE,SAAS,CAAC;YAC/B,QAAQ,EAAE,IAAI;YACd,KAAK,EAAK;gBACR;oBACE,IAAI,EAAO,QAAQ;oBACnB,SAAS,EAAE,CAAC;oBACZ,QAAQ,EAAG,IAAI;iBAChB;gBACD;oBACE,IAAI,EAAM,SAAS;oBACnB,OAAO,EAAG,CAAC;oBACX,QAAQ,EAAE,IAAI;iBACf;aACF;SACF;QACD,SAAS,EAAI;YACX,IAAI,EAAM,SAAS;YACnB,IAAI,EAAM,CAAC,IAAI,CAAC;YAChB,QAAQ,EAAE,IAAI;SACf;QACD,EAAE,EAAW;YACX,IAAI,EAAM,SAAS;YACnB,IAAI,EAAM,CAAC,IAAI,CAAC;YAChB,QAAQ,EAAE,IAAI;SACf;QACD,QAAQ,EAAK;YACX,IAAI,EAAM,SAAS;YACnB,IAAI,EAAM,CAAC,IAAI,CAAC;YAChB,QAAQ,EAAE,IAAI;SACf;QACD,WAAW,EAAE;YACX,IAAI,EAAM,SAAS;YACnB,IAAI,EAAM,CAAC,IAAI,CAAC;YAChB,QAAQ,EAAE,IAAI;SACf;QACD,IAAI,EAAS;YACX,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAG,IAAI;SAChB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TunTapTunnelAddOptions } from './add.interfaces';
|
|
2
|
+
/**
|
|
3
|
+
* Tunnel show options.
|
|
4
|
+
* @category Interfaces
|
|
5
|
+
*/
|
|
6
|
+
export type TunTapTunnelShowOptions = Partial<Pick<TunTapTunnelAddOptions, 'mode'>> & Omit<TunTapTunnelAddOptions, 'mode'>;
|
|
7
|
+
/**
|
|
8
|
+
* Tunnel Info.
|
|
9
|
+
* TODO: Need help to build this undocumented & comprehensive interface.
|
|
10
|
+
*
|
|
11
|
+
* @category Interfaces
|
|
12
|
+
*/
|
|
13
|
+
export interface TunTapTunnelInfo {
|
|
14
|
+
ifname: string;
|
|
15
|
+
flags: string[];
|
|
16
|
+
processes: Array<any>;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show.interfaces.js","sourceRoot":"","sources":["../../../src/commands/tuntap/show.interfaces.ts"],"names":[],"mappings":""}
|