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,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MaddressAddSchema = void 0;
|
|
4
|
+
const schemas_1 = require("../../common/constants/schemas");
|
|
5
|
+
exports.MaddressAddSchema = {
|
|
6
|
+
$id: schemas_1.SchemaIds.MaddressAdd,
|
|
7
|
+
type: 'object',
|
|
8
|
+
required: ['address', 'dev'],
|
|
9
|
+
properties: {
|
|
10
|
+
address: {
|
|
11
|
+
type: 'string',
|
|
12
|
+
minLength: 1,
|
|
13
|
+
format: 'mac',
|
|
14
|
+
keyless: true
|
|
15
|
+
},
|
|
16
|
+
dev: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
minLength: 1
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=add.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add.schema.js","sourceRoot":"","sources":["../../../src/commands/maddress/add.schema.ts"],"names":[],"mappings":";;;AAEA,4DAA2D;AAG9C,QAAA,iBAAiB,GAAuC;IACnE,GAAG,EAAS,mBAAS,CAAC,WAAW;IACjC,IAAI,EAAQ,QAAQ;IACpB,QAAQ,EAAI,CAAC,SAAS,EAAE,KAAK,CAAC;IAC9B,UAAU,EAAE;QACV,OAAO,EAAE;YACP,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;YACZ,MAAM,EAAK,KAAK;YAChB,OAAO,EAAI,IAAI;SAChB;QACD,GAAG,EAAM;YACP,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;SACb;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AddressFamilies } from '../address.constants';
|
|
2
|
+
/**
|
|
3
|
+
* Maddress show options.
|
|
4
|
+
* @category Interfaces
|
|
5
|
+
*/
|
|
6
|
+
export interface MaddressShowOptions {
|
|
7
|
+
/** The device to join/leave this multicast address. */
|
|
8
|
+
dev?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Maddress Info.
|
|
12
|
+
* TODO: Need help to build this undocumented & comprehensive interface.
|
|
13
|
+
*
|
|
14
|
+
* @category Interfaces
|
|
15
|
+
*/
|
|
16
|
+
export interface MaddressInfo {
|
|
17
|
+
ifindex: number;
|
|
18
|
+
ifname: string;
|
|
19
|
+
maddr: Array<{
|
|
20
|
+
family?: AddressFamilies;
|
|
21
|
+
address?: string;
|
|
22
|
+
link?: string;
|
|
23
|
+
users?: number;
|
|
24
|
+
}>;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show.interfaces.js","sourceRoot":"","sources":["../../../src/commands/maddress/show.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MaddressShowSchema = void 0;
|
|
4
|
+
const schemas_1 = require("../../common/constants/schemas");
|
|
5
|
+
exports.MaddressShowSchema = {
|
|
6
|
+
$id: schemas_1.SchemaIds.MaddressShow,
|
|
7
|
+
type: 'object',
|
|
8
|
+
required: [],
|
|
9
|
+
properties: {
|
|
10
|
+
dev: {
|
|
11
|
+
type: 'string',
|
|
12
|
+
minLength: 1,
|
|
13
|
+
nullable: true
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=show.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show.schema.js","sourceRoot":"","sources":["../../../src/commands/maddress/show.schema.ts"],"names":[],"mappings":";;;AAEA,4DAA2D;AAG9C,QAAA,kBAAkB,GAAwC;IACrE,GAAG,EAAS,mBAAS,CAAC,YAAY;IAClC,IAAI,EAAQ,QAAQ;IACpB,QAAQ,EAAI,EAAE;IACd,UAAU,EAAE;QACV,GAAG,EAAE;YACH,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAG,IAAI;SAChB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import Command from '../common/classes/command';
|
|
2
|
+
import { GlobalOptions } from '../common/interfaces/common';
|
|
3
|
+
import { MaddressAddOptions } from './maddress/add.interfaces';
|
|
4
|
+
import { MaddressInfo, MaddressShowOptions } from './maddress/show.interfaces';
|
|
5
|
+
/**
|
|
6
|
+
* Add a multicast address.
|
|
7
|
+
*
|
|
8
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
9
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
10
|
+
*
|
|
11
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
12
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
*
|
|
16
|
+
* Import module
|
|
17
|
+
* ```
|
|
18
|
+
* import { maddress } from 'iproutejs';
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* Add a multicast address
|
|
22
|
+
* ```
|
|
23
|
+
* await maddress.add({
|
|
24
|
+
* address: '33:33:00:00:00:01',
|
|
25
|
+
* dev: 'enp0s3'
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare function add(options: MaddressAddOptions, globalOptions?: GlobalOptions): Promise<Command<MaddressAddOptions>>;
|
|
30
|
+
/**
|
|
31
|
+
* Delete a multicast address.
|
|
32
|
+
*
|
|
33
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
34
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
35
|
+
*
|
|
36
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
37
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
*
|
|
41
|
+
* Import module
|
|
42
|
+
* ```
|
|
43
|
+
* import { maddress } from 'iproutejs';
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* Delete a tunnel
|
|
47
|
+
* ```
|
|
48
|
+
* await maddress.del({
|
|
49
|
+
* address: '33:33:00:00:00:01',
|
|
50
|
+
* dev: 'enp0s3'
|
|
51
|
+
* });
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
export declare function del(options: MaddressAddOptions, globalOptions?: GlobalOptions): Promise<Command<MaddressAddOptions>>;
|
|
55
|
+
/**
|
|
56
|
+
* List multicast addresses.
|
|
57
|
+
*
|
|
58
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
59
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
62
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
*
|
|
66
|
+
* Import module
|
|
67
|
+
* ```
|
|
68
|
+
* import { maddress } from 'iproutejs';
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
71
|
+
* Show multicast addresses
|
|
72
|
+
* ```
|
|
73
|
+
* const entries = await maddress.show({});
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
export declare function show(options: MaddressShowOptions, globalOptions?: GlobalOptions): Promise<Command<MaddressShowOptions> | MaddressInfo[]>;
|
|
77
|
+
declare const _default: {
|
|
78
|
+
add: typeof add;
|
|
79
|
+
del: typeof del;
|
|
80
|
+
show: typeof show;
|
|
81
|
+
};
|
|
82
|
+
export default _default;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.show = exports.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("./maddress/add.schema");
|
|
20
|
+
const show_schema_1 = require("./maddress/show.schema");
|
|
21
|
+
/**
|
|
22
|
+
* Add a multicast address.
|
|
23
|
+
*
|
|
24
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
25
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
26
|
+
*
|
|
27
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
28
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
*
|
|
32
|
+
* Import module
|
|
33
|
+
* ```
|
|
34
|
+
* import { maddress } from 'iproutejs';
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* Add a multicast address
|
|
38
|
+
* ```
|
|
39
|
+
* await maddress.add({
|
|
40
|
+
* address: '33:33:00:00:00:01',
|
|
41
|
+
* dev: 'enp0s3'
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
function add(options, globalOptions = {}) {
|
|
46
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
const cmd = ['ip', 'maddress', 'add'];
|
|
48
|
+
const ipCmd = new command_1.default(schemas_1.SchemaIds.MaddressAdd, add_schema_1.MaddressAddSchema, options, globalOptions, cmd);
|
|
49
|
+
return yield ipCmd.exec();
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
exports.add = add;
|
|
53
|
+
/**
|
|
54
|
+
* Delete a multicast address.
|
|
55
|
+
*
|
|
56
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
57
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
60
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
*
|
|
64
|
+
* Import module
|
|
65
|
+
* ```
|
|
66
|
+
* import { maddress } from 'iproutejs';
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
69
|
+
* Delete a tunnel
|
|
70
|
+
* ```
|
|
71
|
+
* await maddress.del({
|
|
72
|
+
* address: '33:33:00:00:00:01',
|
|
73
|
+
* dev: 'enp0s3'
|
|
74
|
+
* });
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
function del(options, globalOptions = {}) {
|
|
78
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
79
|
+
const cmd = ['ip', 'maddress', 'del'];
|
|
80
|
+
const ipCmd = new command_1.default(schemas_1.SchemaIds.MaddressAdd, add_schema_1.MaddressAddSchema, options, globalOptions, cmd);
|
|
81
|
+
return yield ipCmd.exec();
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
exports.del = del;
|
|
85
|
+
/**
|
|
86
|
+
* List multicast addresses.
|
|
87
|
+
*
|
|
88
|
+
* @param options - Parameters options to be passed down to `ip`.
|
|
89
|
+
* @param globalOptions - Global parameters options that affects the command execution.
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link ParametersError} - Throws when passed parameters are invalid.
|
|
92
|
+
* @throws {@link CommandError} - Throws when the executed command fails.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
*
|
|
96
|
+
* Import module
|
|
97
|
+
* ```
|
|
98
|
+
* import { maddress } from 'iproutejs';
|
|
99
|
+
* ```
|
|
100
|
+
*
|
|
101
|
+
* Show multicast addresses
|
|
102
|
+
* ```
|
|
103
|
+
* const entries = await maddress.show({});
|
|
104
|
+
* ```
|
|
105
|
+
*/
|
|
106
|
+
function show(options, globalOptions = {}) {
|
|
107
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
+
const cmd = ['ip', 'maddress', 'show'];
|
|
109
|
+
const ipCmd = new command_with_returned_data_1.default(schemas_1.SchemaIds.MaddressShow, show_schema_1.MaddressShowSchema, options, Object.assign(Object.assign({}, globalOptions), {
|
|
110
|
+
// Overrides for a better show.
|
|
111
|
+
'-details': true, '-statistics': true, '-json': true }), cmd);
|
|
112
|
+
return yield ipCmd.exec();
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
exports.show = show;
|
|
116
|
+
exports.default = {
|
|
117
|
+
add,
|
|
118
|
+
del,
|
|
119
|
+
show
|
|
120
|
+
};
|
|
121
|
+
//# sourceMappingURL=maddress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"maddress.js","sourceRoot":"","sources":["../../src/commands/maddress.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,8GAAmF;AACnF,wEAAgD;AAChD,yDAAwD;AAGxD,sDAA0D;AAE1D,wDAA4D;AAE5D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAsB,GAAG,CAAC,OAA2B,EAC3B,gBAA+B,EAAE;;QAEzD,MAAM,GAAG,GAAG,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC;QAEtC,MAAM,KAAK,GAAG,IAAI,iBAAO,CACvB,mBAAS,CAAC,WAAW,EACrB,8BAAiB,EACjB,OAAO,EACP,aAAa,EACb,GAAG,CAAC,CAAC;QAEP,OAAO,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC;IAC5B,CAAC;CAAA;AAbD,kBAaC;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAsB,GAAG,CAAC,OAA2B,EAC3B,gBAA+B,EAAE;;QAEzD,MAAM,GAAG,GAAG,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC;QAEtC,MAAM,KAAK,GAAG,IAAI,iBAAO,CACvB,mBAAS,CAAC,WAAW,EACrB,8BAAiB,EACjB,OAAO,EACP,aAAa,EACb,GAAG,CAAC,CAAC;QAEP,OAAO,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC;IAC5B,CAAC;CAAA;AAbD,kBAaC;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAsB,IAAI,CAAC,OAA4B,EAC5B,gBAA+B,EAAE;;QAE1D,MAAM,GAAG,GAAG,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;QAEvC,MAAM,KAAK,GAAG,IAAI,oCAAuB,CACvC,mBAAS,CAAC,YAAY,EACtB,gCAAkB,EAClB,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,EAAkB,CAAC;IAC5C,CAAC;CAAA;AAnBD,oBAmBC;AAED,kBAAe;IACb,GAAG;IACH,GAAG;IACH,IAAI;CACL,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { MonitorObjects } from '../monitor.constants';
|
|
2
|
+
/**
|
|
3
|
+
* Monitor options.
|
|
4
|
+
* @category Interfaces
|
|
5
|
+
*/
|
|
6
|
+
export interface MonitorOptions {
|
|
7
|
+
/** Object type to monitor. */
|
|
8
|
+
object: MonitorObjects;
|
|
9
|
+
/**
|
|
10
|
+
* If set, a prefix is displayed before each message to show the family of the message.
|
|
11
|
+
* For `monitor`, is always enforced internally for consistency.
|
|
12
|
+
*/
|
|
13
|
+
label?: true;
|
|
14
|
+
/**
|
|
15
|
+
* If set, the program listens to all network namespaces that have a `nsid` assigned into the network namespace
|
|
16
|
+
* where the program is running.
|
|
17
|
+
*
|
|
18
|
+
* A prefix is displayed to show the network namespace where the message originates.
|
|
19
|
+
* For `monitor`, is always enforced internally for consistency.
|
|
20
|
+
*/
|
|
21
|
+
'all-nsid'?: true;
|
|
22
|
+
/** Prints only events related to this device. */
|
|
23
|
+
dev?: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitor.interfaces.js","sourceRoot":"","sources":["../../../src/commands/monitor/monitor.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MonitorSchema = void 0;
|
|
4
|
+
const schemas_1 = require("../../common/constants/schemas");
|
|
5
|
+
const monitor_constants_1 = require("../monitor.constants");
|
|
6
|
+
exports.MonitorSchema = {
|
|
7
|
+
$id: schemas_1.SchemaIds.Monitor,
|
|
8
|
+
type: 'object',
|
|
9
|
+
required: ['object'],
|
|
10
|
+
properties: {
|
|
11
|
+
object: {
|
|
12
|
+
type: 'string',
|
|
13
|
+
enum: Object.values(monitor_constants_1.MonitorObjects),
|
|
14
|
+
keyless: true
|
|
15
|
+
},
|
|
16
|
+
label: {
|
|
17
|
+
type: 'boolean',
|
|
18
|
+
enum: [true],
|
|
19
|
+
nullable: true
|
|
20
|
+
},
|
|
21
|
+
'all-nsid': {
|
|
22
|
+
type: 'boolean',
|
|
23
|
+
enum: [true],
|
|
24
|
+
nullable: true
|
|
25
|
+
},
|
|
26
|
+
dev: {
|
|
27
|
+
type: 'string',
|
|
28
|
+
minLength: 1,
|
|
29
|
+
nullable: true
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=monitor.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitor.schema.js","sourceRoot":"","sources":["../../../src/commands/monitor/monitor.schema.ts"],"names":[],"mappings":";;;AAGA,4DAA2D;AAC3D,4DAAsD;AAEzC,QAAA,aAAa,GAAmC;IAC3D,GAAG,EAAS,mBAAS,CAAC,OAAO;IAC7B,IAAI,EAAQ,QAAQ;IACpB,QAAQ,EAAI,CAAC,QAAQ,CAAC;IACtB,UAAU,EAAE;QACV,MAAM,EAAM;YACV,IAAI,EAAK,QAAQ;YACjB,IAAI,EAAK,MAAM,CAAC,MAAM,CAAC,kCAAc,CAAqB;YAC1D,OAAO,EAAE,IAAI;SACd;QACD,KAAK,EAAO;YACV,IAAI,EAAM,SAAS;YACnB,IAAI,EAAM,CAAC,IAAI,CAAC;YAChB,QAAQ,EAAE,IAAI;SACf;QACD,UAAU,EAAE;YACV,IAAI,EAAM,SAAS;YACnB,IAAI,EAAM,CAAC,IAAI,CAAC;YAChB,QAAQ,EAAE,IAAI;SACf;QACD,GAAG,EAAS;YACV,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAG,IAAI;SAChB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Monitor objects.
|
|
3
|
+
* @category Constants
|
|
4
|
+
*/
|
|
5
|
+
export declare enum MonitorObjects {
|
|
6
|
+
All = "all",
|
|
7
|
+
Link = "link",
|
|
8
|
+
Address = "address",
|
|
9
|
+
Route = "route",
|
|
10
|
+
Mroute = "mroute",
|
|
11
|
+
Prefix = "prefix",
|
|
12
|
+
Neigh = "neigh",
|
|
13
|
+
Netconf = "netconf",
|
|
14
|
+
Rule = "rule",
|
|
15
|
+
Nsid = "nsid",
|
|
16
|
+
Nexthop = "nexthop"
|
|
17
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MonitorObjects = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Monitor objects.
|
|
6
|
+
* @category Constants
|
|
7
|
+
*/
|
|
8
|
+
var MonitorObjects;
|
|
9
|
+
(function (MonitorObjects) {
|
|
10
|
+
MonitorObjects["All"] = "all";
|
|
11
|
+
MonitorObjects["Link"] = "link";
|
|
12
|
+
MonitorObjects["Address"] = "address";
|
|
13
|
+
MonitorObjects["Route"] = "route";
|
|
14
|
+
MonitorObjects["Mroute"] = "mroute";
|
|
15
|
+
MonitorObjects["Prefix"] = "prefix";
|
|
16
|
+
MonitorObjects["Neigh"] = "neigh";
|
|
17
|
+
MonitorObjects["Netconf"] = "netconf";
|
|
18
|
+
MonitorObjects["Rule"] = "rule";
|
|
19
|
+
MonitorObjects["Nsid"] = "nsid";
|
|
20
|
+
MonitorObjects["Nexthop"] = "nexthop";
|
|
21
|
+
})(MonitorObjects || (exports.MonitorObjects = MonitorObjects = {}));
|
|
22
|
+
//# sourceMappingURL=monitor.constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitor.constants.js","sourceRoot":"","sources":["../../src/commands/monitor.constants.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,IAAY,cAYX;AAZD,WAAY,cAAc;IACxB,6BAAe,CAAA;IACf,+BAAgB,CAAA;IAChB,qCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,mCAAkB,CAAA;IAClB,mCAAkB,CAAA;IAClB,iCAAiB,CAAA;IACjB,qCAAmB,CAAA;IACnB,+BAAgB,CAAA;IAChB,+BAAgB,CAAA;IAChB,qCAAmB,CAAA;AACrB,CAAC,EAZW,cAAc,8BAAd,cAAc,QAYzB"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import MonitorCommand from '../common/classes/monitor-command';
|
|
2
|
+
import { GlobalOptions } from '../common/interfaces/common';
|
|
3
|
+
import { MonitorOptions } from './monitor/monitor.interfaces';
|
|
4
|
+
/**
|
|
5
|
+
* State monitoring.
|
|
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 { monitor } from 'iproutejs';
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* Monitor all objects state changes
|
|
21
|
+
* ```
|
|
22
|
+
* monitor({
|
|
23
|
+
* object: MonitorObjects.All
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* After starting the monitor, you can start watching for changes
|
|
28
|
+
* ```
|
|
29
|
+
* let command: MonitorCommand<MonitorOptions>;
|
|
30
|
+
*
|
|
31
|
+
* monitor({
|
|
32
|
+
* object: MonitorObjects.All
|
|
33
|
+
* })
|
|
34
|
+
* .then((_command) => {
|
|
35
|
+
* command = _command;
|
|
36
|
+
*
|
|
37
|
+
* command.on(MonitorObjects.All, (data: MonitorEmittedData) => {
|
|
38
|
+
* // Do something with `data`.
|
|
39
|
+
* });
|
|
40
|
+
*
|
|
41
|
+
* command.on('error', (error) => {
|
|
42
|
+
* // Do something with `data`.
|
|
43
|
+
* });
|
|
44
|
+
* });
|
|
45
|
+
*
|
|
46
|
+
* setTimeout(() => {
|
|
47
|
+
* command.close();
|
|
48
|
+
* }, 5000);
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
export declare function monitor(options: MonitorOptions, globalOptions?: GlobalOptions): Promise<MonitorCommand<MonitorOptions>>;
|
|
52
|
+
export default monitor;
|
|
@@ -0,0 +1,75 @@
|
|
|
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.monitor = void 0;
|
|
16
|
+
const monitor_command_1 = __importDefault(require("../common/classes/monitor-command"));
|
|
17
|
+
const schemas_1 = require("../common/constants/schemas");
|
|
18
|
+
const monitor_schema_1 = require("./monitor/monitor.schema");
|
|
19
|
+
/**
|
|
20
|
+
* State monitoring.
|
|
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 { monitor } from 'iproutejs';
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* Monitor all objects state changes
|
|
36
|
+
* ```
|
|
37
|
+
* monitor({
|
|
38
|
+
* object: MonitorObjects.All
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* After starting the monitor, you can start watching for changes
|
|
43
|
+
* ```
|
|
44
|
+
* let command: MonitorCommand<MonitorOptions>;
|
|
45
|
+
*
|
|
46
|
+
* monitor({
|
|
47
|
+
* object: MonitorObjects.All
|
|
48
|
+
* })
|
|
49
|
+
* .then((_command) => {
|
|
50
|
+
* command = _command;
|
|
51
|
+
*
|
|
52
|
+
* command.on(MonitorObjects.All, (data: MonitorEmittedData) => {
|
|
53
|
+
* // Do something with `data`.
|
|
54
|
+
* });
|
|
55
|
+
*
|
|
56
|
+
* command.on('error', (error) => {
|
|
57
|
+
* // Do something with `data`.
|
|
58
|
+
* });
|
|
59
|
+
* });
|
|
60
|
+
*
|
|
61
|
+
* setTimeout(() => {
|
|
62
|
+
* command.close();
|
|
63
|
+
* }, 5000);
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
function monitor(options, globalOptions = {}) {
|
|
67
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
const cmd = ['ip', 'monitor'];
|
|
69
|
+
const ipCmd = new monitor_command_1.default(schemas_1.SchemaIds.Monitor, monitor_schema_1.MonitorSchema, options, Object.assign(Object.assign({}, globalOptions), { '-tshort': true, '-oneline': true }), cmd);
|
|
70
|
+
return yield ipCmd.exec();
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
exports.monitor = monitor;
|
|
74
|
+
exports.default = monitor;
|
|
75
|
+
//# sourceMappingURL=monitor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitor.js","sourceRoot":"","sources":["../../src/commands/monitor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,wFAA+D;AAC/D,yDAAwD;AAGxD,6DAAyD;AAEzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,SAAsB,OAAO,CAAC,OAAuB,EACvB,gBAA+B,EAAE;;QAE7D,MAAM,GAAG,GAAG,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAE9B,MAAM,KAAK,GAAG,IAAI,yBAAc,CAC9B,mBAAS,CAAC,OAAO,EACjB,8BAAa,EACb,OAAO,kCAEF,aAAa,KAChB,SAAS,EAAG,IAAI,EAChB,UAAU,EAAE,IAAI,KAElB,GAAG,CAAC,CAAC;QAEP,OAAO,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC;IAC5B,CAAC;CAAA;AAjBD,0BAiBC;AAED,kBAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { RouteRoutingTables } from '../route/show.constants';
|
|
2
|
+
/**
|
|
3
|
+
* Mroute show options.
|
|
4
|
+
* @category Interfaces
|
|
5
|
+
*/
|
|
6
|
+
export interface MrouteShowOptions {
|
|
7
|
+
/** The prefix selecting the destination multicast addresses to list. */
|
|
8
|
+
to?: string;
|
|
9
|
+
/** The prefix selecting the IP source addresses of the multicast route. */
|
|
10
|
+
from?: string;
|
|
11
|
+
/** The interface on which multicast packets are received. */
|
|
12
|
+
iif?: string;
|
|
13
|
+
/**
|
|
14
|
+
* The table id selecting the multicast table.
|
|
15
|
+
* It can be `local`, `main`, `default`, `all` or a number.
|
|
16
|
+
*/
|
|
17
|
+
table?: number | RouteRoutingTables;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Mroute Info.
|
|
21
|
+
* TODO: Need help to build this undocumented & comprehensive interface.
|
|
22
|
+
*
|
|
23
|
+
* @category Interfaces
|
|
24
|
+
*/
|
|
25
|
+
export interface MrouteInfo {
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show.interfaces.js","sourceRoot":"","sources":["../../../src/commands/mroute/show.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MrouteShowSchema = void 0;
|
|
4
|
+
const schemas_1 = require("../../common/constants/schemas");
|
|
5
|
+
const show_constants_1 = require("../route/show.constants");
|
|
6
|
+
exports.MrouteShowSchema = {
|
|
7
|
+
$id: schemas_1.SchemaIds.MrouteShow,
|
|
8
|
+
type: 'object',
|
|
9
|
+
required: [],
|
|
10
|
+
properties: {
|
|
11
|
+
to: {
|
|
12
|
+
type: 'string',
|
|
13
|
+
format: 'ip-with-required-mask',
|
|
14
|
+
nullable: true
|
|
15
|
+
},
|
|
16
|
+
from: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
format: 'ip-with-required-mask',
|
|
19
|
+
nullable: true
|
|
20
|
+
},
|
|
21
|
+
iif: {
|
|
22
|
+
type: 'string',
|
|
23
|
+
minLength: 1,
|
|
24
|
+
nullable: true
|
|
25
|
+
},
|
|
26
|
+
table: {
|
|
27
|
+
type: ['string', 'integer'],
|
|
28
|
+
nullable: true,
|
|
29
|
+
oneOf: [
|
|
30
|
+
{
|
|
31
|
+
type: 'string',
|
|
32
|
+
enum: Object.values(show_constants_1.RouteRoutingTables),
|
|
33
|
+
nullable: true
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
type: 'integer',
|
|
37
|
+
minimum: 0,
|
|
38
|
+
nullable: true
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=show.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show.schema.js","sourceRoot":"","sources":["../../../src/commands/mroute/show.schema.ts"],"names":[],"mappings":";;;AAEA,4DAA2D;AAE3D,4DAA6D;AAEhD,QAAA,gBAAgB,GAAsC;IACjE,GAAG,EAAS,mBAAS,CAAC,UAAU;IAChC,IAAI,EAAQ,QAAQ;IACpB,QAAQ,EAAI,EAAE;IACd,UAAU,EAAE;QACV,EAAE,EAAK;YACL,IAAI,EAAM,QAAQ;YAClB,MAAM,EAAI,uBAAuB;YACjC,QAAQ,EAAE,IAAI;SACf;QACD,IAAI,EAAG;YACL,IAAI,EAAM,QAAQ;YAClB,MAAM,EAAI,uBAAuB;YACjC,QAAQ,EAAE,IAAI;SACf;QACD,GAAG,EAAI;YACL,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAG,IAAI;SAChB;QACD,KAAK,EAAE;YACL,IAAI,EAAM,CAAC,QAAQ,EAAE,SAAS,CAAC;YAC/B,QAAQ,EAAE,IAAI;YACd,KAAK,EAAK;gBACR;oBACE,IAAI,EAAM,QAAQ;oBAClB,IAAI,EAAM,MAAM,CAAC,MAAM,CAAC,mCAAkB,CAAyB;oBACnE,QAAQ,EAAE,IAAI;iBACf;gBACD;oBACE,IAAI,EAAM,SAAS;oBACnB,OAAO,EAAG,CAAC;oBACX,QAAQ,EAAE,IAAI;iBACf;aACF;SACF;KACF;CACF,CAAC"}
|