схема базы данных OVN_Northbound (OVN_Northbound database schema)
Logical_Router_Static_Route TABLE
Each record represents a static route.
When multiple routes match a packet, the longest-prefix match is
chosen. For a given prefix length, a dst-ip route is preferred
over a src-ip route.
Summary:
ip_prefix string
policy optional string, either dst-ip or
src-ip
nexthop string
output_port optional string
Common Columns:
external_ids map of string-string pairs
Details:
ip_prefix: string
IP prefix of this route (e.g. 192.168.100.0/24).
policy: optional string, either dst-ip or src-ip
If it is specified, this setting describes the policy used
to make routing decisions. This setting must be one of the
following strings:
• src-ip: This policy sends the packet to the nexthop
when the packet's source IP address matches
ip_prefix.
• dst-ip: This policy sends the packet to the nexthop
when the packet's destination IP address matches
ip_prefix.
If not specified, the default is dst-ip.
nexthop: string
Nexthop IP address for this route. Nexthop IP address
should be the IP address of a connected router port or the
IP address of a logical port.
output_port: optional string
The name of the Logical_Router_Port via which the packet
needs to be sent out. This is optional and when not
specified, OVN will automatically figure this out based on
the nexthop. When this is specified and there are multiple
IP addresses on the router port and none of them are in
the same subnet of nexthop, OVN chooses the first IP
address as the one via which the nexthop is reachable.
Common Columns:
external_ids: map of string-string pairs
See External IDs at the beginning of this document.