Skip to content

Commit

Permalink
ovn-ic: Route advertisement.
Browse files Browse the repository at this point in the history
Support automatical route advertisement and learning for OVN
interconnection.  Static routes and directly connected subnets
can be automatically advertised to avoid manual configuration
across AZs.  This feature is disabled by default, and can be
enabled at each AZ level by:

    ovn-nbctl set NB_Global . options:ic-route-ad=true \
                              options:ic-route-learn=true

More options are available. See ovn-nb(5).

Acked-by: Numan Siddique <[email protected]>
Signed-off-by: Han Zhou <[email protected]>
  • Loading branch information
hzhou8 committed Feb 14, 2020
1 parent da5507f commit 57b347c
Show file tree
Hide file tree
Showing 10 changed files with 981 additions and 11 deletions.
29 changes: 28 additions & 1 deletion Documentation/tutorials/ovn-interconnection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,36 @@ In ovn-east, add below route ::

$ ovn-nbctl lr-route-add lr1 10.0.2.0/24 169.254.100.2

In ovs-west, add below route ::
In ovn-west, add below route ::

$ ovn-nbctl lr-route-add lr2 10.0.1.0/24 169.254.100.1

Now the traffic should be able to go through between the workloads through
tunnels crossing gateway nodes of ovn-east and ovn-west.

Route Advertisement
-------------------

Alternatively, you can avoid the above manual static route configuration by
enabling route advertisement and learning on each OVN deployment ::

$ ovn-nbctl set NB_Global . options:ic-route-adv=true \
options:ic-route-learn=true

With this setting, the above routes will be automatically learned and
configured in Northbound DB in each deployment. For example, in ovn-east, you
will see the route ::

$ ovn-nbctl lr-route-list lr1
IPv4 Routes
10.0.2.0/24 169.254.100.2 dst-ip (learned)

In ovn-west you will see ::

$ ovn-nbctl lr-route-list lr2
IPv4 Routes
10.0.1.0/24 169.254.100.1 dst-ip (learned)

Static routes configured in the routers can be advertised and learned as well.
For more details of router advertisement and its configure options, please
see <code>ovn-nb</code>(5).
2 changes: 0 additions & 2 deletions TODO.rst
Original file line number Diff line number Diff line change
Expand Up @@ -149,5 +149,3 @@ OVN To-do List
* OVN Interconnection

* Packaging for RHEL, Debian, etc.

* Route advertisement between edge routers.
Loading

0 comments on commit 57b347c

Please sign in to comment.