Skip to content

ezgh compute route-tables routes replace

Replace a table's whole route set.

Updated View as Markdown
ezgh compute route-tables routes replace <table> --file <routes.json> [flags]

Replace a table’s routes with those in a JSON file: {“routes”: [{“destination”, “target”: {“type”, “id”}}…]}, or a table as get -o json prints it (local routes may be included as shown).

A get -o json document carries the table’s updatedAt: if the table changed since then (a route written by someone else, or a rename), nothing is sent and it exits 1; read it again and redo the edit. A file without updatedAt replaces whatever the table holds now. Either way the write is refused (412) if the routes change between this command’s read and its write.

Part of ezgh compute route-tables routes.

Flags

Flag Type Default Description
--file string the routes, as JSON (required)

This command also takes the global flags.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close