Skip to content

Commit

Permalink
ovn-nb: Add per-port IP addresses to routers.
Browse files Browse the repository at this point in the history
A router needs one IP address per port, not just one for the whole router.

Reported-by: Gal Sagie <[email protected]>
Reported-at: http://openvswitch.org/pipermail/dev/2015-July/057242.html
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
blp committed Jul 16, 2015
1 parent bb13fe5 commit a6c06d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
1 change: 0 additions & 1 deletion ovn/ovn-nb.ovsschema
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"refType": "weak"},
"min": 0,
"max": "unlimited"}},
"ip": {"type": "string"},
"default_gw": {"type": {"key": "string", "min": 0, "max": 1}},
"external_ids": {
"type": {"key": "string", "value": "string",
Expand Down
13 changes: 4 additions & 9 deletions ovn/ovn-nb.xml
Original file line number Diff line number Diff line change
Expand Up @@ -281,13 +281,6 @@
table="Logical_Router_Port"/> or it will automatically be deleted.
</column>

<column name="ip">
The logical router's own IP address. The logical router uses this
address for ICMP replies (e.g. network unreachable messages) and other
traffic that it originates and responds to traffic destined to this
address (e.g. ICMP echo requests).
</column>

<column name="default_gw">
IP address to use as default gateway, if any.
</column>
Expand Down Expand Up @@ -316,8 +309,10 @@
</p>

<column name="network">
The IP network and netmask of the network on the router port. Used for
routing.
The IP address of the router and the netmask. For example,
<code>192.168.0.1/24</code> indicates that the router's IP address is
192.168.0.1 and that packets destined to 192.168.0.<var>x</var> should be
routed to this port.
</column>

<column name="mac">
Expand Down

0 comments on commit a6c06d9

Please sign in to comment.