There are certain rules to assign OSPF (and BGP) router-ids
automatically in case the user did not select the id manually.
When id is assigned automatically, OSPF will pick it from
zebra using zclient API (1st issue, according to OpenSwitch
architecture there must be no interaction between components
except interaction through OVSDB). OSPF will not write
router-id retrieved from zebra to OSPF_Router table (2nd
issue, CLI will print everyone except OSPF_Router:router_id
as OSPF neighbor in show ip ospf neighbor command.
Router-id should be obtained from OVSDB as BGP does it;
using OVSDB table VRF, column active_router_id. Router-id
should be written to OVSDB table OSPF_Router by OSPFD when
assigned automatically.
There are certain rules to assign OSPF (and BGP) router-ids automatically in case the user did not select the id manually. When id is assigned automatically, OSPF will pick it from zebra using zclient API (1st issue, according to OpenSwitch architecture there must be no interaction between components except interaction through OVSDB). OSPF will not write router-id retrieved from zebra to OSPF_Router table (2nd issue, CLI will print everyone except OSPF_Router:router_id as OSPF neighbor in show ip ospf neighbor command. Router-id should be obtained from OVSDB as BGP does it; using OVSDB table VRF, column active_router_id. Router-id should be written to OVSDB table OSPF_Router by OSPFD when assigned automatically.
Tags: fix, dev
Change-Id: I70fff570e788dbc7025870c757a3a4baaa2e9f0d Signed-off-by: Ilya Schepin ischepin@mera.ru