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,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddressFamilies = exports.AddressScopes = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* The scope of the area where this address is valid.
|
|
6
|
+
* The available scopes are listed in file `/etc/iproute2/rt_scopes`.
|
|
7
|
+
* Predefined scope values are:
|
|
8
|
+
*
|
|
9
|
+
* @category Constants
|
|
10
|
+
*/
|
|
11
|
+
var AddressScopes;
|
|
12
|
+
(function (AddressScopes) {
|
|
13
|
+
/** The address is globally valid. */
|
|
14
|
+
AddressScopes["Global"] = "global";
|
|
15
|
+
/** (IPv6 only, deprecated) The address is site local, i.e. it is valid inside this site. */
|
|
16
|
+
AddressScopes["Site"] = "site";
|
|
17
|
+
/** The address is link local, i.e. it is valid only on this device. */
|
|
18
|
+
AddressScopes["Link"] = "link";
|
|
19
|
+
/** The address is valid only inside this host. */
|
|
20
|
+
AddressScopes["Host"] = "host";
|
|
21
|
+
})(AddressScopes || (exports.AddressScopes = AddressScopes = {}));
|
|
22
|
+
/**
|
|
23
|
+
* Representing various network address families.
|
|
24
|
+
* @category Constants
|
|
25
|
+
*/
|
|
26
|
+
var AddressFamilies;
|
|
27
|
+
(function (AddressFamilies) {
|
|
28
|
+
/** IPv4 protocol. */
|
|
29
|
+
AddressFamilies["Inet"] = "inet";
|
|
30
|
+
/** IPv6 protocol. */
|
|
31
|
+
AddressFamilies["Inet6"] = "inet6";
|
|
32
|
+
/** Multi-Protocol Label Switching. */
|
|
33
|
+
AddressFamilies["Mpls"] = "mpls";
|
|
34
|
+
/** Bridging (MAC-level). */
|
|
35
|
+
AddressFamilies["Bridge"] = "bridge";
|
|
36
|
+
/** Link layer interface. */
|
|
37
|
+
AddressFamilies["Link"] = "link";
|
|
38
|
+
})(AddressFamilies || (exports.AddressFamilies = AddressFamilies = {}));
|
|
39
|
+
//# sourceMappingURL=address.constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"address.constants.js","sourceRoot":"","sources":["../../src/commands/address.constants.ts"],"names":[],"mappings":";;;AAAA;;;;;;GAMG;AACH,IAAY,aASX;AATD,WAAY,aAAa;IACvB,qCAAqC;IACrC,kCAAiB,CAAA;IACjB,4FAA4F;IAC5F,8BAAe,CAAA;IACf,uEAAuE;IACvE,8BAAe,CAAA;IACf,kDAAkD;IAClD,8BAAe,CAAA;AACjB,CAAC,EATW,aAAa,6BAAb,aAAa,QASxB;AAED;;;GAGG;AACH,IAAY,eAWX;AAXD,WAAY,eAAe;IACzB,qBAAqB;IACrB,gCAAe,CAAA;IACf,qBAAqB;IACrB,kCAAgB,CAAA;IAChB,sCAAsC;IACtC,gCAAe,CAAA;IACf,4BAA4B;IAC5B,oCAAiB,CAAA;IACjB,4BAA4B;IAC5B,gCAAe,CAAA;AACjB,CAAC,EAXW,eAAe,+BAAf,eAAe,QAW1B"}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import Command from '../common/classes/command';
|
|
2
|
+
import { GlobalOptionsWithRequiredFilePath, GlobalOptions, Empty } from '../common/interfaces/common';
|
|
3
|
+
import { AddressAddOptions } from './address/add.interfaces';
|
|
4
|
+
import { AddressDeleteOptions } from './address/delete.interfaces';
|
|
5
|
+
import { AddressFlushOptions } from './address/flush.interfaces';
|
|
6
|
+
import { LinkWithAddressInfo, AddressShowOptions, OnlyAddressInfo } from './address/show.interfaces';
|
|
7
|
+
/**
|
|
8
|
+
* Add new protocol address.
|
|
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 { address } from 'iproutejs';
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* Add a new address
|
|
24
|
+
* ```
|
|
25
|
+
* await address.add({
|
|
26
|
+
* local: '10.3.15.3/24',
|
|
27
|
+
* scope: AddressScopes.Host,
|
|
28
|
+
* dev: 'eth0'
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare function add(options: AddressAddOptions, globalOptions?: GlobalOptions): Promise<Command<AddressAddOptions>>;
|
|
33
|
+
/**
|
|
34
|
+
* Change protocol address.
|
|
35
|
+
*
|
|
36
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
37
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
40
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
41
|
+
*/
|
|
42
|
+
export declare function change(options: AddressAddOptions, globalOptions?: GlobalOptions): Promise<Command<AddressAddOptions>>;
|
|
43
|
+
/**
|
|
44
|
+
* Replace protocol address.
|
|
45
|
+
*
|
|
46
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
47
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
48
|
+
*
|
|
49
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
50
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
51
|
+
*/
|
|
52
|
+
export declare function replace(options: AddressAddOptions, globalOptions?: GlobalOptions): Promise<Command<AddressAddOptions>>;
|
|
53
|
+
/**
|
|
54
|
+
* Delete an address.
|
|
55
|
+
*
|
|
56
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
57
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
60
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
*
|
|
64
|
+
* Import module
|
|
65
|
+
* ```
|
|
66
|
+
* import { address } from 'iproutejs';
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
69
|
+
* Delete an address
|
|
70
|
+
* ```
|
|
71
|
+
* await address.del({
|
|
72
|
+
* local: '10.3.15.3/24'
|
|
73
|
+
* dev: 'eth0'
|
|
74
|
+
* });
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
export declare function del(options: AddressDeleteOptions, globalOptions?: GlobalOptions): Promise<Command<AddressDeleteOptions>>;
|
|
78
|
+
/**
|
|
79
|
+
* Flush protocol addresses.
|
|
80
|
+
*
|
|
81
|
+
* This command flushes the protocol addresses selected by some criteria.
|
|
82
|
+
*
|
|
83
|
+
* This command has the same arguments as show except that type and master selectors are not supported.
|
|
84
|
+
* Another difference is that it does not run when no arguments are given.
|
|
85
|
+
*
|
|
86
|
+
* Warning: This command and other flush commands are unforgiving.
|
|
87
|
+
* They will cruelly purge all the addresses.
|
|
88
|
+
*
|
|
89
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
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 { address } from 'iproutejs';
|
|
100
|
+
* ```
|
|
101
|
+
*
|
|
102
|
+
* Flush `eth0` addresses
|
|
103
|
+
* ```
|
|
104
|
+
* await address.flush({
|
|
105
|
+
* dev: 'eth0'
|
|
106
|
+
* });
|
|
107
|
+
* ```
|
|
108
|
+
*/
|
|
109
|
+
export declare function flush(options: AddressFlushOptions, globalOptions?: GlobalOptions): Promise<Command<AddressFlushOptions>>;
|
|
110
|
+
/**
|
|
111
|
+
* Save address configuration into a file.
|
|
112
|
+
*
|
|
113
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
114
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
115
|
+
*
|
|
116
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
117
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
118
|
+
*/
|
|
119
|
+
export declare function save(options: AddressFlushOptions, globalOptions: GlobalOptionsWithRequiredFilePath): Promise<Command<AddressFlushOptions>>;
|
|
120
|
+
/**
|
|
121
|
+
* Restore address configuration from a file previously generated by {@link save}.
|
|
122
|
+
*
|
|
123
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
124
|
+
*
|
|
125
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
126
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
127
|
+
*/
|
|
128
|
+
export declare function restore(globalOptions: GlobalOptionsWithRequiredFilePath): Promise<Command<Empty>>;
|
|
129
|
+
/**
|
|
130
|
+
* Show address configuration from a file previously generated by {@link save}.
|
|
131
|
+
*
|
|
132
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
133
|
+
*
|
|
134
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
135
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
136
|
+
*/
|
|
137
|
+
export declare function showdump(globalOptions: GlobalOptionsWithRequiredFilePath): Promise<Command<Empty> | OnlyAddressInfo[]>;
|
|
138
|
+
/**
|
|
139
|
+
* Look at protocol addresses.
|
|
140
|
+
*
|
|
141
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
142
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
143
|
+
*
|
|
144
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
145
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
146
|
+
*
|
|
147
|
+
* @example
|
|
148
|
+
*
|
|
149
|
+
* Import module
|
|
150
|
+
* ```
|
|
151
|
+
* import { address } from 'iproutejs';
|
|
152
|
+
* ```
|
|
153
|
+
*
|
|
154
|
+
* Show only `eth0` device addresses
|
|
155
|
+
* ```
|
|
156
|
+
* const addresses = await address.show({
|
|
157
|
+
* dev: 'eth0'
|
|
158
|
+
* });
|
|
159
|
+
* ```
|
|
160
|
+
*
|
|
161
|
+
* Show all addresses
|
|
162
|
+
* ```
|
|
163
|
+
* const addresses = await address.show();
|
|
164
|
+
* const addresses = await address.show({});
|
|
165
|
+
* ```
|
|
166
|
+
*/
|
|
167
|
+
export declare function show(options?: AddressShowOptions, globalOptions?: GlobalOptions): Promise<Command<AddressShowOptions> | LinkWithAddressInfo[]>;
|
|
168
|
+
declare const _default: {
|
|
169
|
+
add: typeof add;
|
|
170
|
+
change: typeof change;
|
|
171
|
+
replace: typeof replace;
|
|
172
|
+
del: typeof del;
|
|
173
|
+
flush: typeof flush;
|
|
174
|
+
save: typeof save;
|
|
175
|
+
restore: typeof restore;
|
|
176
|
+
showdump: typeof showdump;
|
|
177
|
+
show: typeof show;
|
|
178
|
+
};
|
|
179
|
+
export default _default;
|
|
@@ -0,0 +1,265 @@
|
|
|
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.showdump = exports.restore = exports.save = exports.flush = exports.del = exports.replace = exports.change = 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("./address/add.schema");
|
|
22
|
+
const delete_schema_1 = require("./address/delete.schema");
|
|
23
|
+
const flush_schema_1 = require("./address/flush.schema");
|
|
24
|
+
const show_schema_1 = require("./address/show.schema");
|
|
25
|
+
const command_with_redirect_from_filepath_and_returned_data_1 = __importDefault(require("../common/classes/command-with-redirect-from-filepath-and-returned-data"));
|
|
26
|
+
/**
|
|
27
|
+
* Add new protocol address.
|
|
28
|
+
*
|
|
29
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
30
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
31
|
+
*
|
|
32
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
33
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
*
|
|
37
|
+
* Import module
|
|
38
|
+
* ```
|
|
39
|
+
* import { address } from 'iproutejs';
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* Add a new address
|
|
43
|
+
* ```
|
|
44
|
+
* await address.add({
|
|
45
|
+
* local: '10.3.15.3/24',
|
|
46
|
+
* scope: AddressScopes.Host,
|
|
47
|
+
* dev: 'eth0'
|
|
48
|
+
* });
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
function add(options, globalOptions = {}) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
const cmd = ['ip', 'address', 'add'];
|
|
54
|
+
const ipCmd = new command_1.default(schemas_1.SchemaIds.AddressAdd, add_schema_1.AddressAddSchema, options, globalOptions, cmd);
|
|
55
|
+
return yield ipCmd.exec();
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
exports.add = add;
|
|
59
|
+
/**
|
|
60
|
+
* Change protocol address.
|
|
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
|
+
function change(options, globalOptions = {}) {
|
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
const cmd = ['ip', 'address', 'change'];
|
|
71
|
+
const ipCmd = new command_1.default(schemas_1.SchemaIds.AddressAdd, add_schema_1.AddressAddSchema, options, globalOptions, cmd);
|
|
72
|
+
return yield ipCmd.exec();
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
exports.change = change;
|
|
76
|
+
/**
|
|
77
|
+
* Replace protocol address.
|
|
78
|
+
*
|
|
79
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
80
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
83
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
84
|
+
*/
|
|
85
|
+
function replace(options, globalOptions = {}) {
|
|
86
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
87
|
+
const cmd = ['ip', 'address', 'replace'];
|
|
88
|
+
const ipCmd = new command_1.default(schemas_1.SchemaIds.AddressAdd, add_schema_1.AddressAddSchema, options, globalOptions, cmd);
|
|
89
|
+
return yield ipCmd.exec();
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
exports.replace = replace;
|
|
93
|
+
/**
|
|
94
|
+
* Delete an address.
|
|
95
|
+
*
|
|
96
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
97
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
100
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
*
|
|
104
|
+
* Import module
|
|
105
|
+
* ```
|
|
106
|
+
* import { address } from 'iproutejs';
|
|
107
|
+
* ```
|
|
108
|
+
*
|
|
109
|
+
* Delete an address
|
|
110
|
+
* ```
|
|
111
|
+
* await address.del({
|
|
112
|
+
* local: '10.3.15.3/24'
|
|
113
|
+
* dev: 'eth0'
|
|
114
|
+
* });
|
|
115
|
+
* ```
|
|
116
|
+
*/
|
|
117
|
+
function del(options, globalOptions = {}) {
|
|
118
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
119
|
+
const cmd = ['ip', 'address', 'delete'];
|
|
120
|
+
const ipCmd = new command_1.default(schemas_1.SchemaIds.AddressDelete, delete_schema_1.AddressDeleteSchema, options, globalOptions, cmd);
|
|
121
|
+
return yield ipCmd.exec();
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
exports.del = del;
|
|
125
|
+
/**
|
|
126
|
+
* Flush protocol addresses.
|
|
127
|
+
*
|
|
128
|
+
* This command flushes the protocol addresses selected by some criteria.
|
|
129
|
+
*
|
|
130
|
+
* This command has the same arguments as show except that type and master selectors are not supported.
|
|
131
|
+
* Another difference is that it does not run when no arguments are given.
|
|
132
|
+
*
|
|
133
|
+
* Warning: This command and other flush commands are unforgiving.
|
|
134
|
+
* They will cruelly purge all the addresses.
|
|
135
|
+
*
|
|
136
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
137
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
138
|
+
*
|
|
139
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
140
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
141
|
+
*
|
|
142
|
+
* @example
|
|
143
|
+
*
|
|
144
|
+
* Import module
|
|
145
|
+
* ```
|
|
146
|
+
* import { address } from 'iproutejs';
|
|
147
|
+
* ```
|
|
148
|
+
*
|
|
149
|
+
* Flush `eth0` addresses
|
|
150
|
+
* ```
|
|
151
|
+
* await address.flush({
|
|
152
|
+
* dev: 'eth0'
|
|
153
|
+
* });
|
|
154
|
+
* ```
|
|
155
|
+
*/
|
|
156
|
+
function flush(options, globalOptions = {}) {
|
|
157
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
158
|
+
const cmd = ['ip', 'address', 'flush'];
|
|
159
|
+
const ipCmd = new command_1.default(schemas_1.SchemaIds.AddressFlush, flush_schema_1.AddressFlushSchema, options, globalOptions, cmd);
|
|
160
|
+
return yield ipCmd.exec();
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
exports.flush = flush;
|
|
164
|
+
/**
|
|
165
|
+
* Save address configuration into a file.
|
|
166
|
+
*
|
|
167
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
168
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
169
|
+
*
|
|
170
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
171
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
172
|
+
*/
|
|
173
|
+
function save(options, globalOptions) {
|
|
174
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
175
|
+
const cmd = ['ip', 'address', 'save'];
|
|
176
|
+
const ipCmd = new command_with_redirect_to_filepath_1.default(schemas_1.SchemaIds.AddressFlush, flush_schema_1.AddressFlushSchema, options, globalOptions, cmd);
|
|
177
|
+
return yield ipCmd.exec();
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
exports.save = save;
|
|
181
|
+
/**
|
|
182
|
+
* Restore address configuration from a file previously generated by {@link save}.
|
|
183
|
+
*
|
|
184
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
185
|
+
*
|
|
186
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
187
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
188
|
+
*/
|
|
189
|
+
function restore(globalOptions) {
|
|
190
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
191
|
+
const cmd = ['ip', 'address', 'restore'];
|
|
192
|
+
const ipCmd = new command_with_redirect_from_filepath_1.default(schemas_1.SchemaIds.Empty, schemas_1.EmptySchema, {}, globalOptions, cmd);
|
|
193
|
+
return yield ipCmd.exec();
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
exports.restore = restore;
|
|
197
|
+
/**
|
|
198
|
+
* Show address configuration from a file previously generated by {@link save}.
|
|
199
|
+
*
|
|
200
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
201
|
+
*
|
|
202
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
203
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
204
|
+
*/
|
|
205
|
+
function showdump(globalOptions) {
|
|
206
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
207
|
+
const cmd = ['ip', 'address', 'showdump'];
|
|
208
|
+
const ipCmd = new command_with_redirect_from_filepath_and_returned_data_1.default(schemas_1.SchemaIds.Empty, schemas_1.EmptySchema, {}, Object.assign(Object.assign({}, globalOptions), {
|
|
209
|
+
// Overrides for a better show.
|
|
210
|
+
'-details': true, '-statistics': true, '-json': true }), cmd);
|
|
211
|
+
return yield ipCmd.exec();
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
exports.showdump = showdump;
|
|
215
|
+
/**
|
|
216
|
+
* Look at protocol addresses.
|
|
217
|
+
*
|
|
218
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
219
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
220
|
+
*
|
|
221
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
222
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
223
|
+
*
|
|
224
|
+
* @example
|
|
225
|
+
*
|
|
226
|
+
* Import module
|
|
227
|
+
* ```
|
|
228
|
+
* import { address } from 'iproutejs';
|
|
229
|
+
* ```
|
|
230
|
+
*
|
|
231
|
+
* Show only `eth0` device addresses
|
|
232
|
+
* ```
|
|
233
|
+
* const addresses = await address.show({
|
|
234
|
+
* dev: 'eth0'
|
|
235
|
+
* });
|
|
236
|
+
* ```
|
|
237
|
+
*
|
|
238
|
+
* Show all addresses
|
|
239
|
+
* ```
|
|
240
|
+
* const addresses = await address.show();
|
|
241
|
+
* const addresses = await address.show({});
|
|
242
|
+
* ```
|
|
243
|
+
*/
|
|
244
|
+
function show(options = {}, globalOptions = {}) {
|
|
245
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
246
|
+
const cmd = ['ip', 'address', 'show'];
|
|
247
|
+
const ipCmd = new command_with_returned_data_1.default(schemas_1.SchemaIds.AddressShow, show_schema_1.AddressShowSchema, options, Object.assign(Object.assign({}, globalOptions), {
|
|
248
|
+
// Overrides for a better show.
|
|
249
|
+
'-details': true, '-statistics': true, '-json': true }), cmd);
|
|
250
|
+
return yield ipCmd.exec();
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
exports.show = show;
|
|
254
|
+
exports.default = {
|
|
255
|
+
add,
|
|
256
|
+
change,
|
|
257
|
+
replace,
|
|
258
|
+
del,
|
|
259
|
+
flush,
|
|
260
|
+
save,
|
|
261
|
+
restore,
|
|
262
|
+
showdump,
|
|
263
|
+
show
|
|
264
|
+
};
|
|
265
|
+
//# sourceMappingURL=address.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"address.js","sourceRoot":"","sources":["../../src/commands/address.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Addrlabel add options.
|
|
3
|
+
* @category Interfaces
|
|
4
|
+
*/
|
|
5
|
+
export interface AddrlabelAddOptions {
|
|
6
|
+
/** The address prefix. */
|
|
7
|
+
prefix: string;
|
|
8
|
+
/** The outgoing interface. */
|
|
9
|
+
dev?: string;
|
|
10
|
+
/** The label for the prefix. `0xffffffff` is reserved. */
|
|
11
|
+
label: number;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add.interfaces.js","sourceRoot":"","sources":["../../../src/commands/addrlabel/add.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddrlabelAddSchema = void 0;
|
|
4
|
+
const schemas_1 = require("../../common/constants/schemas");
|
|
5
|
+
exports.AddrlabelAddSchema = {
|
|
6
|
+
$id: schemas_1.SchemaIds.AddrlabelAdd,
|
|
7
|
+
type: 'object',
|
|
8
|
+
required: ['prefix', 'label'],
|
|
9
|
+
properties: {
|
|
10
|
+
prefix: {
|
|
11
|
+
type: 'string',
|
|
12
|
+
minLength: 1,
|
|
13
|
+
format: 'ip-with-required-mask'
|
|
14
|
+
},
|
|
15
|
+
dev: {
|
|
16
|
+
type: 'string',
|
|
17
|
+
minLength: 1,
|
|
18
|
+
nullable: true
|
|
19
|
+
},
|
|
20
|
+
label: {
|
|
21
|
+
type: 'integer',
|
|
22
|
+
minimum: 0,
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=add.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add.schema.js","sourceRoot":"","sources":["../../../src/commands/addrlabel/add.schema.ts"],"names":[],"mappings":";;;AAEA,4DAA2D;AAG9C,QAAA,kBAAkB,GAAwC;IACrE,GAAG,EAAS,mBAAS,CAAC,YAAY;IAClC,IAAI,EAAQ,QAAQ;IACpB,QAAQ,EAAI,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC/B,UAAU,EAAE;QACV,MAAM,EAAE;YACN,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;YACZ,MAAM,EAAK,uBAAuB;SACnC;QACD,GAAG,EAAK;YACN,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAG,IAAI;SAChB;QACD,KAAK,EAAG;YACN,IAAI,EAAM,SAAS;YACnB,OAAO,EAAG,CAAC;SACZ;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"del.interfaces.js","sourceRoot":"","sources":["../../../src/commands/addrlabel/del.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddrlabelDelSchema = void 0;
|
|
4
|
+
const schemas_1 = require("../../common/constants/schemas");
|
|
5
|
+
exports.AddrlabelDelSchema = {
|
|
6
|
+
$id: schemas_1.SchemaIds.AddrlabelDel,
|
|
7
|
+
type: 'object',
|
|
8
|
+
required: ['prefix'],
|
|
9
|
+
properties: {
|
|
10
|
+
prefix: {
|
|
11
|
+
type: 'string',
|
|
12
|
+
minLength: 1,
|
|
13
|
+
format: 'ip-with-required-mask'
|
|
14
|
+
},
|
|
15
|
+
dev: {
|
|
16
|
+
type: 'string',
|
|
17
|
+
minLength: 1,
|
|
18
|
+
nullable: true
|
|
19
|
+
},
|
|
20
|
+
label: {
|
|
21
|
+
type: 'integer',
|
|
22
|
+
minimum: 0,
|
|
23
|
+
nullable: true
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=del.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"del.schema.js","sourceRoot":"","sources":["../../../src/commands/addrlabel/del.schema.ts"],"names":[],"mappings":";;;AAEA,4DAA2D;AAG9C,QAAA,kBAAkB,GAAwC;IACrE,GAAG,EAAS,mBAAS,CAAC,YAAY;IAClC,IAAI,EAAQ,QAAQ;IACpB,QAAQ,EAAI,CAAC,QAAQ,CAAC;IACtB,UAAU,EAAE;QACV,MAAM,EAAE;YACN,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;YACZ,MAAM,EAAK,uBAAuB;SACnC;QACD,GAAG,EAAK;YACN,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAG,IAAI;SAChB;QACD,KAAK,EAAG;YACN,IAAI,EAAM,SAAS;YACnB,OAAO,EAAG,CAAC;YACX,QAAQ,EAAE,IAAI;SACf;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.interfaces.js","sourceRoot":"","sources":["../../../src/commands/addrlabel/list.interfaces.ts"],"names":[],"mappings":""}
|