Node/Route
The routes of the host
List the routes of the host
Reads each route of the main table: ip route on Linux, netstat on macOS. proto says where a route came from, such as dhcp, kernel or static.
Drop the routes osapi has of an interface
Removes the interface's routes file and applies what is left. An interface osapi has no routes of does not change.
Get the routes of an interface
Reads the routes of the main table that go out of the interface, as list does. An interface with no routes has none; one the host does not have is not found.
Add static routes to an interface
Writes a netplan file of the interface's routes, such as /etc/netplan/osapi-osapi0-routes.yaml for osapi0, under a netplan definition that is the interface's own, and applies it. A default route is refused: the interface behavior sets the gateway. An interface the host does not have is not found. An interface that a match defines, such as cloud-init's all for en*, is refused, because the routes would go on each interface the match takes, now and later. An interface osapi already has routes of does not change: update replaces them. It runs on the Debian family, and elsewhere, and in a container, reports skipped.
Change the routes osapi has of an interface
Writes the interface's routes file over the one osapi has, as create writes it, and applies it. An interface osapi has no routes of is not found: create adds them.