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,205 @@
|
|
|
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.show = exports.flush = exports.restore = exports.save = exports.del = exports.add = void 0;
|
|
16
|
+
const command_with_redirect_from_filepath_1 = __importDefault(require("../common/classes/command-with-redirect-from-filepath"));
|
|
17
|
+
const command_with_redirect_to_filepath_1 = __importDefault(require("../common/classes/command-with-redirect-to-filepath"));
|
|
18
|
+
const command_with_returned_data_1 = __importDefault(require("../common/classes/command-with-returned-data"));
|
|
19
|
+
const command_1 = __importDefault(require("../common/classes/command"));
|
|
20
|
+
const schemas_1 = require("../common/constants/schemas");
|
|
21
|
+
const add_schema_1 = require("./rule/add.schema");
|
|
22
|
+
const show_schema_1 = require("./rule/show.schema");
|
|
23
|
+
/**
|
|
24
|
+
* Insert a new rule.
|
|
25
|
+
*
|
|
26
|
+
* Warning: Changes to the RPDB made with these commands do not become active immediately.
|
|
27
|
+
* It is assumed that after a script finishes a batch of updates, it flushes the routing cache with
|
|
28
|
+
* `ip route flush cache`.
|
|
29
|
+
*
|
|
30
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
31
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
32
|
+
*
|
|
33
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
34
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
*
|
|
38
|
+
* Import module
|
|
39
|
+
* ```
|
|
40
|
+
* import { rule } from 'iproutejs';
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* Unicast type rule (the default if not specified)
|
|
44
|
+
* ```
|
|
45
|
+
* await rule.add({
|
|
46
|
+
* from: '192.203.80.0/24',
|
|
47
|
+
* table: 300,
|
|
48
|
+
* preference: 220
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* NAT type rule
|
|
53
|
+
* ```
|
|
54
|
+
* await rule.add({
|
|
55
|
+
* from: '193.233.7.83',
|
|
56
|
+
* table: 1,
|
|
57
|
+
* preference: 320,
|
|
58
|
+
* nat: '192.203.80.144'
|
|
59
|
+
* });
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
function add(options, globalOptions = {}) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
const cmd = ['ip', 'rule', 'add'];
|
|
65
|
+
const ipCmd = new command_1.default(schemas_1.SchemaIds.RuleAdd, add_schema_1.RuleAddSchema, options, globalOptions, cmd);
|
|
66
|
+
return yield ipCmd.exec();
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
exports.add = add;
|
|
70
|
+
/**
|
|
71
|
+
* Delete a rule.
|
|
72
|
+
*
|
|
73
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
74
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
77
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
*
|
|
81
|
+
* Import module
|
|
82
|
+
* ```
|
|
83
|
+
* import { rule } from 'iproutejs';
|
|
84
|
+
* ```
|
|
85
|
+
*
|
|
86
|
+
* Delete the unused default rule
|
|
87
|
+
* ```
|
|
88
|
+
* await rule.del({
|
|
89
|
+
* preference: 32767
|
|
90
|
+
* });
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
93
|
+
function del(options, globalOptions = {}) {
|
|
94
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
95
|
+
const cmd = ['ip', 'rule', 'delete'];
|
|
96
|
+
const ipCmd = new command_1.default(schemas_1.SchemaIds.RuleAdd, add_schema_1.RuleAddSchema, options, globalOptions, cmd);
|
|
97
|
+
return yield ipCmd.exec();
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
exports.del = del;
|
|
101
|
+
/**
|
|
102
|
+
* Save rule configuration into a file.
|
|
103
|
+
*
|
|
104
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
107
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
108
|
+
*/
|
|
109
|
+
function save(globalOptions) {
|
|
110
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
111
|
+
const cmd = ['ip', 'rule', 'save'];
|
|
112
|
+
const ipCmd = new command_with_redirect_to_filepath_1.default(schemas_1.SchemaIds.Empty, schemas_1.EmptySchema, {}, globalOptions, cmd);
|
|
113
|
+
return yield ipCmd.exec();
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
exports.save = save;
|
|
117
|
+
/**
|
|
118
|
+
* Restore rule configuration from a file previously generated by {@link save}.
|
|
119
|
+
*
|
|
120
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
121
|
+
*
|
|
122
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
123
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
124
|
+
*/
|
|
125
|
+
function restore(globalOptions) {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
+
const cmd = ['ip', 'rule', 'restore'];
|
|
128
|
+
const ipCmd = new command_with_redirect_from_filepath_1.default(schemas_1.SchemaIds.Empty, schemas_1.EmptySchema, {}, globalOptions, cmd);
|
|
129
|
+
return yield ipCmd.exec();
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
exports.restore = restore;
|
|
133
|
+
/**
|
|
134
|
+
* Deletes all rules.
|
|
135
|
+
*
|
|
136
|
+
* Warning: Changes to the RPDB made with these commands do not become active immediately.
|
|
137
|
+
* It is assumed that after a script finishes a batch of updates, it flushes the routing cache with
|
|
138
|
+
* `ip route flush cache`.
|
|
139
|
+
*
|
|
140
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
141
|
+
*
|
|
142
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
143
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
144
|
+
*
|
|
145
|
+
* @example
|
|
146
|
+
*
|
|
147
|
+
* Import module
|
|
148
|
+
* ```
|
|
149
|
+
* import { rule } from 'iproutejs';
|
|
150
|
+
* ```
|
|
151
|
+
*
|
|
152
|
+
* Flush the rules
|
|
153
|
+
* ```
|
|
154
|
+
* await rule.flush();
|
|
155
|
+
* ```
|
|
156
|
+
*/
|
|
157
|
+
function flush(globalOptions = {}) {
|
|
158
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
159
|
+
const cmd = ['ip', 'rule', 'flush'];
|
|
160
|
+
const ipCmd = new command_1.default(schemas_1.SchemaIds.Empty, schemas_1.EmptySchema, {}, globalOptions, cmd);
|
|
161
|
+
return yield ipCmd.exec();
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
exports.flush = flush;
|
|
165
|
+
/**
|
|
166
|
+
* Shows installed rules.
|
|
167
|
+
*
|
|
168
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
169
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
170
|
+
*
|
|
171
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
172
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
173
|
+
*
|
|
174
|
+
* @example
|
|
175
|
+
*
|
|
176
|
+
* Import module
|
|
177
|
+
* ```
|
|
178
|
+
* import { rule } from 'iproutejs';
|
|
179
|
+
* ```
|
|
180
|
+
*
|
|
181
|
+
* Show all rules
|
|
182
|
+
* ```
|
|
183
|
+
* const rules = await rule.show();
|
|
184
|
+
* ```
|
|
185
|
+
*/
|
|
186
|
+
function show(options = {}, globalOptions = {}) {
|
|
187
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
188
|
+
const cmd = ['ip', 'rule', 'show'];
|
|
189
|
+
const ipCmd = new command_with_returned_data_1.default(schemas_1.SchemaIds.RuleShow, show_schema_1.RuleShowSchema, options, Object.assign(Object.assign({}, globalOptions), {
|
|
190
|
+
// Overrides for a better show.
|
|
191
|
+
'-details': true, '-statistics': true, '-json': true }), cmd);
|
|
192
|
+
return yield ipCmd.exec();
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
exports.show = show;
|
|
196
|
+
exports.default = {
|
|
197
|
+
add,
|
|
198
|
+
del,
|
|
199
|
+
save,
|
|
200
|
+
restore,
|
|
201
|
+
flush,
|
|
202
|
+
show,
|
|
203
|
+
list: show
|
|
204
|
+
};
|
|
205
|
+
//# sourceMappingURL=rule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rule.js","sourceRoot":"","sources":["../../src/commands/rule.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gIAAoG;AACpG,4HAAkG;AAClG,8GAA2F;AAC3F,wEAAwE;AACxE,yDAA0E;AAS1E,kDAA8D;AAE9D,oDAA+D;AAE/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,SAAsB,GAAG,CAAC,OAAuB,EACvB,gBAA+B,EAAE;;QAEzD,MAAM,GAAG,GAAG,CAAE,IAAI,EAAE,MAAM,EAAE,KAAK,CAAE,CAAC;QAEpC,MAAM,KAAK,GAAG,IAAI,iBAAO,CACvB,mBAAS,CAAC,OAAO,EACjB,0BAAa,EACb,OAAO,EACP,aAAa,EACb,GAAG,CAAC,CAAC;QAEP,OAAO,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC;IAC5B,CAAC;CAAA;AAbD,kBAaC;AAED;;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,qBAAW,EACX,EAAE,EACF,aAAa,EACb,GAAG,CAAC,CAAC;QAEP,OAAO,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC;IAC5B,CAAC;CAAA;AAXD,sBAWC;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAsB,IAAI,CAAC,UAA+B,EAAE,EACjC,gBAA+B,EAAE;;QAE1D,MAAM,GAAG,GAAG,CAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAE,CAAC;QAErC,MAAM,KAAK,GAAG,IAAI,oCAAuB,CACvC,mBAAS,CAAC,QAAQ,EAClB,4BAAc,EACd,OAAO,kCAEF,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,EAAc,CAAC;IACxC,CAAC;CAAA;AAnBD,oBAmBC;AAED,kBAAe;IACb,GAAG;IACH,GAAG;IACH,IAAI;IACJ,OAAO;IACP,KAAK;IACL,IAAI;IACJ,IAAI,EAAE,IAAI;CACX,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tunnel 6rd options.
|
|
3
|
+
* @category Interfaces
|
|
4
|
+
*/
|
|
5
|
+
export interface Tunnel6rdOptions {
|
|
6
|
+
/**
|
|
7
|
+
* Bind the tunnel to the device NAME so that tunneled packets will only be routed via this
|
|
8
|
+
* device and will not be able to escape to another device when the route to endpoint changes.
|
|
9
|
+
*/
|
|
10
|
+
dev: string;
|
|
11
|
+
/** XXX. */
|
|
12
|
+
'6rd-prefix'?: string;
|
|
13
|
+
/** XXX. */
|
|
14
|
+
'6rd-relay_prefix'?: string;
|
|
15
|
+
/** XXX. */
|
|
16
|
+
'6rd-reset'?: true;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"6rd.interfaces.js","sourceRoot":"","sources":["../../../src/commands/tunnel/6rd.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Tunnel6rdSchema = void 0;
|
|
4
|
+
const schemas_1 = require("../../common/constants/schemas");
|
|
5
|
+
exports.Tunnel6rdSchema = {
|
|
6
|
+
$id: schemas_1.SchemaIds.Tunnel6rd,
|
|
7
|
+
type: 'object',
|
|
8
|
+
required: ['dev'],
|
|
9
|
+
properties: {
|
|
10
|
+
dev: {
|
|
11
|
+
type: 'string',
|
|
12
|
+
minLength: 1
|
|
13
|
+
},
|
|
14
|
+
'6rd-prefix': {
|
|
15
|
+
type: 'string',
|
|
16
|
+
format: 'ip-or-any',
|
|
17
|
+
minLength: 1,
|
|
18
|
+
nullable: true
|
|
19
|
+
},
|
|
20
|
+
'6rd-relay_prefix': {
|
|
21
|
+
type: 'string',
|
|
22
|
+
format: 'ip-or-any',
|
|
23
|
+
minLength: 1,
|
|
24
|
+
nullable: true
|
|
25
|
+
},
|
|
26
|
+
'6rd-reset': {
|
|
27
|
+
type: 'boolean',
|
|
28
|
+
enum: [true],
|
|
29
|
+
nullable: true
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=6rd.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"6rd.schema.js","sourceRoot":"","sources":["../../../src/commands/tunnel/6rd.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,EAAiB;YAClB,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;SACb;QACD,YAAY,EAAQ;YAClB,IAAI,EAAO,QAAQ;YACnB,MAAM,EAAK,WAAW;YACtB,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAG,IAAI;SAChB;QACD,kBAAkB,EAAE;YAClB,IAAI,EAAO,QAAQ;YACnB,MAAM,EAAK,WAAW;YACtB,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAG,IAAI;SAChB;QACD,WAAW,EAAS;YAClB,IAAI,EAAM,SAAS;YACnB,IAAI,EAAM,CAAC,IAAI,CAAC;YAChB,QAAQ,EAAE,IAAI;SACf;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { TunnelModes } from '../tunnel.constants';
|
|
2
|
+
/**
|
|
3
|
+
* Tunnel add options.
|
|
4
|
+
* @category Interfaces
|
|
5
|
+
*/
|
|
6
|
+
export interface TunnelAddOptions {
|
|
7
|
+
/** Select the tunnel device name. */
|
|
8
|
+
name?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Set the tunnel mode.
|
|
11
|
+
* Available modes depend on the encapsulating address family.
|
|
12
|
+
*/
|
|
13
|
+
mode?: TunnelModes;
|
|
14
|
+
/** Set the remote endpoint of the tunnel. */
|
|
15
|
+
remote?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Set the fixed local address for tunneled packets.
|
|
18
|
+
* It must be an address on another interface of this host.
|
|
19
|
+
*/
|
|
20
|
+
local?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Serialize packets.
|
|
23
|
+
* The `oseq` flag enables sequencing of outgoing packets.
|
|
24
|
+
* The `iseq` flag requires that all input packets are serialized.
|
|
25
|
+
* The `seq` flag is equivalent to the combination `iseq` `oseq`.
|
|
26
|
+
*
|
|
27
|
+
* Note: only GRE tunnels.
|
|
28
|
+
*/
|
|
29
|
+
seq?: boolean;
|
|
30
|
+
/** @see {@link seq} */
|
|
31
|
+
iseq?: boolean;
|
|
32
|
+
/** @see {@link seq} */
|
|
33
|
+
oseq?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Use keyed GRE with key `K`.
|
|
36
|
+
* `K` is either a number or an IP address-like dotted quad.
|
|
37
|
+
* The key parameter sets the key to use in both directions.
|
|
38
|
+
* The `ikey` and `okey` parameters set different keys for input and output.
|
|
39
|
+
*
|
|
40
|
+
* Note: only GRE tunnels.
|
|
41
|
+
*/
|
|
42
|
+
key?: number | string;
|
|
43
|
+
/** @see {@link key} */
|
|
44
|
+
ikey?: number | string;
|
|
45
|
+
/** @see {@link key} */
|
|
46
|
+
okey?: number | string;
|
|
47
|
+
/**
|
|
48
|
+
* Generate/require checksums for tunneled packets.
|
|
49
|
+
* The `ocsum` flag calculates checksums for outgoing packets.
|
|
50
|
+
* The `icsum` flag requires that all input packets have the correct checksum.
|
|
51
|
+
* The `csum` flag is equivalent to the combination `icsum` `ocsum`.
|
|
52
|
+
*
|
|
53
|
+
* Note: only GRE tunnels.
|
|
54
|
+
*/
|
|
55
|
+
csum?: boolean;
|
|
56
|
+
/** @see {@link csum} */
|
|
57
|
+
icsum?: boolean;
|
|
58
|
+
/** @see {@link csum} */
|
|
59
|
+
ocsum?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Set a fixed encapsulation limit. Default is 4.
|
|
62
|
+
* Note: only IPv6 tunnels.
|
|
63
|
+
*/
|
|
64
|
+
encaplimit?: number | 'none';
|
|
65
|
+
/**
|
|
66
|
+
* Set a fixed TTL (IPv4) or hoplimit (IPv6) `N` on tunneled packets.
|
|
67
|
+
* `N` is a number in the range 1-255.
|
|
68
|
+
* `0` is a special value meaning that packets inherit the TTL value.
|
|
69
|
+
* The default value for IPv4 tunnels is: `inherit`.
|
|
70
|
+
* The default value for IPv6 tunnels is: `64`.
|
|
71
|
+
*/
|
|
72
|
+
ttl?: number | 'inherit';
|
|
73
|
+
/** @see {@link ttl} */
|
|
74
|
+
hoplimit?: number | 'inherit';
|
|
75
|
+
/**
|
|
76
|
+
* Set the type of service (IPv4) or traffic class (IPv6) field on tunneled packets,
|
|
77
|
+
* which can be specified as either a two-digit hex value (e.g. `c0`) or a predefined string (e.g. `internet`).
|
|
78
|
+
* The value inherit causes the field to be copied from the original IP header.
|
|
79
|
+
* The values `inherit/STRING` or `inherit/00..ff` will set the field to STRING or` 00..ff`
|
|
80
|
+
* when tunneling non-IP packets.
|
|
81
|
+
*
|
|
82
|
+
* The default value is `00`.
|
|
83
|
+
*/
|
|
84
|
+
tos?: string;
|
|
85
|
+
/** @see {@link tos} */
|
|
86
|
+
dsfield?: string;
|
|
87
|
+
/** @see {@link tos} */
|
|
88
|
+
tclass?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Set a fixed flowlabel.
|
|
91
|
+
* Note: only IPv6 tunnels.
|
|
92
|
+
*/
|
|
93
|
+
flowlabel?: string;
|
|
94
|
+
/** XXX. */
|
|
95
|
+
pmtudisc?: true;
|
|
96
|
+
/**
|
|
97
|
+
* Disable Path MTU Discovery on this tunnel.
|
|
98
|
+
* It is enabled by default.
|
|
99
|
+
* Note that a fixed ttl is incompatible with this option: tunneling with a fixed ttl always makes pmtu discovery.
|
|
100
|
+
*
|
|
101
|
+
* @see {@link pmtudisc} */
|
|
102
|
+
nopmtudisc?: true;
|
|
103
|
+
/**
|
|
104
|
+
* Enable IPv4 DF suppression on this tunnel.
|
|
105
|
+
* Normally datagrams that exceed the MTU will be fragmented; the presence of the DF flag inhibits this,
|
|
106
|
+
* resulting instead in an ICMP Unreachable (Fragmentation Required) message.
|
|
107
|
+
* Enabling this attribute causes the DF flag to be ignored.
|
|
108
|
+
*/
|
|
109
|
+
'ignore-df'?: true;
|
|
110
|
+
/** @see {@link['ignore-df']} */
|
|
111
|
+
'noignore-df'?: true;
|
|
112
|
+
/**
|
|
113
|
+
* Allow remote endpoint on the local host.
|
|
114
|
+
* Note: only IPv6 tunnels.
|
|
115
|
+
*/
|
|
116
|
+
'allow-localremote'?: true;
|
|
117
|
+
/** @see {@link['allow-localremote']} */
|
|
118
|
+
'noallow-localremote'?: true;
|
|
119
|
+
/**
|
|
120
|
+
* Bind the tunnel to the device NAME so that tunneled packets will only be routed via this
|
|
121
|
+
* device and will not be able to escape to another device when the route to endpoint changes.
|
|
122
|
+
*/
|
|
123
|
+
dev?: string;
|
|
124
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add.interfaces.js","sourceRoot":"","sources":["../../../src/commands/tunnel/add.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TunnelAddSchema = void 0;
|
|
4
|
+
const schemas_1 = require("../../common/constants/schemas");
|
|
5
|
+
const tunnel_constants_1 = require("../tunnel.constants");
|
|
6
|
+
exports.TunnelAddSchema = {
|
|
7
|
+
$id: schemas_1.SchemaIds.TunnelAdd,
|
|
8
|
+
type: 'object',
|
|
9
|
+
required: [],
|
|
10
|
+
properties: {
|
|
11
|
+
name: {
|
|
12
|
+
type: 'string',
|
|
13
|
+
minLength: 1,
|
|
14
|
+
nullable: true
|
|
15
|
+
},
|
|
16
|
+
mode: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
enum: Object.values(tunnel_constants_1.TunnelModes),
|
|
19
|
+
nullable: true
|
|
20
|
+
},
|
|
21
|
+
remote: {
|
|
22
|
+
type: 'string',
|
|
23
|
+
format: 'ip-or-any',
|
|
24
|
+
minLength: 1,
|
|
25
|
+
nullable: true
|
|
26
|
+
},
|
|
27
|
+
local: {
|
|
28
|
+
type: 'string',
|
|
29
|
+
format: 'ip-or-any',
|
|
30
|
+
minLength: 1,
|
|
31
|
+
nullable: true
|
|
32
|
+
},
|
|
33
|
+
seq: {
|
|
34
|
+
type: 'boolean',
|
|
35
|
+
nullable: true
|
|
36
|
+
},
|
|
37
|
+
iseq: {
|
|
38
|
+
type: 'boolean',
|
|
39
|
+
nullable: true
|
|
40
|
+
},
|
|
41
|
+
oseq: {
|
|
42
|
+
type: 'boolean',
|
|
43
|
+
nullable: true
|
|
44
|
+
},
|
|
45
|
+
key: {
|
|
46
|
+
type: ['string', 'integer'],
|
|
47
|
+
nullable: true,
|
|
48
|
+
oneOf: [
|
|
49
|
+
{
|
|
50
|
+
type: 'string',
|
|
51
|
+
format: 'ipv4',
|
|
52
|
+
nullable: true
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
type: 'integer',
|
|
56
|
+
minimum: 0,
|
|
57
|
+
maximum: 4294967295,
|
|
58
|
+
nullable: true
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
ikey: {
|
|
63
|
+
type: ['string', 'integer'],
|
|
64
|
+
nullable: true,
|
|
65
|
+
oneOf: [
|
|
66
|
+
{
|
|
67
|
+
type: 'string',
|
|
68
|
+
format: 'ipv4',
|
|
69
|
+
nullable: true
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
type: 'integer',
|
|
73
|
+
minimum: 0,
|
|
74
|
+
maximum: 4294967295,
|
|
75
|
+
nullable: true
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
okey: {
|
|
80
|
+
type: ['string', 'integer'],
|
|
81
|
+
nullable: true,
|
|
82
|
+
oneOf: [
|
|
83
|
+
{
|
|
84
|
+
type: 'string',
|
|
85
|
+
format: 'ipv4',
|
|
86
|
+
nullable: true
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
type: 'integer',
|
|
90
|
+
minimum: 0,
|
|
91
|
+
maximum: 4294967295,
|
|
92
|
+
nullable: true
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
csum: {
|
|
97
|
+
type: 'boolean',
|
|
98
|
+
nullable: true
|
|
99
|
+
},
|
|
100
|
+
icsum: {
|
|
101
|
+
type: 'boolean',
|
|
102
|
+
nullable: true
|
|
103
|
+
},
|
|
104
|
+
ocsum: {
|
|
105
|
+
type: 'boolean',
|
|
106
|
+
nullable: true
|
|
107
|
+
},
|
|
108
|
+
encaplimit: {
|
|
109
|
+
type: ['string', 'integer'],
|
|
110
|
+
nullable: true,
|
|
111
|
+
oneOf: [
|
|
112
|
+
{
|
|
113
|
+
type: 'string',
|
|
114
|
+
enum: ['none'],
|
|
115
|
+
nullable: true
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
type: 'integer',
|
|
119
|
+
minimum: 0,
|
|
120
|
+
maximum: 255,
|
|
121
|
+
nullable: true
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
ttl: {
|
|
126
|
+
type: ['string', 'integer'],
|
|
127
|
+
nullable: true,
|
|
128
|
+
oneOf: [
|
|
129
|
+
{
|
|
130
|
+
type: 'string',
|
|
131
|
+
enum: ['inherit'],
|
|
132
|
+
nullable: true
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
type: 'integer',
|
|
136
|
+
minimum: 0,
|
|
137
|
+
maximum: 255,
|
|
138
|
+
nullable: true
|
|
139
|
+
}
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
hoplimit: {
|
|
143
|
+
type: ['string', 'integer'],
|
|
144
|
+
nullable: true,
|
|
145
|
+
oneOf: [
|
|
146
|
+
{
|
|
147
|
+
type: 'string',
|
|
148
|
+
enum: ['inherit'],
|
|
149
|
+
nullable: true
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
type: 'integer',
|
|
153
|
+
minimum: 0,
|
|
154
|
+
maximum: 255,
|
|
155
|
+
nullable: true
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
tos: {
|
|
160
|
+
type: 'string',
|
|
161
|
+
minLength: 1,
|
|
162
|
+
format: 'tos',
|
|
163
|
+
nullable: true
|
|
164
|
+
},
|
|
165
|
+
dsfield: {
|
|
166
|
+
type: 'string',
|
|
167
|
+
minLength: 1,
|
|
168
|
+
format: 'tos',
|
|
169
|
+
nullable: true
|
|
170
|
+
},
|
|
171
|
+
tclass: {
|
|
172
|
+
type: 'string',
|
|
173
|
+
minLength: 1,
|
|
174
|
+
format: 'tos',
|
|
175
|
+
nullable: true
|
|
176
|
+
},
|
|
177
|
+
flowlabel: {
|
|
178
|
+
type: 'string',
|
|
179
|
+
minLength: 1,
|
|
180
|
+
nullable: true
|
|
181
|
+
},
|
|
182
|
+
pmtudisc: {
|
|
183
|
+
type: 'boolean',
|
|
184
|
+
nullable: true
|
|
185
|
+
},
|
|
186
|
+
nopmtudisc: {
|
|
187
|
+
type: 'boolean',
|
|
188
|
+
nullable: true
|
|
189
|
+
},
|
|
190
|
+
'ignore-df': {
|
|
191
|
+
type: 'boolean',
|
|
192
|
+
nullable: true
|
|
193
|
+
},
|
|
194
|
+
'noignore-df': {
|
|
195
|
+
type: 'boolean',
|
|
196
|
+
nullable: true
|
|
197
|
+
},
|
|
198
|
+
'allow-localremote': {
|
|
199
|
+
type: 'boolean',
|
|
200
|
+
nullable: true
|
|
201
|
+
},
|
|
202
|
+
'noallow-localremote': {
|
|
203
|
+
type: 'boolean',
|
|
204
|
+
nullable: true
|
|
205
|
+
},
|
|
206
|
+
dev: {
|
|
207
|
+
type: 'string',
|
|
208
|
+
minLength: 1,
|
|
209
|
+
nullable: true
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
//# sourceMappingURL=add.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add.schema.js","sourceRoot":"","sources":["../../../src/commands/tunnel/add.schema.ts"],"names":[],"mappings":";;;AAEA,4DAA2D;AAE3D,0DAAkD;AAErC,QAAA,eAAe,GAAqC;IAC/D,GAAG,EAAS,mBAAS,CAAC,SAAS;IAC/B,IAAI,EAAQ,QAAQ;IACpB,QAAQ,EAAI,EAAE;IACd,UAAU,EAAE;QACV,IAAI,EAAmB;YACrB,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAG,IAAI;SAChB;QACD,IAAI,EAAmB;YACrB,IAAI,EAAM,QAAQ;YA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Q,EAAG,IAAI;SAChB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tunnel prl options.
|
|
3
|
+
* @category Interfaces
|
|
4
|
+
*/
|
|
5
|
+
export interface TunnelPrlOptions {
|
|
6
|
+
/**
|
|
7
|
+
* Bind the tunnel to the device NAME so that tunneled packets will only be routed via this
|
|
8
|
+
* device and will not be able to escape to another device when the route to endpoint changes.
|
|
9
|
+
*/
|
|
10
|
+
dev: string;
|
|
11
|
+
/** Add or delete ADDR as a potential router or default router. */
|
|
12
|
+
'prl-default'?: string;
|
|
13
|
+
/** @see {@link['prl-default']} */
|
|
14
|
+
'prl-nodefault'?: string;
|
|
15
|
+
/** @see {@link['prl-default']} */
|
|
16
|
+
'prl-delete'?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prl.interfaces.js","sourceRoot":"","sources":["../../../src/commands/tunnel/prl.interfaces.ts"],"names":[],"mappings":""}
|