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,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RouteTypes = exports.RoutingTableProtocols = exports.RouteRoutingTables = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Route routing tables.
|
|
6
|
+
* @category Constants
|
|
7
|
+
*/
|
|
8
|
+
var RouteRoutingTables;
|
|
9
|
+
(function (RouteRoutingTables) {
|
|
10
|
+
/**
|
|
11
|
+
* The `local` table is a special routing table containing high priority control routes for local
|
|
12
|
+
* and broadcast addresses.
|
|
13
|
+
*/
|
|
14
|
+
RouteRoutingTables["Local"] = "local";
|
|
15
|
+
/** The `main` table is the normal routing table containing all non-policy routes. */
|
|
16
|
+
RouteRoutingTables["Main"] = "main";
|
|
17
|
+
/**
|
|
18
|
+
* The `default` table is empty.
|
|
19
|
+
* It is reserved for some post-processing if no previous default rules selected the packet.
|
|
20
|
+
*/
|
|
21
|
+
RouteRoutingTables["Default"] = "default";
|
|
22
|
+
RouteRoutingTables["All"] = "all";
|
|
23
|
+
RouteRoutingTables["Cache"] = "cache";
|
|
24
|
+
})(RouteRoutingTables || (exports.RouteRoutingTables = RouteRoutingTables = {}));
|
|
25
|
+
/**
|
|
26
|
+
* Routing table protocols.
|
|
27
|
+
* @category Constants
|
|
28
|
+
*/
|
|
29
|
+
var RoutingTableProtocols;
|
|
30
|
+
(function (RoutingTableProtocols) {
|
|
31
|
+
/** The route was installed by the kernel during autoconfiguration. */
|
|
32
|
+
RoutingTableProtocols["Kernel"] = "kernel";
|
|
33
|
+
/**
|
|
34
|
+
* The route was installed during the bootup sequence.
|
|
35
|
+
* If a routing daemon starts, it will purge all of them.
|
|
36
|
+
*/
|
|
37
|
+
RoutingTableProtocols["Boot"] = "boot";
|
|
38
|
+
/**
|
|
39
|
+
* The route was installed by the administrator to override dynamic routing.
|
|
40
|
+
* Routing daemon will respect them and, probably, even advertise them to its peers.
|
|
41
|
+
*/
|
|
42
|
+
RoutingTableProtocols["Static"] = "static";
|
|
43
|
+
/** The route was installed due to an ICMP redirect. */
|
|
44
|
+
RoutingTableProtocols["Redirect"] = "redirect";
|
|
45
|
+
/** The route was installed by Router Discovery protocol. */
|
|
46
|
+
RoutingTableProtocols["Ra"] = "ra";
|
|
47
|
+
})(RoutingTableProtocols || (exports.RoutingTableProtocols = RoutingTableProtocols = {}));
|
|
48
|
+
/**
|
|
49
|
+
* Route types.
|
|
50
|
+
* @category Constants
|
|
51
|
+
*/
|
|
52
|
+
var RouteTypes;
|
|
53
|
+
(function (RouteTypes) {
|
|
54
|
+
/** The route entry describes real paths to the destinations covered by the route prefix. */
|
|
55
|
+
RouteTypes["Unicast"] = "unicast";
|
|
56
|
+
/**
|
|
57
|
+
* Not implemented the destinations are anycast addresses assigned to this host.
|
|
58
|
+
* They are mainly equivalent to local with one difference: such addresses are invalid
|
|
59
|
+
* when used as the source address of any packet.
|
|
60
|
+
*/
|
|
61
|
+
RouteTypes["Anycast"] = "anycast";
|
|
62
|
+
/**
|
|
63
|
+
* The destinations are assigned to this host.
|
|
64
|
+
* The packets are looped back and delivered locally.
|
|
65
|
+
*/
|
|
66
|
+
RouteTypes["Local"] = "local";
|
|
67
|
+
/**
|
|
68
|
+
* The destinations are broadcast addresses.
|
|
69
|
+
* The packets are sent as link broadcasts.
|
|
70
|
+
*/
|
|
71
|
+
RouteTypes["Broadcast"] = "broadcast";
|
|
72
|
+
/**
|
|
73
|
+
* A special type used for multicast routing.
|
|
74
|
+
* It is not present in normal routing tables.
|
|
75
|
+
*/
|
|
76
|
+
RouteTypes["Multicast"] = "multicast";
|
|
77
|
+
/**
|
|
78
|
+
* A special control route used together with policy rules.
|
|
79
|
+
* If such a route is selected, lookup in this table is terminated pretending that no route was found.
|
|
80
|
+
* Without policy routing it is equivalent to the absence of the route in the routing table.
|
|
81
|
+
* The packets are dropped and the ICMP message net unreachable is generated.
|
|
82
|
+
* The local senders get an ENETUNREACH error.
|
|
83
|
+
*/
|
|
84
|
+
RouteTypes["Throw"] = "throw";
|
|
85
|
+
/**
|
|
86
|
+
* These destinations are unreachable.
|
|
87
|
+
* Packets are discarded and the ICMP message host unreachable is generated.
|
|
88
|
+
* The local senders get an EHOSTUNREACH error.
|
|
89
|
+
*/
|
|
90
|
+
RouteTypes["Unreachable"] = "unreachable";
|
|
91
|
+
/**
|
|
92
|
+
* These destinations are unreachable.
|
|
93
|
+
* Packets are discarded and the ICMP message communication administratively prohibited is generated.
|
|
94
|
+
* The local senders get an EACCES error.
|
|
95
|
+
*/
|
|
96
|
+
RouteTypes["Prohibit"] = "prohibit";
|
|
97
|
+
/**
|
|
98
|
+
* These destinations are unreachable.
|
|
99
|
+
* Packets are discarded silently.
|
|
100
|
+
* The local senders get an EINVAL error.
|
|
101
|
+
*/
|
|
102
|
+
RouteTypes["Blackhole"] = "blackhole";
|
|
103
|
+
/**
|
|
104
|
+
* A special NAT route.
|
|
105
|
+
* Destinations covered by the prefix are considered to be dummy (or external) addresses which require translation
|
|
106
|
+
* to real (or internal) ones before forwarding.
|
|
107
|
+
* The addresses to translate to are selected with the attribute via.
|
|
108
|
+
* Warning: Route NAT is no longer supported in Linux 2.6.
|
|
109
|
+
*/
|
|
110
|
+
RouteTypes["Nat"] = "nat";
|
|
111
|
+
})(RouteTypes || (exports.RouteTypes = RouteTypes = {}));
|
|
112
|
+
//# sourceMappingURL=show.constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show.constants.js","sourceRoot":"","sources":["../../../src/commands/route/show.constants.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,IAAY,kBAeX;AAfD,WAAY,kBAAkB;IAC5B;;;OAGG;IACH,qCAAiB,CAAA;IACjB,sFAAsF;IACtF,mCAAgB,CAAA;IAChB;;;OAGG;IACH,yCAAmB,CAAA;IACnB,iCAAe,CAAA;IACf,qCAAiB,CAAA;AACnB,CAAC,EAfW,kBAAkB,kCAAlB,kBAAkB,QAe7B;AAED;;;GAGG;AACH,IAAY,qBAiBX;AAjBD,WAAY,qBAAqB;IAC/B,sEAAsE;IACtE,0CAAmB,CAAA;IACnB;;;OAGG;IACH,sCAAiB,CAAA;IACjB;;;OAGG;IACH,0CAAmB,CAAA;IACnB,uDAAuD;IACvD,8CAAqB,CAAA;IACrB,4DAA4D;IAC5D,kCAAe,CAAA;AACjB,CAAC,EAjBW,qBAAqB,qCAArB,qBAAqB,QAiBhC;AAED;;;GAGG;AACH,IAAY,UA0DX;AA1DD,WAAY,UAAU;IACpB,4FAA4F;IAC5F,iCAAuB,CAAA;IACvB;;;;OAIG;IACH,iCAAuB,CAAA;IACvB;;;OAGG;IACH,6BAAqB,CAAA;IACrB;;;OAGG;IACH,qCAAyB,CAAA;IACzB;;;OAGG;IACH,qCAAyB,CAAA;IACzB;;;;;;OAMG;IACH,6BAAqB,CAAA;IACrB;;;;OAIG;IACH,yCAA2B,CAAA;IAC3B;;;;OAIG;IACH,mCAAwB,CAAA;IACxB;;;;OAIG;IACH,qCAAyB,CAAA;IACzB;;;;;;OAMG;IACH,yBAAmB,CAAA;AACrB,CAAC,EA1DW,UAAU,0BAAV,UAAU,QA0DrB"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { AddressScopes } from '../address.constants';
|
|
2
|
+
import { RouteRoutingTables, RoutingTableProtocols, RouteTypes } from './show.constants';
|
|
3
|
+
/**
|
|
4
|
+
* Route show options.
|
|
5
|
+
* @category Interfaces
|
|
6
|
+
*/
|
|
7
|
+
export interface RouteShowOptions {
|
|
8
|
+
/**
|
|
9
|
+
* Only select routes from the given range of destinations.
|
|
10
|
+
* SELECTOR consists of an optional modifier ({@link root}, {@link match} or {@link exact}) and a prefix.
|
|
11
|
+
*
|
|
12
|
+
* {@link root} PREFIX selects routes with prefixes not shorter than PREFIX.
|
|
13
|
+
* F.e. `root 0/0` selects the entire routing table.
|
|
14
|
+
*
|
|
15
|
+
* {@link match} PREFIX selects routes with prefixes not longer than PREFIX.
|
|
16
|
+
* F.e. `match 10.0/16` selects 10.0/16, 10/8 and 0/0, but it does not select 10.1/16 and 10.0.0/24.
|
|
17
|
+
*
|
|
18
|
+
* And {@link exact} PREFIX (or just PREFIX) selects routes with this exact prefix.
|
|
19
|
+
*
|
|
20
|
+
* If neither of these options are present, ip assumes `root 0/0` i.e. it lists the entire table.
|
|
21
|
+
*
|
|
22
|
+
* Special values: `all` and `default`.
|
|
23
|
+
*/
|
|
24
|
+
to?: string;
|
|
25
|
+
/** @see {@link to} */
|
|
26
|
+
root?: string;
|
|
27
|
+
/** @see {@link to} */
|
|
28
|
+
match?: string;
|
|
29
|
+
/** @see {@link to} */
|
|
30
|
+
exact?: string;
|
|
31
|
+
/** Only select routes with the given TOS. */
|
|
32
|
+
tos?: number;
|
|
33
|
+
dsfield?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Show the routes from this table(s).
|
|
36
|
+
* The default setting is to show table main.
|
|
37
|
+
* TABLEID may either be the ID of a real table or one of the special values {@link RouteRoutingTables} .
|
|
38
|
+
*/
|
|
39
|
+
table?: number | RouteRoutingTables;
|
|
40
|
+
/** Show the routes for the table associated with the vrf name. */
|
|
41
|
+
vrf?: string;
|
|
42
|
+
/**
|
|
43
|
+
* List cloned routes i.e. routes which were dynamically forked from other routes because some route
|
|
44
|
+
* attribute (f.e. MTU) was updated.
|
|
45
|
+
*
|
|
46
|
+
* Actually, it is equivalent to table cache.
|
|
47
|
+
*/
|
|
48
|
+
cloned?: true;
|
|
49
|
+
cached?: true;
|
|
50
|
+
/**
|
|
51
|
+
* The same syntax as for {@link to}, but it binds the source address range rather than destinations.
|
|
52
|
+
* Note that the `from` option only works with cloned routes.
|
|
53
|
+
*/
|
|
54
|
+
from?: string;
|
|
55
|
+
/** Only list routes of this protocol. */
|
|
56
|
+
protocol?: RoutingTableProtocols | number;
|
|
57
|
+
proto?: RoutingTableProtocols | number;
|
|
58
|
+
/** The type of this rule. */
|
|
59
|
+
type?: RouteTypes;
|
|
60
|
+
/**
|
|
61
|
+
* The scope of the area where this address is valid.
|
|
62
|
+
* The available scopes are listed in file `/etc/iproute2/rt_scopes`.
|
|
63
|
+
*/
|
|
64
|
+
scope?: AddressScopes | number;
|
|
65
|
+
/** The name of the device. */
|
|
66
|
+
dev?: string;
|
|
67
|
+
/** Only list routes going via the nexthop routers selected by PREFIX. */
|
|
68
|
+
via?: string;
|
|
69
|
+
/** Only list routes with preferred source addresses selected by PREFIX. */
|
|
70
|
+
src?: string;
|
|
71
|
+
/** Only list routes with this/these realms. */
|
|
72
|
+
realm?: number;
|
|
73
|
+
realms?: string;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Route information.
|
|
77
|
+
* TODO: Need help to build this undocumented & comprehensive interface.
|
|
78
|
+
*
|
|
79
|
+
* @category Interfaces
|
|
80
|
+
*/
|
|
81
|
+
export interface RouteInfo {
|
|
82
|
+
type: RouteTypes;
|
|
83
|
+
dst: RouteRoutingTables | string;
|
|
84
|
+
gateway: string;
|
|
85
|
+
dev: string;
|
|
86
|
+
protocol: string | number;
|
|
87
|
+
scope: AddressScopes;
|
|
88
|
+
prefsrc: string;
|
|
89
|
+
metric: number;
|
|
90
|
+
flags: string[];
|
|
91
|
+
table?: RouteRoutingTables | number;
|
|
92
|
+
uid?: number;
|
|
93
|
+
cache?: any[];
|
|
94
|
+
users?: number;
|
|
95
|
+
age?: number;
|
|
96
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show.interfaces.js","sourceRoot":"","sources":["../../../src/commands/route/show.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RouteShowSchema = void 0;
|
|
4
|
+
const schemas_1 = require("../../common/constants/schemas");
|
|
5
|
+
const address_constants_1 = require("../address.constants");
|
|
6
|
+
const show_constants_1 = require("./show.constants");
|
|
7
|
+
exports.RouteShowSchema = {
|
|
8
|
+
$id: schemas_1.SchemaIds.RouteShow,
|
|
9
|
+
type: 'object',
|
|
10
|
+
required: [],
|
|
11
|
+
properties: {
|
|
12
|
+
to: {
|
|
13
|
+
type: 'string',
|
|
14
|
+
format: 'ip-with-required-mask-and-all-and-default-values',
|
|
15
|
+
nullable: true
|
|
16
|
+
},
|
|
17
|
+
root: {
|
|
18
|
+
type: 'string',
|
|
19
|
+
format: 'ip-with-required-mask-and-all-and-default-values',
|
|
20
|
+
nullable: true
|
|
21
|
+
},
|
|
22
|
+
match: {
|
|
23
|
+
type: 'string',
|
|
24
|
+
format: 'ip-with-required-mask-and-all-and-default-values',
|
|
25
|
+
nullable: true
|
|
26
|
+
},
|
|
27
|
+
exact: {
|
|
28
|
+
type: 'string',
|
|
29
|
+
format: 'ip-with-required-mask-and-all-and-default-values',
|
|
30
|
+
nullable: true
|
|
31
|
+
},
|
|
32
|
+
tos: {
|
|
33
|
+
type: 'integer',
|
|
34
|
+
nullable: true,
|
|
35
|
+
minimum: 0,
|
|
36
|
+
maximum: 255
|
|
37
|
+
},
|
|
38
|
+
dsfield: {
|
|
39
|
+
type: 'integer',
|
|
40
|
+
nullable: true,
|
|
41
|
+
minimum: 0,
|
|
42
|
+
maximum: 255
|
|
43
|
+
},
|
|
44
|
+
table: {
|
|
45
|
+
type: ['string', 'integer'],
|
|
46
|
+
nullable: true,
|
|
47
|
+
oneOf: [
|
|
48
|
+
{
|
|
49
|
+
type: 'string',
|
|
50
|
+
enum: Object.values(show_constants_1.RouteRoutingTables),
|
|
51
|
+
nullable: true
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
type: 'integer',
|
|
55
|
+
minimum: 0,
|
|
56
|
+
nullable: true
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
vrf: {
|
|
61
|
+
type: 'string',
|
|
62
|
+
minLength: 1,
|
|
63
|
+
nullable: true
|
|
64
|
+
},
|
|
65
|
+
cloned: {
|
|
66
|
+
type: 'boolean',
|
|
67
|
+
enum: [true],
|
|
68
|
+
nullable: true
|
|
69
|
+
},
|
|
70
|
+
cached: {
|
|
71
|
+
type: 'boolean',
|
|
72
|
+
enum: [true],
|
|
73
|
+
nullable: true
|
|
74
|
+
},
|
|
75
|
+
from: {
|
|
76
|
+
type: 'string',
|
|
77
|
+
format: 'ip-with-required-mask-and-all-and-default-values',
|
|
78
|
+
nullable: true
|
|
79
|
+
},
|
|
80
|
+
protocol: {
|
|
81
|
+
type: ['string', 'integer'],
|
|
82
|
+
nullable: true,
|
|
83
|
+
oneOf: [
|
|
84
|
+
{
|
|
85
|
+
type: 'string',
|
|
86
|
+
enum: Object.values(show_constants_1.RoutingTableProtocols),
|
|
87
|
+
nullable: true
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
type: 'integer',
|
|
91
|
+
minimum: 0,
|
|
92
|
+
nullable: true
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
proto: {
|
|
97
|
+
type: ['string', 'integer'],
|
|
98
|
+
nullable: true,
|
|
99
|
+
oneOf: [
|
|
100
|
+
{
|
|
101
|
+
type: 'string',
|
|
102
|
+
enum: Object.values(show_constants_1.RoutingTableProtocols),
|
|
103
|
+
nullable: true
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
type: 'integer',
|
|
107
|
+
minimum: 0,
|
|
108
|
+
nullable: true
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
type: {
|
|
113
|
+
type: 'string',
|
|
114
|
+
enum: Object.values(show_constants_1.RouteTypes),
|
|
115
|
+
nullable: true
|
|
116
|
+
},
|
|
117
|
+
scope: {
|
|
118
|
+
type: ['string', 'integer'],
|
|
119
|
+
nullable: true,
|
|
120
|
+
oneOf: [
|
|
121
|
+
{
|
|
122
|
+
type: 'string',
|
|
123
|
+
enum: Object.values(address_constants_1.AddressScopes),
|
|
124
|
+
nullable: true
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
type: 'integer',
|
|
128
|
+
minimum: 0,
|
|
129
|
+
nullable: true
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
dev: {
|
|
134
|
+
type: 'string',
|
|
135
|
+
minLength: 1,
|
|
136
|
+
nullable: true
|
|
137
|
+
},
|
|
138
|
+
via: {
|
|
139
|
+
type: 'string',
|
|
140
|
+
format: 'ip-with-optional-family-prefix',
|
|
141
|
+
minLength: 1,
|
|
142
|
+
nullable: true
|
|
143
|
+
},
|
|
144
|
+
src: {
|
|
145
|
+
type: 'string',
|
|
146
|
+
format: 'ip',
|
|
147
|
+
nullable: true
|
|
148
|
+
},
|
|
149
|
+
realm: {
|
|
150
|
+
type: 'integer',
|
|
151
|
+
minimum: 0,
|
|
152
|
+
nullable: true
|
|
153
|
+
},
|
|
154
|
+
realms: {
|
|
155
|
+
type: 'string',
|
|
156
|
+
pattern: '^[0-9]+(/[0-9]+)?$',
|
|
157
|
+
nullable: true
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
//# sourceMappingURL=show.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show.schema.js","sourceRoot":"","sources":["../../../src/commands/route/show.schema.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Route preference values.
|
|
3
|
+
* @category Constants
|
|
4
|
+
*/
|
|
5
|
+
export declare enum RoutePreferences {
|
|
6
|
+
/** The route has the lowest priority. */
|
|
7
|
+
Low = "low",
|
|
8
|
+
/** The route has the default priority. */
|
|
9
|
+
Medium = "medium",
|
|
10
|
+
/** The route has the highest priority. */
|
|
11
|
+
High = "high"
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Encap-seg6 local actions.
|
|
15
|
+
* @category Constants
|
|
16
|
+
*/
|
|
17
|
+
export declare enum EncapSeg6LocalActions {
|
|
18
|
+
/**
|
|
19
|
+
* Regular SRv6 processing as intermediate segment endpoint.
|
|
20
|
+
*
|
|
21
|
+
* This action only accepts packets with a non-zero Segments Left value.
|
|
22
|
+
*
|
|
23
|
+
* Other matching packets are dropped.
|
|
24
|
+
*/
|
|
25
|
+
End = "End",
|
|
26
|
+
/**
|
|
27
|
+
* Regular SRv6 processing as intermediate segment endpoint.
|
|
28
|
+
*
|
|
29
|
+
* Additionally, forward processed packets to given next-hop.
|
|
30
|
+
*
|
|
31
|
+
* This action only accepts packets with a non-zero Segments Left value.
|
|
32
|
+
*
|
|
33
|
+
* Other matching packets are dropped.
|
|
34
|
+
*/
|
|
35
|
+
EndX = "End.X",
|
|
36
|
+
/**
|
|
37
|
+
* Decapsulate inner IPv6 packet and forward it to the specified next-hop.
|
|
38
|
+
*
|
|
39
|
+
* If the argument is set to `::`, then the next-hop is selected according to the local selection rules.
|
|
40
|
+
*
|
|
41
|
+
* This action only accepts packets with either a zero Segments Left value or no SRH at all, and an inner IPv6 packet.
|
|
42
|
+
*
|
|
43
|
+
* Other matching packets are dropped.
|
|
44
|
+
*/
|
|
45
|
+
EndDX6 = "End.DX6",
|
|
46
|
+
/**
|
|
47
|
+
* Decapsulate the inner IPv6 packet and forward it according to the specified lookup table.
|
|
48
|
+
*
|
|
49
|
+
* TABLEID is either a number or a string from the file `/etc/iproute2/rt_tables`.
|
|
50
|
+
*
|
|
51
|
+
* If `vrftable` is used, the argument must be a VRF device associated with the table id.
|
|
52
|
+
*
|
|
53
|
+
* Moreover, the VRF table associated with the table id must be configured with the VRF strict mode
|
|
54
|
+
* turned on (`net.vrf.strict_mode=1`).
|
|
55
|
+
*
|
|
56
|
+
* This action only accepts packets with either a zero Segments Left value or no SRH at all, and an inner IPv6 packet.
|
|
57
|
+
*
|
|
58
|
+
* Other matching packets are dropped.
|
|
59
|
+
*/
|
|
60
|
+
EndDT6 = "End.DT6",
|
|
61
|
+
/**
|
|
62
|
+
* Decapsulate the inner IPv4 packet and forward it according to the specified lookup table.
|
|
63
|
+
*
|
|
64
|
+
* TABLEID is either a number or a string from the file `/etc/iproute2/rt_tables`.
|
|
65
|
+
*
|
|
66
|
+
* The argument must be a VRF device associated with the table id.
|
|
67
|
+
*
|
|
68
|
+
* Moreover, the VRF table associated with the table id must be configured with the VRF strict mode
|
|
69
|
+
* turned on (`net.vrf.strict_mode=1`).
|
|
70
|
+
*
|
|
71
|
+
* This action only accepts packets with either a zero Segments Left value or no SRH at all, and an inner IPv4 packet.
|
|
72
|
+
*
|
|
73
|
+
* Other matching packets are dropped.
|
|
74
|
+
*/
|
|
75
|
+
EndDT4 = "End.DT4",
|
|
76
|
+
/**
|
|
77
|
+
* Decapsulate the inner IPv4 or IPv6 packet and forward it according to the specified lookup table.
|
|
78
|
+
*
|
|
79
|
+
* TABLEID is either a number or a string from the file `/etc/iproute2/rt_tables`.
|
|
80
|
+
*
|
|
81
|
+
* The argument must be a VRF device associated with the table id.
|
|
82
|
+
*
|
|
83
|
+
* Moreover, the VRF table associated with the table id must be configured with the VRF strict mode turned on
|
|
84
|
+
* (`net.vrf.strict_mode=1`). This action only accepts packets with either a zero Segments Left value or no SRH
|
|
85
|
+
* at all, and an inner IPv4 or IPv6 packet.
|
|
86
|
+
*
|
|
87
|
+
* Other matching packets are dropped.
|
|
88
|
+
*/
|
|
89
|
+
EndDT46 = "End.DT46",
|
|
90
|
+
/**
|
|
91
|
+
* Insert the specified SRH immediately after the IPv6 header, update the DA with the first segment
|
|
92
|
+
* of the newly inserted SRH, then forward the resulting packet.
|
|
93
|
+
*
|
|
94
|
+
* The original SRH is not modified.
|
|
95
|
+
*
|
|
96
|
+
* This action only accepts packets with a non-zero Segments Left value.
|
|
97
|
+
*
|
|
98
|
+
* Other matching packets are dropped.
|
|
99
|
+
*/
|
|
100
|
+
EndB6 = "End.B6",
|
|
101
|
+
/**
|
|
102
|
+
* Regular SRv6 processing as intermediate segment endpoint.
|
|
103
|
+
*
|
|
104
|
+
* Additionally, encapsulate the matching packet within an outer IPv6 header followed by the specified SRH.
|
|
105
|
+
*
|
|
106
|
+
* The destination address of the outer IPv6 header is set to the first segment of the new SRH.
|
|
107
|
+
*
|
|
108
|
+
* The source address is set as described in `ip-sr(8)`.
|
|
109
|
+
*/
|
|
110
|
+
EndB6Encaps = "End.B6.Encaps"
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Tunnel encapsulation types.
|
|
114
|
+
* @category Constants
|
|
115
|
+
*/
|
|
116
|
+
export declare enum EncapTypes {
|
|
117
|
+
/** Encapsulation type MPLS. */
|
|
118
|
+
Mpls = "mpls",
|
|
119
|
+
/** IP encapsulation (Geneve, GRE, VXLAN, ...). */
|
|
120
|
+
Ip = "ip",
|
|
121
|
+
/** Execution of BPF program. */
|
|
122
|
+
Bpf = "bpf",
|
|
123
|
+
/** Encapsulation type IPv6 Segment Routing. */
|
|
124
|
+
Seg6 = "seg6",
|
|
125
|
+
/** Local SRv6 segment processing. */
|
|
126
|
+
Seg6local = "seg6local",
|
|
127
|
+
/** Encapsulation type IPv6 IOAM. */
|
|
128
|
+
Ioam6 = "ioam6"
|
|
129
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EncapTypes = exports.EncapSeg6LocalActions = exports.RoutePreferences = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Route preference values.
|
|
6
|
+
* @category Constants
|
|
7
|
+
*/
|
|
8
|
+
var RoutePreferences;
|
|
9
|
+
(function (RoutePreferences) {
|
|
10
|
+
/** The route has the lowest priority. */
|
|
11
|
+
RoutePreferences["Low"] = "low";
|
|
12
|
+
/** The route has the default priority. */
|
|
13
|
+
RoutePreferences["Medium"] = "medium";
|
|
14
|
+
/** The route has the highest priority. */
|
|
15
|
+
RoutePreferences["High"] = "high";
|
|
16
|
+
})(RoutePreferences || (exports.RoutePreferences = RoutePreferences = {}));
|
|
17
|
+
/**
|
|
18
|
+
* Encap-seg6 local actions.
|
|
19
|
+
* @category Constants
|
|
20
|
+
*/
|
|
21
|
+
var EncapSeg6LocalActions;
|
|
22
|
+
(function (EncapSeg6LocalActions) {
|
|
23
|
+
/**
|
|
24
|
+
* Regular SRv6 processing as intermediate segment endpoint.
|
|
25
|
+
*
|
|
26
|
+
* This action only accepts packets with a non-zero Segments Left value.
|
|
27
|
+
*
|
|
28
|
+
* Other matching packets are dropped.
|
|
29
|
+
*/
|
|
30
|
+
EncapSeg6LocalActions["End"] = "End";
|
|
31
|
+
/**
|
|
32
|
+
* Regular SRv6 processing as intermediate segment endpoint.
|
|
33
|
+
*
|
|
34
|
+
* Additionally, forward processed packets to given next-hop.
|
|
35
|
+
*
|
|
36
|
+
* This action only accepts packets with a non-zero Segments Left value.
|
|
37
|
+
*
|
|
38
|
+
* Other matching packets are dropped.
|
|
39
|
+
*/
|
|
40
|
+
EncapSeg6LocalActions["EndX"] = "End.X";
|
|
41
|
+
/**
|
|
42
|
+
* Decapsulate inner IPv6 packet and forward it to the specified next-hop.
|
|
43
|
+
*
|
|
44
|
+
* If the argument is set to `::`, then the next-hop is selected according to the local selection rules.
|
|
45
|
+
*
|
|
46
|
+
* This action only accepts packets with either a zero Segments Left value or no SRH at all, and an inner IPv6 packet.
|
|
47
|
+
*
|
|
48
|
+
* Other matching packets are dropped.
|
|
49
|
+
*/
|
|
50
|
+
EncapSeg6LocalActions["EndDX6"] = "End.DX6";
|
|
51
|
+
/**
|
|
52
|
+
* Decapsulate the inner IPv6 packet and forward it according to the specified lookup table.
|
|
53
|
+
*
|
|
54
|
+
* TABLEID is either a number or a string from the file `/etc/iproute2/rt_tables`.
|
|
55
|
+
*
|
|
56
|
+
* If `vrftable` is used, the argument must be a VRF device associated with the table id.
|
|
57
|
+
*
|
|
58
|
+
* Moreover, the VRF table associated with the table id must be configured with the VRF strict mode
|
|
59
|
+
* turned on (`net.vrf.strict_mode=1`).
|
|
60
|
+
*
|
|
61
|
+
* This action only accepts packets with either a zero Segments Left value or no SRH at all, and an inner IPv6 packet.
|
|
62
|
+
*
|
|
63
|
+
* Other matching packets are dropped.
|
|
64
|
+
*/
|
|
65
|
+
EncapSeg6LocalActions["EndDT6"] = "End.DT6";
|
|
66
|
+
/**
|
|
67
|
+
* Decapsulate the inner IPv4 packet and forward it according to the specified lookup table.
|
|
68
|
+
*
|
|
69
|
+
* TABLEID is either a number or a string from the file `/etc/iproute2/rt_tables`.
|
|
70
|
+
*
|
|
71
|
+
* The argument must be a VRF device associated with the table id.
|
|
72
|
+
*
|
|
73
|
+
* Moreover, the VRF table associated with the table id must be configured with the VRF strict mode
|
|
74
|
+
* turned on (`net.vrf.strict_mode=1`).
|
|
75
|
+
*
|
|
76
|
+
* This action only accepts packets with either a zero Segments Left value or no SRH at all, and an inner IPv4 packet.
|
|
77
|
+
*
|
|
78
|
+
* Other matching packets are dropped.
|
|
79
|
+
*/
|
|
80
|
+
EncapSeg6LocalActions["EndDT4"] = "End.DT4";
|
|
81
|
+
/**
|
|
82
|
+
* Decapsulate the inner IPv4 or IPv6 packet and forward it according to the specified lookup table.
|
|
83
|
+
*
|
|
84
|
+
* TABLEID is either a number or a string from the file `/etc/iproute2/rt_tables`.
|
|
85
|
+
*
|
|
86
|
+
* The argument must be a VRF device associated with the table id.
|
|
87
|
+
*
|
|
88
|
+
* Moreover, the VRF table associated with the table id must be configured with the VRF strict mode turned on
|
|
89
|
+
* (`net.vrf.strict_mode=1`). This action only accepts packets with either a zero Segments Left value or no SRH
|
|
90
|
+
* at all, and an inner IPv4 or IPv6 packet.
|
|
91
|
+
*
|
|
92
|
+
* Other matching packets are dropped.
|
|
93
|
+
*/
|
|
94
|
+
EncapSeg6LocalActions["EndDT46"] = "End.DT46";
|
|
95
|
+
/**
|
|
96
|
+
* Insert the specified SRH immediately after the IPv6 header, update the DA with the first segment
|
|
97
|
+
* of the newly inserted SRH, then forward the resulting packet.
|
|
98
|
+
*
|
|
99
|
+
* The original SRH is not modified.
|
|
100
|
+
*
|
|
101
|
+
* This action only accepts packets with a non-zero Segments Left value.
|
|
102
|
+
*
|
|
103
|
+
* Other matching packets are dropped.
|
|
104
|
+
*/
|
|
105
|
+
EncapSeg6LocalActions["EndB6"] = "End.B6";
|
|
106
|
+
/**
|
|
107
|
+
* Regular SRv6 processing as intermediate segment endpoint.
|
|
108
|
+
*
|
|
109
|
+
* Additionally, encapsulate the matching packet within an outer IPv6 header followed by the specified SRH.
|
|
110
|
+
*
|
|
111
|
+
* The destination address of the outer IPv6 header is set to the first segment of the new SRH.
|
|
112
|
+
*
|
|
113
|
+
* The source address is set as described in `ip-sr(8)`.
|
|
114
|
+
*/
|
|
115
|
+
EncapSeg6LocalActions["EndB6Encaps"] = "End.B6.Encaps";
|
|
116
|
+
})(EncapSeg6LocalActions || (exports.EncapSeg6LocalActions = EncapSeg6LocalActions = {}));
|
|
117
|
+
/**
|
|
118
|
+
* Tunnel encapsulation types.
|
|
119
|
+
* @category Constants
|
|
120
|
+
*/
|
|
121
|
+
var EncapTypes;
|
|
122
|
+
(function (EncapTypes) {
|
|
123
|
+
/** Encapsulation type MPLS. */
|
|
124
|
+
EncapTypes["Mpls"] = "mpls";
|
|
125
|
+
/** IP encapsulation (Geneve, GRE, VXLAN, ...). */
|
|
126
|
+
EncapTypes["Ip"] = "ip";
|
|
127
|
+
/** Execution of BPF program. */
|
|
128
|
+
EncapTypes["Bpf"] = "bpf";
|
|
129
|
+
/** Encapsulation type IPv6 Segment Routing. */
|
|
130
|
+
EncapTypes["Seg6"] = "seg6";
|
|
131
|
+
/** Local SRv6 segment processing. */
|
|
132
|
+
EncapTypes["Seg6local"] = "seg6local";
|
|
133
|
+
/** Encapsulation type IPv6 IOAM. */
|
|
134
|
+
EncapTypes["Ioam6"] = "ioam6";
|
|
135
|
+
})(EncapTypes || (exports.EncapTypes = EncapTypes = {}));
|
|
136
|
+
//# sourceMappingURL=route.constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"route.constants.js","sourceRoot":"","sources":["../../src/commands/route.constants.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,IAAY,gBAOX;AAPD,WAAY,gBAAgB;IAC1B,yCAAyC;IACzC,+BAAc,CAAA;IACd,0CAA0C;IAC1C,qCAAiB,CAAA;IACjB,0CAA0C;IAC1C,iCAAe,CAAA;AACjB,CAAC,EAPW,gBAAgB,gCAAhB,gBAAgB,QAO3B;AAED;;;GAGG;AACH,IAAY,qBA8FX;AA9FD,WAAY,qBAAqB;IAC/B;;;;;;OAMG;IACH,oCAAmB,CAAA;IACnB;;;;;;;;OAQG;IACH,uCAAqB,CAAA;IACrB;;;;;;;;OAQG;IACH,2CAAuB,CAAA;IACvB;;;;;;;;;;;;;OAaG;IACH,2CAAuB,CAAA;IACvB;;;;;;;;;;;;;OAaG;IACH,2CAAuB,CAAA;IACvB;;;;;;;;;;;;OAYG;IACH,6CAAwB,CAAA;IACxB;;;;;;;;;OASG;IACH,yCAAsB,CAAA;IACtB;;;;;;;;OAQG;IACH,sDAA6B,CAAA;AAC/B,CAAC,EA9FW,qBAAqB,qCAArB,qBAAqB,QA8FhC;AAED;;;GAGG;AACH,IAAY,UAaX;AAbD,WAAY,UAAU;IACpB,+BAA+B;IAC/B,2BAAkB,CAAA;IAClB,kDAAkD;IAClD,uBAAgB,CAAA;IAChB,gCAAgC;IAChC,yBAAiB,CAAA;IACjB,+CAA+C;IAC/C,2BAAkB,CAAA;IAClB,qCAAqC;IACrC,qCAAuB,CAAA;IACvB,oCAAoC;IACpC,6BAAmB,CAAA;AACrB,CAAC,EAbW,UAAU,0BAAV,UAAU,QAarB"}
|