diff options
author | Naoto Hanaue <hanaue.naoto@po.ntts.co.jp> | 2016-02-26 19:55:28 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-02-27 03:47:00 -0800 |
commit | a53d1945056b6c43c1de5dcaafc5ef92fcd33614 (patch) | |
tree | 318edb562c31ec11708fea1282cb8cded6ea870d /openswitch | |
parent | b334dd4185bc91afd405ba326a03c09cfe9a9623 (diff) |
ops: fix and integration the attribute name that indicates the route received from an external resource
Diffstat (limited to 'openswitch')
-rw-r--r-- | openswitch/openswitch.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openswitch/openswitch.go b/openswitch/openswitch.go index cdb1cb17..36d3c689 100644 --- a/openswitch/openswitch.go +++ b/openswitch/openswitch.go @@ -138,8 +138,8 @@ func (m *OpsManager) getBGPRouterUUID() (uint32, uuid.UUID, error) { func parseRouteToGobgp(route ovsdb.RowUpdate, nexthops map[string]ovsdb.Row) (*api.Path, bool, bool, error) { var nlri bgp.AddrPrefixInterface path := &api.Path{ - IsFromOps: true, - Pattrs: make([][]byte, 0), + IsFromExternal: true, + Pattrs: make([][]byte, 0), } isWithdraw := false isFromGobgp := false @@ -597,7 +597,7 @@ func (m *OpsManager) GobgpMonitor(ready *bool) { } d := res.Data.(*api.Destination) bPath := d.Paths[0] - if bPath.IsFromOps && !bPath.IsWithdraw { + if bPath.IsFromExternal && !bPath.IsWithdraw { continue } p, err := cmd.ApiStruct2Path(bPath) |