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,366 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RouteAddSchema = void 0;
|
|
4
|
+
const attribute_values_1 = require("../../common/constants/attribute-values");
|
|
5
|
+
const schemas_1 = require("../../common/constants/schemas");
|
|
6
|
+
const address_constants_1 = require("../address.constants");
|
|
7
|
+
const route_constants_1 = require("../route.constants");
|
|
8
|
+
const bpf_schema_1 = require("./encap-types/bpf.schema");
|
|
9
|
+
const ioam6_schema_1 = require("./encap-types/ioam6.schema");
|
|
10
|
+
const ip_schema_1 = require("./encap-types/ip.schema");
|
|
11
|
+
const mpls_schema_1 = require("./encap-types/mpls.schema");
|
|
12
|
+
const seg6_schema_1 = require("./encap-types/seg6.schema");
|
|
13
|
+
const seg6local_schema_1 = require("./encap-types/seg6local.schema");
|
|
14
|
+
const show_constants_1 = require("./show.constants");
|
|
15
|
+
exports.RouteAddSchema = {
|
|
16
|
+
$id: schemas_1.SchemaIds.RouteAdd,
|
|
17
|
+
type: 'object',
|
|
18
|
+
required: ['to'],
|
|
19
|
+
properties: {
|
|
20
|
+
type: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
enum: Object.values(show_constants_1.RouteTypes),
|
|
23
|
+
nullable: true,
|
|
24
|
+
keyless: true
|
|
25
|
+
},
|
|
26
|
+
to: {
|
|
27
|
+
type: 'string',
|
|
28
|
+
format: 'ip-with-optional-mask-and-all-and-default-values',
|
|
29
|
+
keyless: true
|
|
30
|
+
},
|
|
31
|
+
tos: {
|
|
32
|
+
type: 'integer',
|
|
33
|
+
nullable: true,
|
|
34
|
+
minimum: 0,
|
|
35
|
+
maximum: 255
|
|
36
|
+
},
|
|
37
|
+
dsfield: {
|
|
38
|
+
type: 'integer',
|
|
39
|
+
nullable: true,
|
|
40
|
+
minimum: 0,
|
|
41
|
+
maximum: 255
|
|
42
|
+
},
|
|
43
|
+
table: {
|
|
44
|
+
type: ['string', 'integer'],
|
|
45
|
+
nullable: true,
|
|
46
|
+
oneOf: [
|
|
47
|
+
{
|
|
48
|
+
type: 'string',
|
|
49
|
+
enum: Object.values(show_constants_1.RouteRoutingTables),
|
|
50
|
+
nullable: true
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
type: 'integer',
|
|
54
|
+
minimum: 0,
|
|
55
|
+
nullable: true
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
proto: {
|
|
60
|
+
type: ['string', 'integer'],
|
|
61
|
+
nullable: true,
|
|
62
|
+
oneOf: [
|
|
63
|
+
{
|
|
64
|
+
type: 'string',
|
|
65
|
+
enum: Object.values(show_constants_1.RoutingTableProtocols),
|
|
66
|
+
minLength: 1,
|
|
67
|
+
nullable: true
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
type: 'integer',
|
|
71
|
+
minimum: 0,
|
|
72
|
+
nullable: true
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
protocol: {
|
|
77
|
+
type: ['string', 'integer'],
|
|
78
|
+
nullable: true,
|
|
79
|
+
oneOf: [
|
|
80
|
+
{
|
|
81
|
+
type: 'string',
|
|
82
|
+
enum: Object.values(show_constants_1.RoutingTableProtocols),
|
|
83
|
+
minLength: 1,
|
|
84
|
+
nullable: true
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
type: 'integer',
|
|
88
|
+
minimum: 0,
|
|
89
|
+
nullable: true
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
scope: {
|
|
94
|
+
type: ['string', 'integer'],
|
|
95
|
+
nullable: true,
|
|
96
|
+
oneOf: [
|
|
97
|
+
{
|
|
98
|
+
type: 'string',
|
|
99
|
+
enum: Object.values(address_constants_1.AddressScopes),
|
|
100
|
+
nullable: true
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
type: 'integer',
|
|
104
|
+
minimum: 0,
|
|
105
|
+
nullable: true
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
metric: {
|
|
110
|
+
type: 'integer',
|
|
111
|
+
minimum: 0,
|
|
112
|
+
nullable: true
|
|
113
|
+
},
|
|
114
|
+
preference: {
|
|
115
|
+
type: 'integer',
|
|
116
|
+
minimum: 0,
|
|
117
|
+
nullable: true
|
|
118
|
+
},
|
|
119
|
+
'ttl-propagate': {
|
|
120
|
+
type: 'string',
|
|
121
|
+
enum: Object.values(attribute_values_1.EnableDisableAsStringToggle),
|
|
122
|
+
nullable: true
|
|
123
|
+
},
|
|
124
|
+
encap: {
|
|
125
|
+
type: 'object',
|
|
126
|
+
nullable: true,
|
|
127
|
+
properties: {
|
|
128
|
+
[route_constants_1.EncapTypes.Mpls]: mpls_schema_1.RouteMplsEncapArgsSchema,
|
|
129
|
+
[route_constants_1.EncapTypes.Ip]: ip_schema_1.RouteIpEncapArgsSchema,
|
|
130
|
+
[route_constants_1.EncapTypes.Bpf]: bpf_schema_1.RouteBpfEncapArgsSchema,
|
|
131
|
+
[route_constants_1.EncapTypes.Seg6]: seg6_schema_1.RouteSeg6EncapArgsSchema,
|
|
132
|
+
[route_constants_1.EncapTypes.Seg6local]: seg6local_schema_1.RouteSeg6LocalEncapArgsSchema,
|
|
133
|
+
[route_constants_1.EncapTypes.Ioam6]: ioam6_schema_1.RouteIoam6EncapArgsSchema
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
via: {
|
|
137
|
+
type: 'object',
|
|
138
|
+
required: ['address'],
|
|
139
|
+
nullable: true,
|
|
140
|
+
properties: {
|
|
141
|
+
family: {
|
|
142
|
+
type: 'string',
|
|
143
|
+
enum: Object.values(address_constants_1.AddressFamilies),
|
|
144
|
+
nullable: true
|
|
145
|
+
},
|
|
146
|
+
address: {
|
|
147
|
+
type: 'string',
|
|
148
|
+
format: 'ip-with-optional-mask',
|
|
149
|
+
keyless: true
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
dev: {
|
|
154
|
+
type: 'string',
|
|
155
|
+
minLength: 1,
|
|
156
|
+
nullable: true
|
|
157
|
+
},
|
|
158
|
+
weight: {
|
|
159
|
+
type: 'integer',
|
|
160
|
+
minimum: 1,
|
|
161
|
+
nullable: true
|
|
162
|
+
},
|
|
163
|
+
onlink: {
|
|
164
|
+
type: 'boolean',
|
|
165
|
+
enum: [true],
|
|
166
|
+
nullable: true
|
|
167
|
+
},
|
|
168
|
+
pervasive: {
|
|
169
|
+
type: 'boolean',
|
|
170
|
+
enum: [true],
|
|
171
|
+
nullable: true
|
|
172
|
+
},
|
|
173
|
+
nhid: {
|
|
174
|
+
type: 'integer',
|
|
175
|
+
minimum: 0,
|
|
176
|
+
nullable: true
|
|
177
|
+
},
|
|
178
|
+
mtu: {
|
|
179
|
+
type: 'integer',
|
|
180
|
+
minimum: 1,
|
|
181
|
+
nullable: true
|
|
182
|
+
},
|
|
183
|
+
advmss: {
|
|
184
|
+
type: 'integer',
|
|
185
|
+
minimum: 1,
|
|
186
|
+
nullable: true
|
|
187
|
+
},
|
|
188
|
+
as: {
|
|
189
|
+
type: 'object',
|
|
190
|
+
required: ['address'],
|
|
191
|
+
nullable: true,
|
|
192
|
+
properties: {
|
|
193
|
+
to: {
|
|
194
|
+
type: 'boolean',
|
|
195
|
+
enum: [true],
|
|
196
|
+
nullable: true
|
|
197
|
+
},
|
|
198
|
+
address: {
|
|
199
|
+
type: 'string',
|
|
200
|
+
format: 'ip'
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
rtt: {
|
|
205
|
+
type: ['string', 'integer'],
|
|
206
|
+
nullable: true,
|
|
207
|
+
oneOf: [
|
|
208
|
+
{
|
|
209
|
+
type: 'string',
|
|
210
|
+
format: 'time-with-unit',
|
|
211
|
+
nullable: true
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
type: 'integer',
|
|
215
|
+
minimum: 0,
|
|
216
|
+
nullable: true
|
|
217
|
+
}
|
|
218
|
+
]
|
|
219
|
+
},
|
|
220
|
+
rttvar: {
|
|
221
|
+
type: ['string', 'integer'],
|
|
222
|
+
nullable: true,
|
|
223
|
+
oneOf: [
|
|
224
|
+
{
|
|
225
|
+
type: 'string',
|
|
226
|
+
format: 'time-with-unit',
|
|
227
|
+
nullable: true
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
type: 'integer',
|
|
231
|
+
minimum: 0,
|
|
232
|
+
nullable: true
|
|
233
|
+
}
|
|
234
|
+
]
|
|
235
|
+
},
|
|
236
|
+
reordering: {
|
|
237
|
+
type: 'integer',
|
|
238
|
+
minimum: 0,
|
|
239
|
+
nullable: true
|
|
240
|
+
},
|
|
241
|
+
window: {
|
|
242
|
+
type: 'integer',
|
|
243
|
+
minimum: 0,
|
|
244
|
+
nullable: true
|
|
245
|
+
},
|
|
246
|
+
cwnd: {
|
|
247
|
+
type: 'integer',
|
|
248
|
+
minimum: 0,
|
|
249
|
+
nullable: true
|
|
250
|
+
},
|
|
251
|
+
ssthresh: {
|
|
252
|
+
type: 'integer',
|
|
253
|
+
minimum: 0,
|
|
254
|
+
nullable: true
|
|
255
|
+
},
|
|
256
|
+
realms: {
|
|
257
|
+
type: 'string',
|
|
258
|
+
minLength: 1,
|
|
259
|
+
nullable: true
|
|
260
|
+
},
|
|
261
|
+
rto_min: {
|
|
262
|
+
type: ['string', 'integer'],
|
|
263
|
+
nullable: true,
|
|
264
|
+
oneOf: [
|
|
265
|
+
{
|
|
266
|
+
type: 'string',
|
|
267
|
+
format: 'time-with-unit',
|
|
268
|
+
nullable: true
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
type: 'integer',
|
|
272
|
+
minimum: 0,
|
|
273
|
+
nullable: true
|
|
274
|
+
}
|
|
275
|
+
]
|
|
276
|
+
},
|
|
277
|
+
initcwnd: {
|
|
278
|
+
type: 'integer',
|
|
279
|
+
minimum: 0,
|
|
280
|
+
nullable: true
|
|
281
|
+
},
|
|
282
|
+
initrwnd: {
|
|
283
|
+
type: 'integer',
|
|
284
|
+
minimum: 0,
|
|
285
|
+
nullable: true
|
|
286
|
+
},
|
|
287
|
+
features: {
|
|
288
|
+
type: 'object',
|
|
289
|
+
required: ['ecn'],
|
|
290
|
+
nullable: true,
|
|
291
|
+
properties: {
|
|
292
|
+
ecn: {
|
|
293
|
+
type: 'boolean',
|
|
294
|
+
enum: [true]
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
quickack: {
|
|
299
|
+
type: 'boolean',
|
|
300
|
+
enum: [true],
|
|
301
|
+
nullable: true
|
|
302
|
+
},
|
|
303
|
+
congctl: {
|
|
304
|
+
type: 'string',
|
|
305
|
+
minLength: 1,
|
|
306
|
+
nullable: true
|
|
307
|
+
},
|
|
308
|
+
pref: {
|
|
309
|
+
type: 'string',
|
|
310
|
+
enum: Object.values(route_constants_1.RoutePreferences),
|
|
311
|
+
nullable: true
|
|
312
|
+
},
|
|
313
|
+
expires: {
|
|
314
|
+
type: 'integer',
|
|
315
|
+
minimum: 0,
|
|
316
|
+
nullable: true
|
|
317
|
+
},
|
|
318
|
+
fastopen_no_cookie: {
|
|
319
|
+
type: 'boolean',
|
|
320
|
+
nullable: true
|
|
321
|
+
},
|
|
322
|
+
nexthops: {
|
|
323
|
+
type: 'array',
|
|
324
|
+
nullable: true,
|
|
325
|
+
minItems: 1,
|
|
326
|
+
keyless: true,
|
|
327
|
+
items: {
|
|
328
|
+
type: 'object',
|
|
329
|
+
required: ['nexthop'],
|
|
330
|
+
properties: {
|
|
331
|
+
nexthop: {
|
|
332
|
+
type: 'boolean',
|
|
333
|
+
enum: [true]
|
|
334
|
+
},
|
|
335
|
+
via: {
|
|
336
|
+
type: 'object',
|
|
337
|
+
required: ['address'],
|
|
338
|
+
nullable: true,
|
|
339
|
+
properties: {
|
|
340
|
+
family: {
|
|
341
|
+
type: 'string',
|
|
342
|
+
enum: Object.values(address_constants_1.AddressFamilies),
|
|
343
|
+
nullable: true
|
|
344
|
+
},
|
|
345
|
+
address: {
|
|
346
|
+
type: 'string',
|
|
347
|
+
format: 'ip-with-optional-mask'
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
dev: {
|
|
352
|
+
type: 'string',
|
|
353
|
+
minLength: 1,
|
|
354
|
+
nullable: true
|
|
355
|
+
},
|
|
356
|
+
weight: {
|
|
357
|
+
type: 'integer',
|
|
358
|
+
minimum: 1,
|
|
359
|
+
nullable: true
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
};
|
|
366
|
+
//# sourceMappingURL=add.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add.schema.js","sourceRoot":"","sources":["../../../src/commands/route/add.schema.ts"],"names":[],"mappings":";;;AAEA,8EAAsF;AACtF,4DAA2D;AAC3D,4DAAsE;AACtE,wDAAkE;AAElE,yDAAmE;AACnE,6DAAuE;AACvE,uDAAiE;AACjE,2DAAqE;AACrE,2DAAqE;AACrE,qEAA+E;AAE/E,qDAI0B;AAQb,QAAA,cAAc,GAAoC;IAC7D,GAAG,EAAE,mBAAS,CAAC,QAAQ;IACvB,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,IAAI,CAAC;IAChB,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,2BAAU,CAAiB;YAC/C,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,IAAI;SACd;QACD,EAAE,EAAE;YACF,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,kDAAkD;YAC1D,OAAO,EAAE,IAAI;SACd;QACD,GAAG,EAAE;YACH,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC;YACV,OAAO,EAAE,GAAG;SACb;QACD,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,CAAC;YACV,OAAO,EAAE,GAAG;SACb;QACD,KAAK,EAAE;YACL,IAAI,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;YAC3B,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE;gBACL;oBACE,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,mCAAkB,CAAyB;oBAC/D,QAAQ,EAAE,I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EAAE,IAAI;qBACf;oBACD,MAAM,EAAE;wBACN,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,CAAC;wBACV,QAAQ,EAAE,IAAI;qBACf;iBACF;aACF;SACF;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Add route bpf encap arguments.
|
|
3
|
+
* @category Interfaces
|
|
4
|
+
*/
|
|
5
|
+
export interface AddRouteBpfEncapArgs {
|
|
6
|
+
/** BPF program to execute for incoming packets. */
|
|
7
|
+
in?: string;
|
|
8
|
+
/** BPF program to execute for outgoing packets. */
|
|
9
|
+
out?: string;
|
|
10
|
+
/** BPF program to execute for transmitted packets. */
|
|
11
|
+
xmit?: string;
|
|
12
|
+
/** Size of header BPF program will attach (xmit). */
|
|
13
|
+
headroom?: number;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bpf.interfaces.js","sourceRoot":"","sources":["../../../../src/commands/route/encap-types/bpf.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RouteBpfEncapArgsSchema = void 0;
|
|
4
|
+
exports.RouteBpfEncapArgsSchema = {
|
|
5
|
+
type: 'object',
|
|
6
|
+
nullable: true,
|
|
7
|
+
required: [],
|
|
8
|
+
properties: {
|
|
9
|
+
in: {
|
|
10
|
+
type: 'string',
|
|
11
|
+
minLength: 1,
|
|
12
|
+
nullable: true
|
|
13
|
+
},
|
|
14
|
+
out: {
|
|
15
|
+
type: 'string',
|
|
16
|
+
minLength: 1,
|
|
17
|
+
nullable: true
|
|
18
|
+
},
|
|
19
|
+
xmit: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
minLength: 1,
|
|
22
|
+
nullable: true
|
|
23
|
+
},
|
|
24
|
+
headroom: {
|
|
25
|
+
type: 'integer',
|
|
26
|
+
minimum: 1,
|
|
27
|
+
nullable: true
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=bpf.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bpf.schema.js","sourceRoot":"","sources":["../../../../src/commands/route/encap-types/bpf.schema.ts"],"names":[],"mappings":";;;AAIa,QAAA,uBAAuB,GAAyC;IAC3E,IAAI,EAAQ,QAAQ;IACpB,QAAQ,EAAI,IAAI;IAChB,QAAQ,EAAI,EAAE;IACd,UAAU,EAAE;QACV,EAAE,EAAQ;YACR,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAG,IAAI;SAChB;QACD,GAAG,EAAO;YACR,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAG,IAAI;SAChB;QACD,IAAI,EAAM;YACR,IAAI,EAAO,QAAQ;YACnB,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAG,IAAI;SAChB;QACD,QAAQ,EAAE;YACR,IAAI,EAAM,SAAS;YACnB,OAAO,EAAG,CAAC;YACX,QAAQ,EAAE,IAAI;SACf;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Add route ioam6 encap arguments.
|
|
3
|
+
* @category Interfaces
|
|
4
|
+
*/
|
|
5
|
+
export interface AddRouteIoam6EncapArgs {
|
|
6
|
+
/** XXX */
|
|
7
|
+
trace: true;
|
|
8
|
+
/** XXX */
|
|
9
|
+
prealloc: true;
|
|
10
|
+
/** List of IOAM data required in the trace, represented by a bitfield (24 bits). */
|
|
11
|
+
type: number;
|
|
12
|
+
/**
|
|
13
|
+
* Numerical value to represent an IOAM namespace.
|
|
14
|
+
* See `ip-ioam(8)`.
|
|
15
|
+
*/
|
|
16
|
+
ns: number;
|
|
17
|
+
/** Size, in octets, of the pre-allocated trace data block. */
|
|
18
|
+
size: number;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ioam6.interfaces.js","sourceRoot":"","sources":["../../../../src/commands/route/encap-types/ioam6.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RouteIoam6EncapArgsSchema = void 0;
|
|
4
|
+
exports.RouteIoam6EncapArgsSchema = {
|
|
5
|
+
type: 'object',
|
|
6
|
+
required: ['trace', 'prealloc', 'type', 'ns', 'size'],
|
|
7
|
+
properties: {
|
|
8
|
+
trace: {
|
|
9
|
+
type: 'boolean',
|
|
10
|
+
enum: [true]
|
|
11
|
+
},
|
|
12
|
+
prealloc: {
|
|
13
|
+
type: 'boolean',
|
|
14
|
+
enum: [true]
|
|
15
|
+
},
|
|
16
|
+
type: {
|
|
17
|
+
type: 'integer',
|
|
18
|
+
minimum: 0
|
|
19
|
+
},
|
|
20
|
+
ns: {
|
|
21
|
+
type: 'integer',
|
|
22
|
+
minimum: 1
|
|
23
|
+
},
|
|
24
|
+
size: {
|
|
25
|
+
type: 'integer',
|
|
26
|
+
minimum: 1
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=ioam6.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ioam6.schema.js","sourceRoot":"","sources":["../../../../src/commands/route/encap-types/ioam6.schema.ts"],"names":[],"mappings":";;;AAIa,QAAA,yBAAyB,GAA2C;IAC/E,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAE;IACvD,UAAU,EAAE;QACV,KAAK,EAAE;YACL,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,CAAE,IAAI,CAAE;SACf;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,CAAE,IAAI,CAAE;SACf;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,CAAC;SACX;QACD,EAAE,EAAE;YACF,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,CAAC;SACX;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,CAAC;SACX;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TtlSpecialValues } from '../../link.constants';
|
|
2
|
+
/**
|
|
3
|
+
* Add route ip encap arguments.
|
|
4
|
+
* @category Interfaces
|
|
5
|
+
*/
|
|
6
|
+
export interface AddRouteIpEncapArgs {
|
|
7
|
+
/** Tunel id. */
|
|
8
|
+
id: number;
|
|
9
|
+
/** Remote IP. */
|
|
10
|
+
dst: string;
|
|
11
|
+
/** XXX */
|
|
12
|
+
src?: string;
|
|
13
|
+
/** XXX */
|
|
14
|
+
tos?: number;
|
|
15
|
+
/** XXX */
|
|
16
|
+
ttl?: number | TtlSpecialValues;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ip.interfaces.js","sourceRoot":"","sources":["../../../../src/commands/route/encap-types/ip.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RouteIpEncapArgsSchema = void 0;
|
|
4
|
+
const link_constants_1 = require("../../link.constants");
|
|
5
|
+
exports.RouteIpEncapArgsSchema = {
|
|
6
|
+
type: 'object',
|
|
7
|
+
required: ['id', 'dst'],
|
|
8
|
+
nullable: true,
|
|
9
|
+
properties: {
|
|
10
|
+
id: {
|
|
11
|
+
type: 'integer',
|
|
12
|
+
minimum: 1
|
|
13
|
+
},
|
|
14
|
+
dst: {
|
|
15
|
+
type: 'string',
|
|
16
|
+
format: 'ip-with-optional-mask'
|
|
17
|
+
},
|
|
18
|
+
src: {
|
|
19
|
+
type: 'string',
|
|
20
|
+
format: 'ip-with-optional-mask',
|
|
21
|
+
nullable: true
|
|
22
|
+
},
|
|
23
|
+
tos: {
|
|
24
|
+
type: 'integer',
|
|
25
|
+
nullable: true,
|
|
26
|
+
minimum: 0,
|
|
27
|
+
maximum: 255
|
|
28
|
+
},
|
|
29
|
+
ttl: {
|
|
30
|
+
type: ['string', 'integer'],
|
|
31
|
+
nullable: true,
|
|
32
|
+
oneOf: [
|
|
33
|
+
{
|
|
34
|
+
type: 'string',
|
|
35
|
+
enum: Object.values(link_constants_1.TtlSpecialValues),
|
|
36
|
+
nullable: true
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
type: 'integer',
|
|
40
|
+
minimum: 0,
|
|
41
|
+
maximum: 255,
|
|
42
|
+
nullable: true
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=ip.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ip.schema.js","sourceRoot":"","sources":["../../../../src/commands/route/encap-types/ip.schema.ts"],"names":[],"mappings":";;;AAEA,yDAAwD;AAG3C,QAAA,sBAAsB,GAAwC;IACzE,IAAI,EAAQ,QAAQ;IACpB,QAAQ,EAAI,CAAE,IAAI,EAAE,KAAK,CAAE;IAC3B,QAAQ,EAAE,IAAI;IACd,UAAU,EAAE;QACV,EAAE,EAAG;YACH,IAAI,EAAK,SAAS;YAClB,OAAO,EAAE,CAAC;SACX;QACD,GAAG,EAAE;YACH,IAAI,EAAI,QAAQ;YAChB,MAAM,EAAE,uBAAuB;SAChC;QACD,GAAG,EAAE;YACH,IAAI,EAAM,QAAQ;YAClB,MAAM,EAAI,uBAAuB;YACjC,QAAQ,EAAE,IAAI;SACf;QACD,GAAG,EAAE;YACH,IAAI,EAAM,SAAS;YACnB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAG,CAAC;YACX,OAAO,EAAG,GAAG;SACd;QACD,GAAG,EAAE;YACH,IAAI,EAAM,CAAE,QAAQ,EAAE,SAAS,CAAE;YACjC,QAAQ,EAAE,IAAI;YACd,KAAK,EAAK;gBACR;oBACE,IAAI,EAAM,QAAQ;oBAClB,IAAI,EAAM,MAAM,CAAC,MAAM,CAAC,iCAAgB,CAAuB;oBAC/D,QAAQ,EAAE,IAAI;iBACf;gBACD;oBACE,IAAI,EAAM,SAAS;oBACnB,OAAO,EAAG,CAAC;oBACX,OAAO,EAAG,GAAG;oBACb,QAAQ,EAAE,IAAI;iBACf;aACF;SACF;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TtlSpecialValues } from '../../link.constants';
|
|
2
|
+
/**
|
|
3
|
+
* Add route mpls encap arguments.
|
|
4
|
+
* @category Interfaces
|
|
5
|
+
*/
|
|
6
|
+
export interface AddRouteMplsEncapArgs {
|
|
7
|
+
/** Mpls label stack with labels separated by /. */
|
|
8
|
+
label: true | string;
|
|
9
|
+
/** TTL to use for MPLS header or 0 to inherit from IP header. */
|
|
10
|
+
ttl?: number | TtlSpecialValues;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mpls.interfaces.js","sourceRoot":"","sources":["../../../../src/commands/route/encap-types/mpls.interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RouteMplsEncapArgsSchema = void 0;
|
|
4
|
+
const link_constants_1 = require("../../link.constants");
|
|
5
|
+
exports.RouteMplsEncapArgsSchema = {
|
|
6
|
+
type: 'object',
|
|
7
|
+
nullable: true,
|
|
8
|
+
required: ['label'],
|
|
9
|
+
properties: {
|
|
10
|
+
label: {
|
|
11
|
+
type: ['boolean', 'string'],
|
|
12
|
+
keyless: true,
|
|
13
|
+
oneOf: [
|
|
14
|
+
{
|
|
15
|
+
type: 'string',
|
|
16
|
+
format: 'slash-separated-numbers',
|
|
17
|
+
minLength: 1,
|
|
18
|
+
keyless: true
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
type: 'boolean',
|
|
22
|
+
enum: [true],
|
|
23
|
+
keyless: true
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
ttl: {
|
|
28
|
+
type: ['string', 'integer'],
|
|
29
|
+
nullable: true,
|
|
30
|
+
oneOf: [
|
|
31
|
+
{
|
|
32
|
+
type: 'string',
|
|
33
|
+
enum: Object.values(link_constants_1.TtlSpecialValues),
|
|
34
|
+
nullable: true
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
type: 'integer',
|
|
38
|
+
minimum: 0,
|
|
39
|
+
maximum: 255,
|
|
40
|
+
nullable: true
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=mpls.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mpls.schema.js","sourceRoot":"","sources":["../../../../src/commands/route/encap-types/mpls.schema.ts"],"names":[],"mappings":";;;AAEA,yDAAwD;AAG3C,QAAA,wBAAwB,GAA0C;IAC7E,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,UAAU,EAAE;QACV,KAAK,EAAE;YACL,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC;YAC3B,OAAO,EAAE,IAAI;YACb,KAAK,EAAE;gBACL;oBACE,IAAI,EAAE,QAAQ;oBACd,MAAM,EAAE,yBAAyB;oBACjC,SAAS,EAAE,CAAC;oBACZ,OAAO,EAAE,IAAI;iBACd;gBACD;oBACE,IAAI,EAAE,SAAS;oBACf,IAAI,EAAE,CAAC,IAAI,CAAC;oBACZ,OAAO,EAAE,IAAI;iBACd;aACF;SACF;QACD,GAAG,EAAE;YACH,IAAI,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;YAC3B,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE;gBACL;oBACE,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,iCAAgB,CAAuB;oBAC3D,QAAQ,EAAE,IAAI;iBACf;gBACD;oBACE,IAAI,EAAE,SAAS;oBACf,OAAO,EAAE,CAAC;oBACV,OAAO,EAAE,GAAG;oBACZ,QAAQ,EAAE,IAAI;iBACf;aACF;SACF;KACF;CACF,CAAC"}
|