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,169 @@
|
|
|
1
|
+
import Command from '../common/classes/command';
|
|
2
|
+
import { GlobalOptions } from '../common/interfaces/common';
|
|
3
|
+
import { NeighbourAddOptions } from './neighbour/add.interfaces';
|
|
4
|
+
import { NeighbourDelOptions } from './neighbour/del.interfaces';
|
|
5
|
+
import { NeighbourInfo, NeighbourShowOptions } from './neighbour/show.interfaces';
|
|
6
|
+
import { NeighbourGetOptions } from './neighbour/get.interfaces';
|
|
7
|
+
/**
|
|
8
|
+
* Add a new neighbour entry.
|
|
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 { neighbour } from 'iproutejs';
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* Add a simple ARP entry
|
|
24
|
+
* ```
|
|
25
|
+
* await neighbour.add({
|
|
26
|
+
* to : '192.168.1.100',
|
|
27
|
+
* lladdr: '00:aa:bb:cc:dd:ee',
|
|
28
|
+
* dev : 'eth0'
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare function add(options: NeighbourAddOptions, globalOptions?: GlobalOptions): Promise<Command<NeighbourAddOptions>>;
|
|
33
|
+
/**
|
|
34
|
+
* Delete a neighbour entry.
|
|
35
|
+
*
|
|
36
|
+
* @remarks
|
|
37
|
+
* Warning: Attempts to delete or manually change a {@link NudStates.Noarp} entry created by the kernel
|
|
38
|
+
* may result in unpredictable behaviour.
|
|
39
|
+
*
|
|
40
|
+
* Particularly, the kernel may try to resolve this address even on a NOARP interface
|
|
41
|
+
* or if the address is multicast or broadcast.
|
|
42
|
+
*
|
|
43
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
44
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
45
|
+
*
|
|
46
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
47
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
*
|
|
51
|
+
* Import module
|
|
52
|
+
* ```
|
|
53
|
+
* import { neighbour } from 'iproutejs';
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* Delete an ARP entry
|
|
57
|
+
* ```
|
|
58
|
+
* await neighbour.del({
|
|
59
|
+
* to : '192.168.1.100',
|
|
60
|
+
* dev: 'eth0'
|
|
61
|
+
* });
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
export declare function del(options: NeighbourDelOptions, globalOptions?: GlobalOptions): Promise<Command<NeighbourDelOptions>>;
|
|
65
|
+
/**
|
|
66
|
+
* Change an existing entry.
|
|
67
|
+
*
|
|
68
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
69
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
72
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
73
|
+
*/
|
|
74
|
+
export declare function change(options: NeighbourAddOptions, globalOptions?: GlobalOptions): Promise<Command<NeighbourAddOptions>>;
|
|
75
|
+
/**
|
|
76
|
+
* Add a new entry or change an existing one.
|
|
77
|
+
*
|
|
78
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
79
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
82
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
83
|
+
*/
|
|
84
|
+
export declare function replace(options: NeighbourAddOptions, globalOptions?: GlobalOptions): Promise<Command<NeighbourAddOptions>>;
|
|
85
|
+
/**
|
|
86
|
+
* Flush neighbour entries.
|
|
87
|
+
*
|
|
88
|
+
* @remarks
|
|
89
|
+
* The differences are that it does not run when no arguments are given, and that the
|
|
90
|
+
* default neighbour states to be flushed do not include {@link NudStates.Permanent} and {@link NudStates.Noarp}.
|
|
91
|
+
*
|
|
92
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
93
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
96
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
*
|
|
100
|
+
* Import module
|
|
101
|
+
* ```
|
|
102
|
+
* import { neighbour } from 'iproutejs';
|
|
103
|
+
* ```
|
|
104
|
+
*
|
|
105
|
+
* Flush neighbour entries from dev `eth0`
|
|
106
|
+
* ```
|
|
107
|
+
* await neighbour.flush({
|
|
108
|
+
* dev: 'eth0'
|
|
109
|
+
* });
|
|
110
|
+
* ```
|
|
111
|
+
*/
|
|
112
|
+
export declare function flush(options: NeighbourShowOptions, globalOptions?: GlobalOptions): Promise<Command<NeighbourShowOptions>>;
|
|
113
|
+
/**
|
|
114
|
+
* List neighbour entries.
|
|
115
|
+
*
|
|
116
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
117
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
118
|
+
*
|
|
119
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
120
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
121
|
+
*
|
|
122
|
+
* @example
|
|
123
|
+
*
|
|
124
|
+
* Import module
|
|
125
|
+
* ```
|
|
126
|
+
* import { neighbour } from 'iproutejs';
|
|
127
|
+
* ```
|
|
128
|
+
*
|
|
129
|
+
* Show all neighbour entries
|
|
130
|
+
* ```
|
|
131
|
+
* const entries = await neighbour.show({});
|
|
132
|
+
* ```
|
|
133
|
+
*/
|
|
134
|
+
export declare function show(options?: NeighbourShowOptions, globalOptions?: GlobalOptions): Promise<Command<NeighbourShowOptions> | NeighbourInfo[]>;
|
|
135
|
+
/**
|
|
136
|
+
* Lookup a neighbour entry to a destination given a device.
|
|
137
|
+
*
|
|
138
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
139
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
140
|
+
*
|
|
141
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
142
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
143
|
+
*
|
|
144
|
+
* @example
|
|
145
|
+
*
|
|
146
|
+
* Import module
|
|
147
|
+
* ```
|
|
148
|
+
* import { neighbour } from 'iproutejs';
|
|
149
|
+
* ```
|
|
150
|
+
*
|
|
151
|
+
* Performs a neighbour lookup in the kernel and returns a neighbour entry.
|
|
152
|
+
* ```
|
|
153
|
+
* const entries = await neighbour.get({
|
|
154
|
+
* to: '10.0.1.10',
|
|
155
|
+
* dev: 'eth0'
|
|
156
|
+
* });
|
|
157
|
+
* ```
|
|
158
|
+
*/
|
|
159
|
+
export declare function get(options: NeighbourGetOptions, globalOptions?: GlobalOptions): Promise<Command<NeighbourGetOptions> | NeighbourInfo[]>;
|
|
160
|
+
declare const _default: {
|
|
161
|
+
add: typeof add;
|
|
162
|
+
del: typeof del;
|
|
163
|
+
change: typeof change;
|
|
164
|
+
replace: typeof replace;
|
|
165
|
+
flush: typeof flush;
|
|
166
|
+
show: typeof show;
|
|
167
|
+
get: typeof get;
|
|
168
|
+
};
|
|
169
|
+
export default _default;
|
|
@@ -0,0 +1,238 @@
|
|
|
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.get = exports.show = exports.flush = exports.replace = exports.change = exports.del = exports.add = void 0;
|
|
16
|
+
const command_with_returned_data_1 = __importDefault(require("../common/classes/command-with-returned-data"));
|
|
17
|
+
const command_1 = __importDefault(require("../common/classes/command"));
|
|
18
|
+
const schemas_1 = require("../common/constants/schemas");
|
|
19
|
+
const add_schema_1 = require("./neighbour/add.schema");
|
|
20
|
+
const del_schema_1 = require("./neighbour/del.schema");
|
|
21
|
+
const show_schema_1 = require("./neighbour/show.schema");
|
|
22
|
+
const get_schema_1 = require("./neighbour/get.schema");
|
|
23
|
+
/**
|
|
24
|
+
* Add a new neighbour entry.
|
|
25
|
+
*
|
|
26
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
27
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
28
|
+
*
|
|
29
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
30
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
*
|
|
34
|
+
* Import module
|
|
35
|
+
* ```
|
|
36
|
+
* import { neighbour } from 'iproutejs';
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* Add a simple ARP entry
|
|
40
|
+
* ```
|
|
41
|
+
* await neighbour.add({
|
|
42
|
+
* to : '192.168.1.100',
|
|
43
|
+
* lladdr: '00:aa:bb:cc:dd:ee',
|
|
44
|
+
* dev : 'eth0'
|
|
45
|
+
* });
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
function add(options, globalOptions = {}) {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
const cmd = ['ip', 'neighbour', 'add'];
|
|
51
|
+
const ipCmd = new command_1.default(schemas_1.SchemaIds.NeighbourAdd, add_schema_1.NeighbourAddSchema, options, globalOptions, cmd);
|
|
52
|
+
return yield ipCmd.exec();
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
exports.add = add;
|
|
56
|
+
/**
|
|
57
|
+
* Delete a neighbour entry.
|
|
58
|
+
*
|
|
59
|
+
* @remarks
|
|
60
|
+
* Warning: Attempts to delete or manually change a {@link NudStates.Noarp} entry created by the kernel
|
|
61
|
+
* may result in unpredictable behaviour.
|
|
62
|
+
*
|
|
63
|
+
* Particularly, the kernel may try to resolve this address even on a NOARP interface
|
|
64
|
+
* or if the address is multicast or broadcast.
|
|
65
|
+
*
|
|
66
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
67
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
70
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
*
|
|
74
|
+
* Import module
|
|
75
|
+
* ```
|
|
76
|
+
* import { neighbour } from 'iproutejs';
|
|
77
|
+
* ```
|
|
78
|
+
*
|
|
79
|
+
* Delete an ARP entry
|
|
80
|
+
* ```
|
|
81
|
+
* await neighbour.del({
|
|
82
|
+
* to : '192.168.1.100',
|
|
83
|
+
* dev: 'eth0'
|
|
84
|
+
* });
|
|
85
|
+
* ```
|
|
86
|
+
*/
|
|
87
|
+
function del(options, globalOptions = {}) {
|
|
88
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
89
|
+
const cmd = ['ip', 'neighbour', 'del'];
|
|
90
|
+
const ipCmd = new command_1.default(schemas_1.SchemaIds.NeighbourDel, del_schema_1.NeighbourDelSchema, options, globalOptions, cmd);
|
|
91
|
+
return yield ipCmd.exec();
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
exports.del = del;
|
|
95
|
+
/**
|
|
96
|
+
* Change an existing entry.
|
|
97
|
+
*
|
|
98
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
99
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
100
|
+
*
|
|
101
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
102
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
103
|
+
*/
|
|
104
|
+
function change(options, globalOptions = {}) {
|
|
105
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
106
|
+
const cmd = ['ip', 'neighbour', 'change'];
|
|
107
|
+
const ipCmd = new command_1.default(schemas_1.SchemaIds.NeighbourAdd, add_schema_1.NeighbourAddSchema, options, globalOptions, cmd);
|
|
108
|
+
return yield ipCmd.exec();
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
exports.change = change;
|
|
112
|
+
/**
|
|
113
|
+
* Add a new entry or change an existing one.
|
|
114
|
+
*
|
|
115
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
116
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
117
|
+
*
|
|
118
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
119
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
120
|
+
*/
|
|
121
|
+
function replace(options, globalOptions = {}) {
|
|
122
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
123
|
+
const cmd = ['ip', 'neighbour', 'replace'];
|
|
124
|
+
const ipCmd = new command_1.default(schemas_1.SchemaIds.NeighbourAdd, add_schema_1.NeighbourAddSchema, options, globalOptions, cmd);
|
|
125
|
+
return yield ipCmd.exec();
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
exports.replace = replace;
|
|
129
|
+
/**
|
|
130
|
+
* Flush neighbour entries.
|
|
131
|
+
*
|
|
132
|
+
* @remarks
|
|
133
|
+
* The differences are that it does not run when no arguments are given, and that the
|
|
134
|
+
* default neighbour states to be flushed do not include {@link NudStates.Permanent} and {@link NudStates.Noarp}.
|
|
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 { neighbour } from 'iproutejs';
|
|
147
|
+
* ```
|
|
148
|
+
*
|
|
149
|
+
* Flush neighbour entries from dev `eth0`
|
|
150
|
+
* ```
|
|
151
|
+
* await neighbour.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', 'neighbour', 'flush'];
|
|
159
|
+
const ipCmd = new command_1.default(schemas_1.SchemaIds.NeighbourShow, show_schema_1.NeighbourShowSchema, options, globalOptions, cmd);
|
|
160
|
+
return yield ipCmd.exec();
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
exports.flush = flush;
|
|
164
|
+
/**
|
|
165
|
+
* List neighbour entries.
|
|
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
|
+
* @example
|
|
174
|
+
*
|
|
175
|
+
* Import module
|
|
176
|
+
* ```
|
|
177
|
+
* import { neighbour } from 'iproutejs';
|
|
178
|
+
* ```
|
|
179
|
+
*
|
|
180
|
+
* Show all neighbour entries
|
|
181
|
+
* ```
|
|
182
|
+
* const entries = await neighbour.show({});
|
|
183
|
+
* ```
|
|
184
|
+
*/
|
|
185
|
+
function show(options = {}, globalOptions = {}) {
|
|
186
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
187
|
+
const cmd = ['ip', 'neighbour', 'show'];
|
|
188
|
+
const ipCmd = new command_with_returned_data_1.default(schemas_1.SchemaIds.NeighbourShow, show_schema_1.NeighbourShowSchema, options, Object.assign(Object.assign({}, globalOptions), {
|
|
189
|
+
// Overrides for a better show.
|
|
190
|
+
'-details': true, '-statistics': true, '-json': true }), cmd);
|
|
191
|
+
return yield ipCmd.exec();
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
exports.show = show;
|
|
195
|
+
/**
|
|
196
|
+
* Lookup a neighbour entry to a destination given a device.
|
|
197
|
+
*
|
|
198
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
199
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
200
|
+
*
|
|
201
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
202
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
203
|
+
*
|
|
204
|
+
* @example
|
|
205
|
+
*
|
|
206
|
+
* Import module
|
|
207
|
+
* ```
|
|
208
|
+
* import { neighbour } from 'iproutejs';
|
|
209
|
+
* ```
|
|
210
|
+
*
|
|
211
|
+
* Performs a neighbour lookup in the kernel and returns a neighbour entry.
|
|
212
|
+
* ```
|
|
213
|
+
* const entries = await neighbour.get({
|
|
214
|
+
* to: '10.0.1.10',
|
|
215
|
+
* dev: 'eth0'
|
|
216
|
+
* });
|
|
217
|
+
* ```
|
|
218
|
+
*/
|
|
219
|
+
function get(options, globalOptions = {}) {
|
|
220
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
221
|
+
const cmd = ['ip', 'neighbour', 'get'];
|
|
222
|
+
const ipCmd = new command_with_returned_data_1.default(schemas_1.SchemaIds.NeighbourGet, get_schema_1.NeighbourGetSchema, options, Object.assign(Object.assign({}, globalOptions), {
|
|
223
|
+
// Overrides for a better show.
|
|
224
|
+
'-details': true, '-statistics': true, '-json': true }), cmd);
|
|
225
|
+
return yield ipCmd.exec();
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
exports.get = get;
|
|
229
|
+
exports.default = {
|
|
230
|
+
add,
|
|
231
|
+
del,
|
|
232
|
+
change,
|
|
233
|
+
replace,
|
|
234
|
+
flush,
|
|
235
|
+
show,
|
|
236
|
+
get
|
|
237
|
+
};
|
|
238
|
+
//# sourceMappingURL=neighbour.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"neighbour.js","sourceRoot":"","sources":["../../src/commands/neighbour.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ntable change options.
|
|
3
|
+
* @category Interfaces
|
|
4
|
+
*/
|
|
5
|
+
export interface NtableChangeOptions {
|
|
6
|
+
/** The name of the table to modify. */
|
|
7
|
+
name: string;
|
|
8
|
+
/** The name of the device to modify the table values. */
|
|
9
|
+
dev?: string;
|
|
10
|
+
/** The threshold value 1. */
|
|
11
|
+
thresh1?: number;
|
|
12
|
+
/** The threshold value 2. */
|
|
13
|
+
thresh2?: number;
|
|
14
|
+
/** The threshold value 3. */
|
|
15
|
+
thresh3?: number;
|
|
16
|
+
/** Garbage collection interval in milliseconds. */
|
|
17
|
+
gc_int?: number;
|
|
18
|
+
/** Base reachable time in milliseconds. */
|
|
19
|
+
base_reachable?: number;
|
|
20
|
+
/** Retransmission time in milliseconds. */
|
|
21
|
+
retrans?: number;
|
|
22
|
+
/** Time duration to consider a neighbor entry as stale in milliseconds. */
|
|
23
|
+
gc_stale?: number;
|
|
24
|
+
/** Delay before first probe in milliseconds. */
|
|
25
|
+
delay_probe?: number;
|
|
26
|
+
/** Maximum length of the queue. */
|
|
27
|
+
queue?: number;
|
|
28
|
+
/** Number of application level probes to send. */
|
|
29
|
+
app_probs?: number;
|
|
30
|
+
/** Number of unicast probes to send. */
|
|
31
|
+
ucast_probes?: number;
|
|
32
|
+
/** Number of multicast probes to send. */
|
|
33
|
+
mcast_probes?: number;
|
|
34
|
+
/** Delay before sending anycast probes in milliseconds. */
|
|
35
|
+
anycast_delay?: number;
|
|
36
|
+
/** Delay before sending proxy probes in milliseconds. */
|
|
37
|
+
proxy_delay?: number;
|
|
38
|
+
/** Maximum length of the proxy queue. */
|
|
39
|
+
proxy_queue?: number;
|
|
40
|
+
/** Locktime duration in milliseconds. */
|
|
41
|
+
locktime?: number;
|
|
42
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"change.interfaces.js","sourceRoot":"","sources":["../../../src/commands/ntable/change.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NtableChangeSchema = void 0;
|
|
4
|
+
const schemas_1 = require("../../common/constants/schemas");
|
|
5
|
+
exports.NtableChangeSchema = {
|
|
6
|
+
$id: schemas_1.SchemaIds.NtableChange,
|
|
7
|
+
type: 'object',
|
|
8
|
+
required: ['name'],
|
|
9
|
+
properties: {
|
|
10
|
+
name: {
|
|
11
|
+
type: 'string',
|
|
12
|
+
minLength: 1
|
|
13
|
+
},
|
|
14
|
+
dev: {
|
|
15
|
+
type: 'string',
|
|
16
|
+
minLength: 1,
|
|
17
|
+
nullable: true
|
|
18
|
+
},
|
|
19
|
+
thresh1: {
|
|
20
|
+
type: 'number',
|
|
21
|
+
nullable: true,
|
|
22
|
+
minimum: 0
|
|
23
|
+
},
|
|
24
|
+
thresh2: {
|
|
25
|
+
type: 'number',
|
|
26
|
+
nullable: true,
|
|
27
|
+
minimum: 0
|
|
28
|
+
},
|
|
29
|
+
thresh3: {
|
|
30
|
+
type: 'number',
|
|
31
|
+
nullable: true,
|
|
32
|
+
minimum: 0
|
|
33
|
+
},
|
|
34
|
+
gc_int: {
|
|
35
|
+
type: 'number',
|
|
36
|
+
nullable: true,
|
|
37
|
+
minimum: 0
|
|
38
|
+
},
|
|
39
|
+
base_reachable: {
|
|
40
|
+
type: 'number',
|
|
41
|
+
nullable: true,
|
|
42
|
+
minimum: 0
|
|
43
|
+
},
|
|
44
|
+
retrans: {
|
|
45
|
+
type: 'number',
|
|
46
|
+
nullable: true,
|
|
47
|
+
minimum: 0
|
|
48
|
+
},
|
|
49
|
+
gc_stale: {
|
|
50
|
+
type: 'number',
|
|
51
|
+
nullable: true,
|
|
52
|
+
minimum: 0
|
|
53
|
+
},
|
|
54
|
+
delay_probe: {
|
|
55
|
+
type: 'number',
|
|
56
|
+
nullable: true,
|
|
57
|
+
minimum: 0
|
|
58
|
+
},
|
|
59
|
+
queue: {
|
|
60
|
+
type: 'number',
|
|
61
|
+
nullable: true,
|
|
62
|
+
minimum: 0
|
|
63
|
+
},
|
|
64
|
+
app_probs: {
|
|
65
|
+
type: 'number',
|
|
66
|
+
nullable: true,
|
|
67
|
+
minimum: 0
|
|
68
|
+
},
|
|
69
|
+
ucast_probes: {
|
|
70
|
+
type: 'number',
|
|
71
|
+
nullable: true,
|
|
72
|
+
minimum: 0
|
|
73
|
+
},
|
|
74
|
+
mcast_probes: {
|
|
75
|
+
type: 'number',
|
|
76
|
+
nullable: true,
|
|
77
|
+
minimum: 0
|
|
78
|
+
},
|
|
79
|
+
anycast_delay: {
|
|
80
|
+
type: 'number',
|
|
81
|
+
nullable: true,
|
|
82
|
+
minimum: 0
|
|
83
|
+
},
|
|
84
|
+
proxy_delay: {
|
|
85
|
+
type: 'number',
|
|
86
|
+
nullable: true,
|
|
87
|
+
minimum: 0
|
|
88
|
+
},
|
|
89
|
+
proxy_queue: {
|
|
90
|
+
type: 'number',
|
|
91
|
+
nullable: true,
|
|
92
|
+
minimum: 0
|
|
93
|
+
},
|
|
94
|
+
locktime: {
|
|
95
|
+
type: 'number',
|
|
96
|
+
nullable: true,
|
|
97
|
+
minimum: 0
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
//# sourceMappingURL=change.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"change.schema.js","sourceRoot":"","sources":["../../../src/commands/ntable/change.schema.ts"],"names":[],"mappings":";;;AAEA,4DAA2D;AAG9C,QAAA,kBAAkB,GAAwC;IACrE,GAAG,EAAS,mBAAS,CAAC,YAAY;IAClC,IAAI,EAAQ,QAAQ;IACpB,QAAQ,EAAI,CAAC,MAAM,CAAC;IACpB,UAAU,EAAE;QACV,IAAI,EAAY;YACd,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;SACb;QACD,GAAG,EAAa;YACd,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAG,IAAI;SAChB;QACD,OAAO,EAAS;YACd,IAAI,EAAM,QAAQ;YAClB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAG,CAAC;SACZ;QACD,OAAO,EAAS;YACd,IAAI,EAAM,QAAQ;YAClB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAG,CAAC;SACZ;QACD,OAAO,EAAS;YACd,IAAI,EAAM,QAAQ;YAClB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAG,CAAC;SACZ;QACD,MAAM,EAAU;YACd,IAAI,EAAM,QAAQ;YAClB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAG,CAAC;SACZ;QACD,cAAc,EAAE;YACd,IAAI,EAAM,QAAQ;YAClB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAG,CAAC;SACZ;QACD,OAAO,EAAS;YACd,IAAI,EAAM,QAAQ;YAClB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAG,CAAC;SACZ;QACD,QAAQ,EAAQ;YACd,IAAI,EAAM,QAAQ;YAClB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAG,CAAC;SACZ;QACD,WAAW,EAAK;YACd,IAAI,EAAM,QAAQ;YAClB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAG,CAAC;SACZ;QACD,KAAK,EAAW;YACd,IAAI,EAAM,QAAQ;YAClB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAG,CAAC;SACZ;QACD,SAAS,EAAO;YACd,IAAI,EAAM,QAAQ;YAClB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAG,CAAC;SACZ;QACD,YAAY,EAAI;YACd,IAAI,EAAM,QAAQ;YAClB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAG,CAAC;SACZ;QACD,YAAY,EAAI;YACd,IAAI,EAAM,QAAQ;YAClB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAG,CAAC;SACZ;QACD,aAAa,EAAG;YACd,IAAI,EAAM,QAAQ;YAClB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAG,CAAC;SACZ;QACD,WAAW,EAAK;YACd,IAAI,EAAM,QAAQ;YAClB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAG,CAAC;SACZ;QACD,WAAW,EAAK;YACd,IAAI,EAAM,QAAQ;YAClB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAG,CAAC;SACZ;QACD,QAAQ,EAAQ;YACd,IAAI,EAAM,QAAQ;YAClB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAG,CAAC;SACZ;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ntable show options.
|
|
3
|
+
* @category Interfaces
|
|
4
|
+
*/
|
|
5
|
+
export interface NtableShowOptions {
|
|
6
|
+
/** Only list the table attached to this device. */
|
|
7
|
+
dev?: string;
|
|
8
|
+
/** Only lists the table with the given name. */
|
|
9
|
+
name?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Ntable Info.
|
|
13
|
+
* TODO: Need help to build this undocumented & comprehensive interface.
|
|
14
|
+
*
|
|
15
|
+
* @category Interfaces
|
|
16
|
+
*/
|
|
17
|
+
export interface NtableInfo {
|
|
18
|
+
family: string;
|
|
19
|
+
name: string;
|
|
20
|
+
dev: string;
|
|
21
|
+
refcnt: number;
|
|
22
|
+
reachable: number;
|
|
23
|
+
base_reachable: number;
|
|
24
|
+
retrans: number;
|
|
25
|
+
gc_stale: number;
|
|
26
|
+
delay_probe: number;
|
|
27
|
+
queue: number;
|
|
28
|
+
app_probes: number;
|
|
29
|
+
ucast_probes: number;
|
|
30
|
+
mcast_probes: number;
|
|
31
|
+
anycast_delay: number;
|
|
32
|
+
proxy_delay: number;
|
|
33
|
+
proxy_queue: number;
|
|
34
|
+
locktime?: number;
|
|
35
|
+
thresh1?: number;
|
|
36
|
+
thresh2?: number;
|
|
37
|
+
thresh3?: number;
|
|
38
|
+
gc_interval?: number;
|
|
39
|
+
key_length?: number;
|
|
40
|
+
entry_size?: number;
|
|
41
|
+
entries?: number;
|
|
42
|
+
last_flush?: string;
|
|
43
|
+
last_rand?: string;
|
|
44
|
+
hash_rnd?: number;
|
|
45
|
+
hash_mask?: string;
|
|
46
|
+
hash_chain_gc?: number;
|
|
47
|
+
proxy_qlen?: number;
|
|
48
|
+
allocs?: number;
|
|
49
|
+
destroys?: number;
|
|
50
|
+
hash_grows?: number;
|
|
51
|
+
res_failed?: number;
|
|
52
|
+
lookups?: number;
|
|
53
|
+
hits?: number;
|
|
54
|
+
rcv_probes_mcast?: number;
|
|
55
|
+
rcv_probes_ucast?: number;
|
|
56
|
+
periodic_gc_runs?: number;
|
|
57
|
+
forced_gc_runs?: number;
|
|
58
|
+
table_fulls?: number;
|
|
59
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show.interfaces.js","sourceRoot":"","sources":["../../../src/commands/ntable/show.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NtableShowSchema = void 0;
|
|
4
|
+
const schemas_1 = require("../../common/constants/schemas");
|
|
5
|
+
exports.NtableShowSchema = {
|
|
6
|
+
$id: schemas_1.SchemaIds.NtableShow,
|
|
7
|
+
type: 'object',
|
|
8
|
+
required: [],
|
|
9
|
+
properties: {
|
|
10
|
+
dev: {
|
|
11
|
+
type: 'string',
|
|
12
|
+
minLength: 1,
|
|
13
|
+
nullable: true
|
|
14
|
+
},
|
|
15
|
+
name: {
|
|
16
|
+
type: 'string',
|
|
17
|
+
minLength: 1,
|
|
18
|
+
nullable: true
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=show.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show.schema.js","sourceRoot":"","sources":["../../../src/commands/ntable/show.schema.ts"],"names":[],"mappings":";;;AAEA,4DAA2D;AAG9C,QAAA,gBAAgB,GAAsC;IACjE,GAAG,EAAS,mBAAS,CAAC,UAAU;IAChC,IAAI,EAAQ,QAAQ;IACpB,QAAQ,EAAI,EAAE;IACd,UAAU,EAAE;QACV,GAAG,EAAG;YACJ,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAG,IAAI;SAChB;QACD,IAAI,EAAE;YACJ,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAG,IAAI;SAChB;KACF;CACF,CAAC"}
|