summaryrefslogtreecommitdiffhomepage
path: root/openswitch/openswitch.go
diff options
context:
space:
mode:
Diffstat (limited to 'openswitch/openswitch.go')
-rw-r--r--openswitch/openswitch.go6
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)