утилита управления базами данных Open Virtual Network на севере (Open Virtual Network northbound db management utility)
LOGICAL ROUTER PORT COMMANDS
[--may-exist] lrp-add router port mac network... [peer=peer]
Creates on router a new logical router port named port
with Ethernet address mac and one or more IP
address/netmask for each network.
The optional argument peer identifies a logical router
port that connects to this one. The following example adds
a router port with an IPv4 and IPv6 address with peer lr1:
lrp-add lr0 lrp0 00:11:22:33:44:55 192.168.0.1/24
2001:db8::1/64 peer=lr1
It is an error if a logical router port named port already
exists, unless --may-exist is specified. Regardless of
--may-exist, it is an error if the existing router port is
in some logical router other than router.
[--if-exists] lrp-del port
Deletes port. It is an error if port does not exist,
unless --if-exists is specified.
lrp-list router
Lists all the logical router ports within router on
standard output, one per line.
lrp-set-enabled port state
Set the administrative state of port, either enabled or
disabled. When a port is disabled, no traffic is allowed
into or out of the port.
lrp-get-enabled port
Prints the administrative state of port, either enabled or
disabled.
lrp-set-gateway-chassis port chassis [priority]
Set gateway chassis for port. chassis is the name of the
chassis. This creates a gateway chassis entry in
Gateway_Chassis table. It won't check if chassis really
exists in OVN_Southbound database. Priority will be set to
0 if priority is not provided by user. priority must be
between 0 and 32767, inclusive.
lrp-del-gateway-chassis port chassis
Deletes gateway chassis from port. It is an error if
gateway chassis with chassis for port does not exist.
lrp-get-gateway-chassis port
Lists all the gateway chassis with priority within port on
standard output, one per line, ordered based on priority.