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,89 @@
|
|
|
1
|
+
import { AddressScopes } from '../address.constants';
|
|
2
|
+
/**
|
|
3
|
+
* Address flush options.
|
|
4
|
+
* @category Interfaces
|
|
5
|
+
*/
|
|
6
|
+
export interface AddressFlushOptions {
|
|
7
|
+
/** The name of the device to match the address from. */
|
|
8
|
+
dev?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The scope of the area where this address is valid.
|
|
11
|
+
* The available scopes are listed in file `/etc/iproute2/rt_scopes`.
|
|
12
|
+
*/
|
|
13
|
+
scope?: AddressScopes | number;
|
|
14
|
+
/** Priority of prefix route associated with address. */
|
|
15
|
+
metric?: number;
|
|
16
|
+
/** Only affect addresses matching this prefix. */
|
|
17
|
+
to?: string;
|
|
18
|
+
/**
|
|
19
|
+
* (IPv6 only) only list addresses installed due to stateless address configuration or only list permanent
|
|
20
|
+
* (not dynamic) addresses.
|
|
21
|
+
*
|
|
22
|
+
* These two flags are inverses of each other, so -dynamic is equal to permanent and -permanent is equal to dynamic.
|
|
23
|
+
*/
|
|
24
|
+
permanent?: true;
|
|
25
|
+
/** @see {@link permanent} */
|
|
26
|
+
'-permanent'?: true;
|
|
27
|
+
/** @see {@link permanent} */
|
|
28
|
+
dynamic?: true;
|
|
29
|
+
/** @see {@link permanent} */
|
|
30
|
+
'-dynamic'?: true;
|
|
31
|
+
/** @see {@link temporary} */
|
|
32
|
+
secondary?: true;
|
|
33
|
+
/**
|
|
34
|
+
* Aliases for primary.
|
|
35
|
+
* @see {@link primary}
|
|
36
|
+
*/
|
|
37
|
+
'-secondary'?: true;
|
|
38
|
+
/**
|
|
39
|
+
* List only primary addresses, in IPv6 exclude temporary ones.
|
|
40
|
+
* This flag is the inverse of {@link temporary} and {@link secondary}.
|
|
41
|
+
*/
|
|
42
|
+
primary?: true;
|
|
43
|
+
/**
|
|
44
|
+
* This is an alias for {@link temporary} or {@link secondary}.
|
|
45
|
+
* @see {@link temporary}
|
|
46
|
+
*/
|
|
47
|
+
'-primary'?: true;
|
|
48
|
+
/** (IPv6 only) only list addresses which have not yet passed duplicate address detection. */
|
|
49
|
+
tentative?: true;
|
|
50
|
+
/**
|
|
51
|
+
* Aliases for primary.
|
|
52
|
+
* @see {@link primary}
|
|
53
|
+
*/
|
|
54
|
+
'-tentative'?: true;
|
|
55
|
+
/** (IPv6 only) only list deprecated addresses. */
|
|
56
|
+
deprecated?: true;
|
|
57
|
+
/** (IPv6 only) only list addresses not being deprecated. */
|
|
58
|
+
'-deprecated'?: true;
|
|
59
|
+
/** (IPv6 only) only list addresses which have failed duplicate address detection. */
|
|
60
|
+
dadfailed?: true;
|
|
61
|
+
/** (IPv6 only) only list addresses which have not failed duplicate address detection. */
|
|
62
|
+
'-dadfailed'?: true;
|
|
63
|
+
/**
|
|
64
|
+
* List temporary IPv6 or secondary IPv4 addresses only. The Linux kernel shares a single bit for those, so they
|
|
65
|
+
* are actually aliases for each other although the meaning differs depending on address family.
|
|
66
|
+
*/
|
|
67
|
+
temporary?: true;
|
|
68
|
+
/** @see {@link temporary} */
|
|
69
|
+
'-temporary'?: true;
|
|
70
|
+
/** @see {@link AddressAddOptions.home} */
|
|
71
|
+
home?: true;
|
|
72
|
+
/** @see {@link AddressAddOptions.mngtmpaddr} */
|
|
73
|
+
mngtmpaddr?: true;
|
|
74
|
+
/** @see {@link AddressAddOptions.nodad} */
|
|
75
|
+
nodad?: true;
|
|
76
|
+
/** @see {@link AddressAddOptions.optimistic} */
|
|
77
|
+
optimistic?: true;
|
|
78
|
+
/** @see {@link AddressAddOptions.noprefixroute} */
|
|
79
|
+
noprefixroute?: true;
|
|
80
|
+
/** @see {@link AddressAddOptions.autojoin} */
|
|
81
|
+
autojoin?: true;
|
|
82
|
+
/**
|
|
83
|
+
* Only list addresses with labels matching the PATTERN.
|
|
84
|
+
* PATTERN is a usual shell style pattern.
|
|
85
|
+
*/
|
|
86
|
+
label?: string;
|
|
87
|
+
/** Matches addresses of running interfaces. */
|
|
88
|
+
up?: true;
|
|
89
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flush.interfaces.js","sourceRoot":"","sources":["../../../src/commands/address/flush.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddressFlushSchema = void 0;
|
|
4
|
+
const schemas_1 = require("../../common/constants/schemas");
|
|
5
|
+
const address_constants_1 = require("../address.constants");
|
|
6
|
+
exports.AddressFlushSchema = {
|
|
7
|
+
$id: schemas_1.SchemaIds.AddressFlush,
|
|
8
|
+
type: 'object',
|
|
9
|
+
required: [],
|
|
10
|
+
properties: {
|
|
11
|
+
dev: {
|
|
12
|
+
type: 'string',
|
|
13
|
+
minLength: 1,
|
|
14
|
+
maxLength: 15,
|
|
15
|
+
nullable: true
|
|
16
|
+
},
|
|
17
|
+
scope: {
|
|
18
|
+
type: ['string', 'integer'],
|
|
19
|
+
nullable: true,
|
|
20
|
+
oneOf: [
|
|
21
|
+
{
|
|
22
|
+
type: 'string',
|
|
23
|
+
enum: Object.values(address_constants_1.AddressScopes),
|
|
24
|
+
nullable: true
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
type: 'integer',
|
|
28
|
+
minimum: 0,
|
|
29
|
+
nullable: true
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
metric: {
|
|
34
|
+
type: 'integer',
|
|
35
|
+
minimum: 0,
|
|
36
|
+
nullable: true
|
|
37
|
+
},
|
|
38
|
+
to: {
|
|
39
|
+
type: 'string',
|
|
40
|
+
format: 'ip-with-optional-mask',
|
|
41
|
+
nullable: true
|
|
42
|
+
},
|
|
43
|
+
permanent: {
|
|
44
|
+
type: 'boolean',
|
|
45
|
+
enum: [true],
|
|
46
|
+
nullable: true
|
|
47
|
+
},
|
|
48
|
+
'-permanent': {
|
|
49
|
+
type: 'boolean',
|
|
50
|
+
enum: [true],
|
|
51
|
+
nullable: true
|
|
52
|
+
},
|
|
53
|
+
dynamic: {
|
|
54
|
+
type: 'boolean',
|
|
55
|
+
enum: [true],
|
|
56
|
+
nullable: true
|
|
57
|
+
},
|
|
58
|
+
'-dynamic': {
|
|
59
|
+
type: 'boolean',
|
|
60
|
+
enum: [true],
|
|
61
|
+
nullable: true
|
|
62
|
+
},
|
|
63
|
+
secondary: {
|
|
64
|
+
type: 'boolean',
|
|
65
|
+
enum: [true],
|
|
66
|
+
nullable: true
|
|
67
|
+
},
|
|
68
|
+
'-secondary': {
|
|
69
|
+
type: 'boolean',
|
|
70
|
+
enum: [true],
|
|
71
|
+
nullable: true
|
|
72
|
+
},
|
|
73
|
+
primary: {
|
|
74
|
+
type: 'boolean',
|
|
75
|
+
enum: [true],
|
|
76
|
+
nullable: true
|
|
77
|
+
},
|
|
78
|
+
'-primary': {
|
|
79
|
+
type: 'boolean',
|
|
80
|
+
enum: [true],
|
|
81
|
+
nullable: true
|
|
82
|
+
},
|
|
83
|
+
tentative: {
|
|
84
|
+
type: 'boolean',
|
|
85
|
+
enum: [true],
|
|
86
|
+
nullable: true
|
|
87
|
+
},
|
|
88
|
+
'-tentative': {
|
|
89
|
+
type: 'boolean',
|
|
90
|
+
enum: [true],
|
|
91
|
+
nullable: true
|
|
92
|
+
},
|
|
93
|
+
deprecated: {
|
|
94
|
+
type: 'boolean',
|
|
95
|
+
enum: [true],
|
|
96
|
+
nullable: true
|
|
97
|
+
},
|
|
98
|
+
'-deprecated': {
|
|
99
|
+
type: 'boolean',
|
|
100
|
+
enum: [true],
|
|
101
|
+
nullable: true
|
|
102
|
+
},
|
|
103
|
+
dadfailed: {
|
|
104
|
+
type: 'boolean',
|
|
105
|
+
enum: [true],
|
|
106
|
+
nullable: true
|
|
107
|
+
},
|
|
108
|
+
'-dadfailed': {
|
|
109
|
+
type: 'boolean',
|
|
110
|
+
enum: [true],
|
|
111
|
+
nullable: true
|
|
112
|
+
},
|
|
113
|
+
temporary: {
|
|
114
|
+
type: 'boolean',
|
|
115
|
+
enum: [true],
|
|
116
|
+
nullable: true
|
|
117
|
+
},
|
|
118
|
+
'-temporary': {
|
|
119
|
+
type: 'boolean',
|
|
120
|
+
enum: [true],
|
|
121
|
+
nullable: true
|
|
122
|
+
},
|
|
123
|
+
home: {
|
|
124
|
+
type: 'boolean',
|
|
125
|
+
enum: [true],
|
|
126
|
+
nullable: true
|
|
127
|
+
},
|
|
128
|
+
mngtmpaddr: {
|
|
129
|
+
type: 'boolean',
|
|
130
|
+
enum: [true],
|
|
131
|
+
nullable: true
|
|
132
|
+
},
|
|
133
|
+
nodad: {
|
|
134
|
+
type: 'boolean',
|
|
135
|
+
enum: [true],
|
|
136
|
+
nullable: true
|
|
137
|
+
},
|
|
138
|
+
optimistic: {
|
|
139
|
+
type: 'boolean',
|
|
140
|
+
enum: [true],
|
|
141
|
+
nullable: true
|
|
142
|
+
},
|
|
143
|
+
noprefixroute: {
|
|
144
|
+
type: 'boolean',
|
|
145
|
+
enum: [true],
|
|
146
|
+
nullable: true
|
|
147
|
+
},
|
|
148
|
+
autojoin: {
|
|
149
|
+
type: 'boolean',
|
|
150
|
+
enum: [true],
|
|
151
|
+
nullable: true
|
|
152
|
+
},
|
|
153
|
+
label: {
|
|
154
|
+
type: 'string',
|
|
155
|
+
minLength: 1,
|
|
156
|
+
nullable: true
|
|
157
|
+
},
|
|
158
|
+
up: {
|
|
159
|
+
type: 'boolean',
|
|
160
|
+
enum: [true],
|
|
161
|
+
nullable: true
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
//# sourceMappingURL=flush.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flush.schema.js","sourceRoot":"","sources":["../../../src/commands/address/flush.schema.ts"],"names":[],"mappings":";;;AAEA,4DAAqE;AACrE,4DAA2D;AAG9C,QAAA,kBAAkB,GAAwC;IACrE,GAAG,EAAS,mBAAS,CAAC,YAAY;IAClC,IAAI,EAAQ,QAAQ;IACpB,QAAQ,EAAI,EAAE;IACd,UAAU,EAAE;QACV,GAAG,EAAY;YACb,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;YACZ,SAAS,EAAE,EAAE;YACb,QAAQ,EAAG,IAAI;SAChB;QACD,KAAK,EAAU;YACb,IAAI,EAAM,CAAC,QAAQ,EAAE,SAAS,CAAC;YAC/B,QAAQ,EAAE,IAAI;YACd,KAAK,EAAK;gBACR;oBACE,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AM,CAAC,IAAI,CAAC;YAChB,QAAQ,EAAE,IAAI;SACf;QACD,aAAa,EAAE;YACb,IAAI,EAAM,SAAS;YACnB,IAAI,EAAM,CAAC,IAAI,CAAC;YAChB,QAAQ,EAAE,IAAI;SACf;QACD,QAAQ,EAAO;YACb,IAAI,EAAM,SAAS;YACnB,IAAI,EAAM,CAAC,IAAI,CAAC;YAChB,QAAQ,EAAE,IAAI;SACf;QACD,KAAK,EAAU;YACb,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAG,IAAI;SAChB;QACD,EAAE,EAAa;YACb,IAAI,EAAM,SAAS;YACnB,IAAI,EAAM,CAAC,IAAI,CAAC;YAChB,QAAQ,EAAE,IAAI;SACf;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { LinkTypes } from '../link.constants';
|
|
2
|
+
import { LinkInfo } from '../link/show.interfaces';
|
|
3
|
+
import { AddressScopes } from '../address.constants';
|
|
4
|
+
/**
|
|
5
|
+
* Address show options.
|
|
6
|
+
* @category Interfaces
|
|
7
|
+
*/
|
|
8
|
+
export interface AddressShowOptions {
|
|
9
|
+
/** The name of the device to filter and show its addresses. */
|
|
10
|
+
dev?: string;
|
|
11
|
+
/** Only list addresses with this scope. */
|
|
12
|
+
scope?: AddressScopes | number;
|
|
13
|
+
/** Only show addresses matching this prefix. */
|
|
14
|
+
to?: string;
|
|
15
|
+
/**
|
|
16
|
+
* (IPv6 only) only list addresses installed due to stateless address configuration or only list permanent
|
|
17
|
+
* (not dynamic) addresses.
|
|
18
|
+
*
|
|
19
|
+
* These two flags are inverses of each other, so -dynamic is equal to permanent and -permanent is equal to dynamic.
|
|
20
|
+
*/
|
|
21
|
+
permanent?: true;
|
|
22
|
+
/** @see {@link permanent} */
|
|
23
|
+
'-permanent'?: true;
|
|
24
|
+
/** @see {@link permanent} */
|
|
25
|
+
dynamic?: true;
|
|
26
|
+
/** @see {@link permanent} */
|
|
27
|
+
'-dynamic'?: true;
|
|
28
|
+
/** @see {@link temporary} */
|
|
29
|
+
secondary?: true;
|
|
30
|
+
/**
|
|
31
|
+
* Aliases for primary.
|
|
32
|
+
* @see {@link primary}
|
|
33
|
+
*/
|
|
34
|
+
'-secondary'?: true;
|
|
35
|
+
/** List only primary addresses, in IPv6 exclude temporary ones.
|
|
36
|
+
* This flag is the inverse of {@link temporary} and {@link secondary}.
|
|
37
|
+
*/
|
|
38
|
+
primary?: true;
|
|
39
|
+
/**
|
|
40
|
+
* This is an alias for {@link temporary} or {@link secondary}.
|
|
41
|
+
* @see {@link temporary}
|
|
42
|
+
*/
|
|
43
|
+
'-primary'?: true;
|
|
44
|
+
/** (IPv6 only) only list addresses which have not yet passed duplicate address detection. */
|
|
45
|
+
tentative?: true;
|
|
46
|
+
/**
|
|
47
|
+
* Aliases for primary.
|
|
48
|
+
* @see {@link primary}
|
|
49
|
+
*/
|
|
50
|
+
'-tentative'?: true;
|
|
51
|
+
/** (IPv6 only) only list deprecated addresses. */
|
|
52
|
+
deprecated?: true;
|
|
53
|
+
/** (IPv6 only) only list addresses not being deprecated. */
|
|
54
|
+
'-deprecated'?: true;
|
|
55
|
+
/** (IPv6 only) only list addresses which have failed duplicate address detection. */
|
|
56
|
+
dadfailed?: true;
|
|
57
|
+
/** (IPv6 only) only list addresses which have not failed duplicate address detection. */
|
|
58
|
+
'-dadfailed'?: true;
|
|
59
|
+
/**
|
|
60
|
+
* List temporary IPv6 or secondary IPv4 addresses only. The Linux kernel shares a single bit for those, so they
|
|
61
|
+
* are actually aliases for each other although the meaning differs depending on address family.
|
|
62
|
+
*/
|
|
63
|
+
temporary?: true;
|
|
64
|
+
/** @see {@link temporary} */
|
|
65
|
+
'-temporary'?: true;
|
|
66
|
+
/** @see {@link AddressAddOptions.home} */
|
|
67
|
+
home?: true;
|
|
68
|
+
/** @see {@link AddressAddOptions.mngtmpaddr} */
|
|
69
|
+
mngtmpaddr?: true;
|
|
70
|
+
/** @see {@link AddressAddOptions.nodad} */
|
|
71
|
+
nodad?: true;
|
|
72
|
+
/** @see {@link AddressAddOptions.optimistic} */
|
|
73
|
+
optimistic?: true;
|
|
74
|
+
/** @see {@link AddressAddOptions.noprefixroute} */
|
|
75
|
+
noprefixroute?: true;
|
|
76
|
+
/** @see {@link AddressAddOptions.autojoin} */
|
|
77
|
+
autojoin?: true;
|
|
78
|
+
/**
|
|
79
|
+
* Only list addresses with labels matching the PATTERN.
|
|
80
|
+
* PATTERN is a usual shell style pattern.
|
|
81
|
+
*/
|
|
82
|
+
label?: string;
|
|
83
|
+
/** Only list interfaces enslaved to this master device. */
|
|
84
|
+
master?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Only list interfaces of the given type.
|
|
87
|
+
*
|
|
88
|
+
* Note that the type name is not checked against the list of supported types - instead it is sent as-is to the kernel.
|
|
89
|
+
* Later it is used to filter the returned interface list by comparing it with the relevant attribute in case the
|
|
90
|
+
* kernel didn't filter already.
|
|
91
|
+
*
|
|
92
|
+
* Therefore any string is accepted, but may lead to empty output.
|
|
93
|
+
*/
|
|
94
|
+
type?: LinkTypes;
|
|
95
|
+
/** Only list interfaces enslaved to this `vrf`. */
|
|
96
|
+
vrf?: string;
|
|
97
|
+
/** Only list running interfaces. */
|
|
98
|
+
up?: true;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Link with address info.
|
|
102
|
+
* TODO: Need help to build this partially compiled interface.
|
|
103
|
+
*
|
|
104
|
+
* @category Interfaces
|
|
105
|
+
*/
|
|
106
|
+
export interface LinkWithAddressInfo extends LinkInfo {
|
|
107
|
+
addr_info: AddressInfo[];
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Only with address info.
|
|
111
|
+
* @category Interfaces
|
|
112
|
+
*/
|
|
113
|
+
export interface OnlyAddressInfo {
|
|
114
|
+
addr_info: AddressInfo[];
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Address info.
|
|
118
|
+
* @category Interfaces
|
|
119
|
+
*/
|
|
120
|
+
export interface AddressInfo {
|
|
121
|
+
/** @see {@link AddressFamilies } */
|
|
122
|
+
family: string;
|
|
123
|
+
/** @see {@link AddressAddOptions.local } */
|
|
124
|
+
local: string;
|
|
125
|
+
/** @see {@link AddressAddOptions.broadcast } */
|
|
126
|
+
broadcast?: string;
|
|
127
|
+
prefixlen: number;
|
|
128
|
+
/** @see {@link AddressShowOptions.scope } */
|
|
129
|
+
scope: AddressScopes | number;
|
|
130
|
+
/** @see {@link AddressShowOptions.label } */
|
|
131
|
+
label: string;
|
|
132
|
+
/** @see {@link AddressFlushOptions.metric } */
|
|
133
|
+
metric?: number;
|
|
134
|
+
/** @see {@link AddressAddOptions.valid_lft } */
|
|
135
|
+
valid_life_time: number;
|
|
136
|
+
/** @see {@link AddressAddOptions.preferred_lft } */
|
|
137
|
+
preferred_life_time: number;
|
|
138
|
+
/** @see {@link AddressShowOptions.permanent } */
|
|
139
|
+
permanent?: true;
|
|
140
|
+
/** @see {@link AddressShowOptions.dynamic } */
|
|
141
|
+
dynamic?: true;
|
|
142
|
+
/** @see {@link AddressShowOptions.secondary } */
|
|
143
|
+
secondary?: true;
|
|
144
|
+
/** @see {@link AddressShowOptions.primary } */
|
|
145
|
+
primary?: true;
|
|
146
|
+
/** @see {@link AddressShowOptions.tentative } */
|
|
147
|
+
tentative?: true;
|
|
148
|
+
/** @see {@link AddressShowOptions.deprecated } */
|
|
149
|
+
deprecated?: true;
|
|
150
|
+
/** @see {@link AddressShowOptions.dadfailed } */
|
|
151
|
+
dadfailed?: true;
|
|
152
|
+
/** @see {@link AddressShowOptions.temporary } */
|
|
153
|
+
temporary?: true;
|
|
154
|
+
/** @see {@link AddressShowOptions.home } */
|
|
155
|
+
home?: true;
|
|
156
|
+
/** @see {@link AddressShowOptions.mngtmpaddr } */
|
|
157
|
+
mngtmpaddr?: true;
|
|
158
|
+
/** @see {@link AddressShowOptions.nodad } */
|
|
159
|
+
nodad?: true;
|
|
160
|
+
/** @see {@link AddressShowOptions.optimistic } */
|
|
161
|
+
optimistic?: true;
|
|
162
|
+
/** @see {@link AddressShowOptions.noprefixroute } */
|
|
163
|
+
noprefixroute?: true;
|
|
164
|
+
/** @see {@link AddressShowOptions.autojoin } */
|
|
165
|
+
autojoin?: true;
|
|
166
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show.interfaces.js","sourceRoot":"","sources":["../../../src/commands/address/show.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddressShowSchema = void 0;
|
|
4
|
+
const schemas_1 = require("../../common/constants/schemas");
|
|
5
|
+
const link_constants_1 = require("../link.constants");
|
|
6
|
+
const address_constants_1 = require("../address.constants");
|
|
7
|
+
exports.AddressShowSchema = {
|
|
8
|
+
$id: schemas_1.SchemaIds.AddressShow,
|
|
9
|
+
type: 'object',
|
|
10
|
+
required: [],
|
|
11
|
+
properties: {
|
|
12
|
+
dev: {
|
|
13
|
+
type: 'string',
|
|
14
|
+
minLength: 1,
|
|
15
|
+
maxLength: 15,
|
|
16
|
+
nullable: true
|
|
17
|
+
},
|
|
18
|
+
scope: {
|
|
19
|
+
type: ['string', 'integer'],
|
|
20
|
+
nullable: true,
|
|
21
|
+
oneOf: [
|
|
22
|
+
{
|
|
23
|
+
type: 'string',
|
|
24
|
+
enum: Object.values(address_constants_1.AddressScopes),
|
|
25
|
+
nullable: true
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
type: 'integer',
|
|
29
|
+
minimum: 0,
|
|
30
|
+
nullable: true
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
to: {
|
|
35
|
+
type: 'string',
|
|
36
|
+
format: 'ip-with-optional-mask',
|
|
37
|
+
nullable: true
|
|
38
|
+
},
|
|
39
|
+
permanent: {
|
|
40
|
+
type: 'boolean',
|
|
41
|
+
enum: [true],
|
|
42
|
+
nullable: true
|
|
43
|
+
},
|
|
44
|
+
'-permanent': {
|
|
45
|
+
type: 'boolean',
|
|
46
|
+
enum: [true],
|
|
47
|
+
nullable: true
|
|
48
|
+
},
|
|
49
|
+
dynamic: {
|
|
50
|
+
type: 'boolean',
|
|
51
|
+
enum: [true],
|
|
52
|
+
nullable: true
|
|
53
|
+
},
|
|
54
|
+
'-dynamic': {
|
|
55
|
+
type: 'boolean',
|
|
56
|
+
enum: [true],
|
|
57
|
+
nullable: true
|
|
58
|
+
},
|
|
59
|
+
secondary: {
|
|
60
|
+
type: 'boolean',
|
|
61
|
+
enum: [true],
|
|
62
|
+
nullable: true
|
|
63
|
+
},
|
|
64
|
+
'-secondary': {
|
|
65
|
+
type: 'boolean',
|
|
66
|
+
enum: [true],
|
|
67
|
+
nullable: true
|
|
68
|
+
},
|
|
69
|
+
primary: {
|
|
70
|
+
type: 'boolean',
|
|
71
|
+
enum: [true],
|
|
72
|
+
nullable: true
|
|
73
|
+
},
|
|
74
|
+
'-primary': {
|
|
75
|
+
type: 'boolean',
|
|
76
|
+
enum: [true],
|
|
77
|
+
nullable: true
|
|
78
|
+
},
|
|
79
|
+
tentative: {
|
|
80
|
+
type: 'boolean',
|
|
81
|
+
enum: [true],
|
|
82
|
+
nullable: true
|
|
83
|
+
},
|
|
84
|
+
'-tentative': {
|
|
85
|
+
type: 'boolean',
|
|
86
|
+
enum: [true],
|
|
87
|
+
nullable: true
|
|
88
|
+
},
|
|
89
|
+
deprecated: {
|
|
90
|
+
type: 'boolean',
|
|
91
|
+
enum: [true],
|
|
92
|
+
nullable: true
|
|
93
|
+
},
|
|
94
|
+
'-deprecated': {
|
|
95
|
+
type: 'boolean',
|
|
96
|
+
enum: [true],
|
|
97
|
+
nullable: true
|
|
98
|
+
},
|
|
99
|
+
dadfailed: {
|
|
100
|
+
type: 'boolean',
|
|
101
|
+
enum: [true],
|
|
102
|
+
nullable: true
|
|
103
|
+
},
|
|
104
|
+
'-dadfailed': {
|
|
105
|
+
type: 'boolean',
|
|
106
|
+
enum: [true],
|
|
107
|
+
nullable: true
|
|
108
|
+
},
|
|
109
|
+
temporary: {
|
|
110
|
+
type: 'boolean',
|
|
111
|
+
enum: [true],
|
|
112
|
+
nullable: true
|
|
113
|
+
},
|
|
114
|
+
'-temporary': {
|
|
115
|
+
type: 'boolean',
|
|
116
|
+
enum: [true],
|
|
117
|
+
nullable: true
|
|
118
|
+
},
|
|
119
|
+
home: {
|
|
120
|
+
type: 'boolean',
|
|
121
|
+
enum: [true],
|
|
122
|
+
nullable: true
|
|
123
|
+
},
|
|
124
|
+
mngtmpaddr: {
|
|
125
|
+
type: 'boolean',
|
|
126
|
+
enum: [true],
|
|
127
|
+
nullable: true
|
|
128
|
+
},
|
|
129
|
+
nodad: {
|
|
130
|
+
type: 'boolean',
|
|
131
|
+
enum: [true],
|
|
132
|
+
nullable: true
|
|
133
|
+
},
|
|
134
|
+
optimistic: {
|
|
135
|
+
type: 'boolean',
|
|
136
|
+
enum: [true],
|
|
137
|
+
nullable: true
|
|
138
|
+
},
|
|
139
|
+
noprefixroute: {
|
|
140
|
+
type: 'boolean',
|
|
141
|
+
enum: [true],
|
|
142
|
+
nullable: true
|
|
143
|
+
},
|
|
144
|
+
autojoin: {
|
|
145
|
+
type: 'boolean',
|
|
146
|
+
enum: [true],
|
|
147
|
+
nullable: true
|
|
148
|
+
},
|
|
149
|
+
label: {
|
|
150
|
+
type: 'string',
|
|
151
|
+
minLength: 1,
|
|
152
|
+
nullable: true
|
|
153
|
+
},
|
|
154
|
+
master: {
|
|
155
|
+
type: 'string',
|
|
156
|
+
minLength: 1,
|
|
157
|
+
nullable: true
|
|
158
|
+
},
|
|
159
|
+
type: {
|
|
160
|
+
type: 'string',
|
|
161
|
+
enum: Object.values(link_constants_1.LinkTypes),
|
|
162
|
+
nullable: true
|
|
163
|
+
},
|
|
164
|
+
vrf: {
|
|
165
|
+
type: 'string',
|
|
166
|
+
minLength: 1,
|
|
167
|
+
nullable: true
|
|
168
|
+
},
|
|
169
|
+
up: {
|
|
170
|
+
type: 'boolean',
|
|
171
|
+
enum: [true],
|
|
172
|
+
nullable: true
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
//# sourceMappingURL=show.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show.schema.js","sourceRoot":"","sources":["../../../src/commands/address/show.schema.ts"],"names":[],"mappings":";;;AAEA,4DAAkE;AAClE,sDAA8C;AAC9C,4DAAwD;AAG3C,QAAA,iBAAiB,GAAuC;IACnE,GAAG,EAAS,mBAAS,CAAC,WAAW;IACjC,IAAI,EAAQ,QAAQ;IACpB,QAAQ,EAAI,EAAE;IACd,UAAU,EAAE;QACV,GAAG,EAAY;YACb,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;YACZ,SAAS,EAAE,EAAE;YACb,QAAQ,EAAG,IAAI;SAChB;QACD,KAAK,EAAU;YACb,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,iCAAa,CAAoB;oBACzD,QAAQ,EAAE,IAAI;iBACf;gBACD;oBACE,IAAI,EAAM,SAAS;oBACnB,OAAO,EAAG,CAAC;oBACX,QAAQ,EAAE,IAAI;iBACf;aACF;SACF;QACD,EAAE,EAAa;YACb,IAAI,EAAM,QAAQ;YAClB,MAAM,EAAI,uBAAuB;YACjC,QAAQ,EAAE,IAAI;SACf;QACD,SAAS,EAAM;YACb,IAAI,EAAM,SAAS;YACnB,IAAI,EAAM,CAAC,IAAI,CAAC;YAChB,QAAQ,EAAE,IAAI;SACf;QACD,YAAY,EAAG;YACb,IAAI,EAAM,SAAS;YACnB,IAAI,EAAM,CAAC,IAAI,CAAC;YAChB,QAAQ,EAAE,IA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Y;YACb,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAG,IAAI;SAChB;QACD,EAAE,EAAa;YACb,IAAI,EAAM,SAAS;YACnB,IAAI,EAAM,CAAC,IAAI,CAAC;YAChB,QAAQ,EAAE,IAAI;SACf;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The scope of the area where this address is valid.
|
|
3
|
+
* The available scopes are listed in file `/etc/iproute2/rt_scopes`.
|
|
4
|
+
* Predefined scope values are:
|
|
5
|
+
*
|
|
6
|
+
* @category Constants
|
|
7
|
+
*/
|
|
8
|
+
export declare enum AddressScopes {
|
|
9
|
+
/** The address is globally valid. */
|
|
10
|
+
Global = "global",
|
|
11
|
+
/** (IPv6 only, deprecated) The address is site local, i.e. it is valid inside this site. */
|
|
12
|
+
Site = "site",
|
|
13
|
+
/** The address is link local, i.e. it is valid only on this device. */
|
|
14
|
+
Link = "link",
|
|
15
|
+
/** The address is valid only inside this host. */
|
|
16
|
+
Host = "host"
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Representing various network address families.
|
|
20
|
+
* @category Constants
|
|
21
|
+
*/
|
|
22
|
+
export declare enum AddressFamilies {
|
|
23
|
+
/** IPv4 protocol. */
|
|
24
|
+
Inet = "inet",
|
|
25
|
+
/** IPv6 protocol. */
|
|
26
|
+
Inet6 = "inet6",
|
|
27
|
+
/** Multi-Protocol Label Switching. */
|
|
28
|
+
Mpls = "mpls",
|
|
29
|
+
/** Bridging (MAC-level). */
|
|
30
|
+
Bridge = "bridge",
|
|
31
|
+
/** Link layer interface. */
|
|
32
|
+
Link = "link"
|
|
33
|
+
}
|