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,29 @@
|
|
|
1
|
+
import Command from '../common/classes/command';
|
|
2
|
+
import { GlobalOptions } from '../common/interfaces/common';
|
|
3
|
+
import { MrouteInfo, MrouteShowOptions } from './mroute/show.interfaces';
|
|
4
|
+
/**
|
|
5
|
+
* List multicast routing cache entries.
|
|
6
|
+
*
|
|
7
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
8
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
9
|
+
*
|
|
10
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
11
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
*
|
|
15
|
+
* Import module
|
|
16
|
+
* ```
|
|
17
|
+
* import { mroute } from 'iproutejs';
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* Show multicast routes
|
|
21
|
+
* ```
|
|
22
|
+
* const entries = await mroute.show({});
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare function show(options: MrouteShowOptions, globalOptions?: GlobalOptions): Promise<Command<MrouteShowOptions> | MrouteInfo[]>;
|
|
26
|
+
declare const _default: {
|
|
27
|
+
show: typeof show;
|
|
28
|
+
};
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1,53 @@
|
|
|
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 = void 0;
|
|
16
|
+
const command_with_returned_data_1 = __importDefault(require("../common/classes/command-with-returned-data"));
|
|
17
|
+
const schemas_1 = require("../common/constants/schemas");
|
|
18
|
+
const show_schema_1 = require("./mroute/show.schema");
|
|
19
|
+
/**
|
|
20
|
+
* List multicast routing cache entries.
|
|
21
|
+
*
|
|
22
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
23
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
24
|
+
*
|
|
25
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
26
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
*
|
|
30
|
+
* Import module
|
|
31
|
+
* ```
|
|
32
|
+
* import { mroute } from 'iproutejs';
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* Show multicast routes
|
|
36
|
+
* ```
|
|
37
|
+
* const entries = await mroute.show({});
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
function show(options, globalOptions = {}) {
|
|
41
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
+
const cmd = ['ip', 'mroute', 'show'];
|
|
43
|
+
const ipCmd = new command_with_returned_data_1.default(schemas_1.SchemaIds.MrouteShow, show_schema_1.MrouteShowSchema, options, Object.assign(Object.assign({}, globalOptions), {
|
|
44
|
+
// Overrides for a better show.
|
|
45
|
+
'-details': true, '-statistics': true, '-json': true }), cmd);
|
|
46
|
+
return yield ipCmd.exec();
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
exports.show = show;
|
|
50
|
+
exports.default = {
|
|
51
|
+
show
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=mroute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mroute.js","sourceRoot":"","sources":["../../src/commands/mroute.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,8GAAmF;AAEnF,yDAAwD;AAGxD,sDAAwD;AAExD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAsB,IAAI,CAAC,OAA0B,EAC1B,gBAA+B,EAAE;;QAE1D,MAAM,GAAG,GAAG,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;QAErC,MAAM,KAAK,GAAG,IAAI,oCAAuB,CACvC,mBAAS,CAAC,UAAU,EACpB,8BAAgB,EAChB,OAAO,kCAEF,aAAa;YAChB,+BAA+B;YAC/B,UAAU,EAAK,IAAI,EACnB,aAAa,EAAE,IAAI,EACnB,OAAO,EAAQ,IAAI,KAErB,GAAG,CAAC,CAAC;QAEP,OAAO,MAAM,KAAK,CAAC,IAAI,EAAgB,CAAC;IAC1C,CAAC;CAAA;AAnBD,oBAmBC;AAED,kBAAe;IACb,IAAI;CACL,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { NudStates } from '../neighbour.constants';
|
|
2
|
+
/**
|
|
3
|
+
* Neighbour add options.
|
|
4
|
+
* @category Interfaces
|
|
5
|
+
*/
|
|
6
|
+
export interface NeighbourAddOptions {
|
|
7
|
+
/**
|
|
8
|
+
* The protocol address of the neighbour.
|
|
9
|
+
* It is either an IPv4 or IPv6 address.
|
|
10
|
+
*/
|
|
11
|
+
to: string;
|
|
12
|
+
/**
|
|
13
|
+
* The link layer address of the neighbour.
|
|
14
|
+
* LLADDRESS can also be null.
|
|
15
|
+
*/
|
|
16
|
+
lladdr?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The state of the neighbour entry.
|
|
19
|
+
* `nud` is an abbreviation for 'Neighbour Unreachability Detection'.
|
|
20
|
+
*/
|
|
21
|
+
nud?: NudStates;
|
|
22
|
+
/** Indicates whether we are proxying for this neighbour entry. */
|
|
23
|
+
proxy?: true;
|
|
24
|
+
/** The interface to which this neighbour is attached. */
|
|
25
|
+
dev?: string;
|
|
26
|
+
/** Indicates whether neighbour is a router. */
|
|
27
|
+
router?: true;
|
|
28
|
+
/**
|
|
29
|
+
* This neigh entry was learned externally.
|
|
30
|
+
* This option can be used to indicate to the kernel that this is a controller learnt dynamic entry.
|
|
31
|
+
* Kernel will not gc such an entry.
|
|
32
|
+
*/
|
|
33
|
+
extern_learn?: true;
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add.interfaces.js","sourceRoot":"","sources":["../../../src/commands/neighbour/add.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NeighbourAddSchema = void 0;
|
|
4
|
+
const schemas_1 = require("../../common/constants/schemas");
|
|
5
|
+
const neighbour_constants_1 = require("../neighbour.constants");
|
|
6
|
+
exports.NeighbourAddSchema = {
|
|
7
|
+
$id: schemas_1.SchemaIds.NeighbourAdd,
|
|
8
|
+
type: 'object',
|
|
9
|
+
required: ['to'],
|
|
10
|
+
properties: {
|
|
11
|
+
to: {
|
|
12
|
+
type: 'string',
|
|
13
|
+
minLength: 1,
|
|
14
|
+
format: 'ip'
|
|
15
|
+
},
|
|
16
|
+
lladdr: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
minLength: 1,
|
|
19
|
+
format: 'mac',
|
|
20
|
+
nullable: true
|
|
21
|
+
},
|
|
22
|
+
nud: {
|
|
23
|
+
type: 'string',
|
|
24
|
+
enum: Object.values(neighbour_constants_1.NudStates),
|
|
25
|
+
nullable: true
|
|
26
|
+
},
|
|
27
|
+
proxy: {
|
|
28
|
+
type: 'boolean',
|
|
29
|
+
enum: [true],
|
|
30
|
+
nullable: true
|
|
31
|
+
},
|
|
32
|
+
dev: {
|
|
33
|
+
type: 'string',
|
|
34
|
+
minLength: 1,
|
|
35
|
+
nullable: true
|
|
36
|
+
},
|
|
37
|
+
router: {
|
|
38
|
+
type: 'boolean',
|
|
39
|
+
enum: [true],
|
|
40
|
+
nullable: true
|
|
41
|
+
},
|
|
42
|
+
extern_learn: {
|
|
43
|
+
type: 'boolean',
|
|
44
|
+
enum: [true],
|
|
45
|
+
nullable: true
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=add.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add.schema.js","sourceRoot":"","sources":["../../../src/commands/neighbour/add.schema.ts"],"names":[],"mappings":";;;AAEA,4DAA2D;AAE3D,gEAAmD;AAEtC,QAAA,kBAAkB,GAAwC;IACrE,GAAG,EAAS,mBAAS,CAAC,YAAY;IAClC,IAAI,EAAQ,QAAQ;IACpB,QAAQ,EAAI,CAAC,IAAI,CAAC;IAClB,UAAU,EAAE;QACV,EAAE,EAAY;YACZ,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;YACZ,MAAM,EAAK,IAAI;SAChB;QACD,MAAM,EAAQ;YACZ,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;YACZ,MAAM,EAAK,KAAK;YAChB,QAAQ,EAAG,IAAI;SAChB;QACD,GAAG,EAAW;YACZ,IAAI,EAAM,QAAQ;YAClB,IAAI,EAAM,MAAM,CAAC,MAAM,CAAC,+BAAS,CAAgB;YACjD,QAAQ,EAAE,IAAI;SACf;QACD,KAAK,EAAS;YACZ,IAAI,EAAM,SAAS;YACnB,IAAI,EAAM,CAAC,IAAI,CAAC;YAChB,QAAQ,EAAE,IAAI;SACf;QACD,GAAG,EAAW;YACZ,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAG,IAAI;SAChB;QACD,MAAM,EAAQ;YACZ,IAAI,EAAM,SAAS;YACnB,IAAI,EAAM,CAAC,IAAI,CAAC;YAChB,QAAQ,EAAE,IAAI;SACf;QACD,YAAY,EAAE;YACZ,IAAI,EAAM,SAAS;YACnB,IAAI,EAAM,CAAC,IAAI,CAAC;YAChB,QAAQ,EAAE,IAAI;SACf;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Neighbour del options.
|
|
3
|
+
* @category Interfaces
|
|
4
|
+
*/
|
|
5
|
+
export interface NeighbourDelOptions {
|
|
6
|
+
/**
|
|
7
|
+
* The protocol address of the neighbour.
|
|
8
|
+
* It is either an IPv4 or IPv6 address.
|
|
9
|
+
*/
|
|
10
|
+
to: string;
|
|
11
|
+
/** Indicates whether we are proxying for this neighbour entry. */
|
|
12
|
+
proxy?: true;
|
|
13
|
+
/** The interface to which this neighbour is attached. */
|
|
14
|
+
dev?: string;
|
|
15
|
+
/** Indicates whether neighbour is a router. */
|
|
16
|
+
router?: true;
|
|
17
|
+
/**
|
|
18
|
+
* This neigh entry was learned externally.
|
|
19
|
+
* This option can be used to indicate to the kernel that this is a controller learnt dynamic entry.
|
|
20
|
+
* Kernel will not gc such an entry.
|
|
21
|
+
*/
|
|
22
|
+
extern_learn?: true;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"del.interfaces.js","sourceRoot":"","sources":["../../../src/commands/neighbour/del.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NeighbourDelSchema = void 0;
|
|
4
|
+
const schemas_1 = require("../../common/constants/schemas");
|
|
5
|
+
exports.NeighbourDelSchema = {
|
|
6
|
+
$id: schemas_1.SchemaIds.NeighbourDel,
|
|
7
|
+
type: 'object',
|
|
8
|
+
required: ['to'],
|
|
9
|
+
properties: {
|
|
10
|
+
to: {
|
|
11
|
+
type: 'string',
|
|
12
|
+
minLength: 1,
|
|
13
|
+
format: 'ip'
|
|
14
|
+
},
|
|
15
|
+
proxy: {
|
|
16
|
+
type: 'boolean',
|
|
17
|
+
enum: [true],
|
|
18
|
+
nullable: true
|
|
19
|
+
},
|
|
20
|
+
dev: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
minLength: 1,
|
|
23
|
+
nullable: true
|
|
24
|
+
},
|
|
25
|
+
router: {
|
|
26
|
+
type: 'boolean',
|
|
27
|
+
enum: [true],
|
|
28
|
+
nullable: true
|
|
29
|
+
},
|
|
30
|
+
extern_learn: {
|
|
31
|
+
type: 'boolean',
|
|
32
|
+
enum: [true],
|
|
33
|
+
nullable: true
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=del.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"del.schema.js","sourceRoot":"","sources":["../../../src/commands/neighbour/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,IAAI,CAAC;IAClB,UAAU,EAAE;QACV,EAAE,EAAY;YACZ,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;YACZ,MAAM,EAAK,IAAI;SAChB;QACD,KAAK,EAAS;YACZ,IAAI,EAAM,SAAS;YACnB,IAAI,EAAM,CAAC,IAAI,CAAC;YAChB,QAAQ,EAAE,IAAI;SACf;QACD,GAAG,EAAW;YACZ,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAG,IAAI;SAChB;QACD,MAAM,EAAQ;YACZ,IAAI,EAAM,SAAS;YACnB,IAAI,EAAM,CAAC,IAAI,CAAC;YAChB,QAAQ,EAAE,IAAI;SACf;QACD,YAAY,EAAE;YACZ,IAAI,EAAM,SAAS;YACnB,IAAI,EAAM,CAAC,IAAI,CAAC;YAChB,QAAQ,EAAE,IAAI;SACf;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Neighbour get options.
|
|
3
|
+
* @category Interfaces
|
|
4
|
+
*/
|
|
5
|
+
export interface NeighbourGetOptions {
|
|
6
|
+
/** Gets the proxy requests too. */
|
|
7
|
+
proxy?: true;
|
|
8
|
+
/** The prefix selecting the neighbours to list. */
|
|
9
|
+
to: string;
|
|
10
|
+
/** Only list the neighbours attached to this device. */
|
|
11
|
+
dev: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.interfaces.js","sourceRoot":"","sources":["../../../src/commands/neighbour/get.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NeighbourGetSchema = void 0;
|
|
4
|
+
const schemas_1 = require("../../common/constants/schemas");
|
|
5
|
+
exports.NeighbourGetSchema = {
|
|
6
|
+
$id: schemas_1.SchemaIds.RouteGet,
|
|
7
|
+
type: 'object',
|
|
8
|
+
required: ['to', 'dev'],
|
|
9
|
+
properties: {
|
|
10
|
+
proxy: {
|
|
11
|
+
type: 'boolean',
|
|
12
|
+
enum: [true],
|
|
13
|
+
nullable: true
|
|
14
|
+
},
|
|
15
|
+
to: {
|
|
16
|
+
type: 'string',
|
|
17
|
+
minLength: 1,
|
|
18
|
+
format: 'ip'
|
|
19
|
+
},
|
|
20
|
+
dev: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
minLength: 1
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=get.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.schema.js","sourceRoot":"","sources":["../../../src/commands/neighbour/get.schema.ts"],"names":[],"mappings":";;;AAEA,4DAA2D;AAG9C,QAAA,kBAAkB,GAAwC;IACrE,GAAG,EAAS,mBAAS,CAAC,QAAQ;IAC9B,IAAI,EAAQ,QAAQ;IACpB,QAAQ,EAAI,CAAC,IAAI,EAAE,KAAK,CAAC;IACzB,UAAU,EAAE;QACV,KAAK,EAAE;YACL,IAAI,EAAM,SAAS;YACnB,IAAI,EAAM,CAAC,IAAI,CAAC;YAChB,QAAQ,EAAE,IAAI;SACf;QACD,EAAE,EAAK;YACL,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;YACZ,MAAM,EAAK,IAAI;SAChB;QACD,GAAG,EAAI;YACL,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;SACb;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { NudStates } from '../neighbour.constants';
|
|
2
|
+
/**
|
|
3
|
+
* Neighbour show options.
|
|
4
|
+
* @category Interfaces
|
|
5
|
+
*/
|
|
6
|
+
export interface NeighbourShowOptions {
|
|
7
|
+
/** List neighbour proxies. */
|
|
8
|
+
proxy?: true;
|
|
9
|
+
/** The prefix selecting the neighbours to list. */
|
|
10
|
+
to?: string;
|
|
11
|
+
/** Only list the neighbours attached to this device. */
|
|
12
|
+
dev?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Only list neighbour entries in this state.
|
|
15
|
+
* If this option is absent, `ip` lists all entries except for {@link NudStates.None} and {@link NudStates.Noarp}.
|
|
16
|
+
*/
|
|
17
|
+
nud?: NudStates;
|
|
18
|
+
/** Only list the neighbours for given VRF. */
|
|
19
|
+
vrf?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Neighbour Info.
|
|
23
|
+
* TODO: Need help to build this undocumented & comprehensive interface.
|
|
24
|
+
*
|
|
25
|
+
* @category Interfaces
|
|
26
|
+
*/
|
|
27
|
+
export interface NeighbourInfo {
|
|
28
|
+
dst: string;
|
|
29
|
+
dev: string;
|
|
30
|
+
lladdr: string;
|
|
31
|
+
state: string[];
|
|
32
|
+
refcnt?: number;
|
|
33
|
+
used?: number;
|
|
34
|
+
confirmed?: number;
|
|
35
|
+
updated?: number;
|
|
36
|
+
probes?: number;
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show.interfaces.js","sourceRoot":"","sources":["../../../src/commands/neighbour/show.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NeighbourShowSchema = void 0;
|
|
4
|
+
const schemas_1 = require("../../common/constants/schemas");
|
|
5
|
+
const neighbour_constants_1 = require("../neighbour.constants");
|
|
6
|
+
exports.NeighbourShowSchema = {
|
|
7
|
+
$id: schemas_1.SchemaIds.NeighbourShow,
|
|
8
|
+
type: 'object',
|
|
9
|
+
required: [],
|
|
10
|
+
properties: {
|
|
11
|
+
proxy: {
|
|
12
|
+
type: 'boolean',
|
|
13
|
+
enum: [true],
|
|
14
|
+
nullable: true
|
|
15
|
+
},
|
|
16
|
+
to: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
minLength: 1,
|
|
19
|
+
format: 'ip',
|
|
20
|
+
nullable: true
|
|
21
|
+
},
|
|
22
|
+
dev: {
|
|
23
|
+
type: 'string',
|
|
24
|
+
minLength: 1,
|
|
25
|
+
nullable: true
|
|
26
|
+
},
|
|
27
|
+
nud: {
|
|
28
|
+
type: 'string',
|
|
29
|
+
enum: Object.values(neighbour_constants_1.NudStates),
|
|
30
|
+
nullable: true
|
|
31
|
+
},
|
|
32
|
+
vrf: {
|
|
33
|
+
type: 'string',
|
|
34
|
+
minLength: 1,
|
|
35
|
+
nullable: true
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=show.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show.schema.js","sourceRoot":"","sources":["../../../src/commands/neighbour/show.schema.ts"],"names":[],"mappings":";;;AAEA,4DAA2D;AAC3D,gEAAmD;AAGtC,QAAA,mBAAmB,GAAyC;IACvE,GAAG,EAAS,mBAAS,CAAC,aAAa;IACnC,IAAI,EAAQ,QAAQ;IACpB,QAAQ,EAAI,EAAE;IACd,UAAU,EAAE;QACV,KAAK,EAAE;YACL,IAAI,EAAM,SAAS;YACnB,IAAI,EAAM,CAAC,IAAI,CAAC;YAChB,QAAQ,EAAE,IAAI;SACf;QACD,EAAE,EAAK;YACL,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;YACZ,MAAM,EAAK,IAAI;YACf,QAAQ,EAAG,IAAI;SAChB;QACD,GAAG,EAAI;YACL,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAG,IAAI;SAChB;QACD,GAAG,EAAI;YACL,IAAI,EAAM,QAAQ;YAClB,IAAI,EAAM,MAAM,CAAC,MAAM,CAAC,+BAAS,CAAgB;YACjD,QAAQ,EAAE,IAAI;SACf;QACD,GAAG,EAAI;YACL,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAG,IAAI;SAChB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Neighbour Unreachability Detection (NUD) states.
|
|
3
|
+
* @category Constants
|
|
4
|
+
*/
|
|
5
|
+
export declare enum NudStates {
|
|
6
|
+
/** The neighbour entry is valid forever and can be only be removed administratively. */
|
|
7
|
+
Permanent = "permanent",
|
|
8
|
+
/**
|
|
9
|
+
* The neighbour entry is valid.
|
|
10
|
+
* No attempts to validate this entry will be made but it can be removed when its lifetime expires.
|
|
11
|
+
*/
|
|
12
|
+
Noarp = "noarp",
|
|
13
|
+
/** The neighbour entry is valid until the reachability timeout expires. */
|
|
14
|
+
Reachable = "reachable",
|
|
15
|
+
/**
|
|
16
|
+
* The neighbour entry is valid but suspicious.
|
|
17
|
+
* This option to `ip neigh` does not change the neighbour state if it was valid and the address
|
|
18
|
+
* is not changed by this command.
|
|
19
|
+
*/
|
|
20
|
+
Stale = "stale",
|
|
21
|
+
/**
|
|
22
|
+
* This is a pseudo state used when initially creating a neighbour entry or after trying to
|
|
23
|
+
* remove it before it becomes free to do so.
|
|
24
|
+
*/
|
|
25
|
+
None = "none",
|
|
26
|
+
/** The neighbour entry has not (yet) been validated/resolved. */
|
|
27
|
+
Incomplete = "incomplete",
|
|
28
|
+
/** Neighbor entry validation is currently delayed. */
|
|
29
|
+
Delay = "delay",
|
|
30
|
+
/** Neighbor is being probed. */
|
|
31
|
+
Probe = "probe",
|
|
32
|
+
/** Max number of probes exceeded without success, neighbor validation has ultimately failed. */
|
|
33
|
+
Failed = "failed"
|
|
34
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NudStates = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Neighbour Unreachability Detection (NUD) states.
|
|
6
|
+
* @category Constants
|
|
7
|
+
*/
|
|
8
|
+
var NudStates;
|
|
9
|
+
(function (NudStates) {
|
|
10
|
+
/** The neighbour entry is valid forever and can be only be removed administratively. */
|
|
11
|
+
NudStates["Permanent"] = "permanent";
|
|
12
|
+
/**
|
|
13
|
+
* The neighbour entry is valid.
|
|
14
|
+
* No attempts to validate this entry will be made but it can be removed when its lifetime expires.
|
|
15
|
+
*/
|
|
16
|
+
NudStates["Noarp"] = "noarp";
|
|
17
|
+
/** The neighbour entry is valid until the reachability timeout expires. */
|
|
18
|
+
NudStates["Reachable"] = "reachable";
|
|
19
|
+
/**
|
|
20
|
+
* The neighbour entry is valid but suspicious.
|
|
21
|
+
* This option to `ip neigh` does not change the neighbour state if it was valid and the address
|
|
22
|
+
* is not changed by this command.
|
|
23
|
+
*/
|
|
24
|
+
NudStates["Stale"] = "stale";
|
|
25
|
+
/**
|
|
26
|
+
* This is a pseudo state used when initially creating a neighbour entry or after trying to
|
|
27
|
+
* remove it before it becomes free to do so.
|
|
28
|
+
*/
|
|
29
|
+
NudStates["None"] = "none";
|
|
30
|
+
/** The neighbour entry has not (yet) been validated/resolved. */
|
|
31
|
+
NudStates["Incomplete"] = "incomplete";
|
|
32
|
+
/** Neighbor entry validation is currently delayed. */
|
|
33
|
+
NudStates["Delay"] = "delay";
|
|
34
|
+
/** Neighbor is being probed. */
|
|
35
|
+
NudStates["Probe"] = "probe";
|
|
36
|
+
/** Max number of probes exceeded without success, neighbor validation has ultimately failed. */
|
|
37
|
+
NudStates["Failed"] = "failed";
|
|
38
|
+
})(NudStates || (exports.NudStates = NudStates = {}));
|
|
39
|
+
//# sourceMappingURL=neighbour.constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"neighbour.constants.js","sourceRoot":"","sources":["../../src/commands/neighbour.constants.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,IAAY,SA6BX;AA7BD,WAAY,SAAS;IACnB,wFAAwF;IACxF,oCAAwB,CAAA;IACxB;;;OAGG;IACH,4BAAoB,CAAA;IACpB,2EAA2E;IAC3E,oCAAwB,CAAA;IACxB;;;;OAIG;IACH,4BAAoB,CAAA;IACpB;;;OAGG;IACH,0BAAmB,CAAA;IACnB,iEAAiE;IACjE,sCAAyB,CAAA;IACzB,sDAAsD;IACtD,4BAAoB,CAAA;IACpB,gCAAgC;IAChC,4BAAoB,CAAA;IACpB,gGAAgG;IAChG,8BAAqB,CAAA;AACvB,CAAC,EA7BW,SAAS,yBAAT,SAAS,QA6BpB"}
|