Skip to content

Commit

Permalink
Merge "Dont use link local flag in bgp-aas flow encode." into R3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Feb 21, 2017
2 parents 82a3e34 + e7f8716 commit 707b466
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/vnsw/agent/vrouter/ksync/flowtable_ksync.cc
Original file line number Diff line number Diff line change
Expand Up @@ -345,13 +345,14 @@ int FlowTableKSyncEntry::Encode(sandesh_op::type op, char *buf, int buf_len) {
}
}

//TODO Seperate flags for BgpRouterService??
if (nat_flow->is_flags_set(FlowEntry::LinkLocalBindLocalSrcPort) ||
nat_flow->is_flags_set(FlowEntry::BgpRouterService)) {
//Link local, flag determines relaxed policy
if (nat_flow->is_flags_set(FlowEntry::LinkLocalBindLocalSrcPort)) {
flags |= VR_FLOW_FLAG_LINK_LOCAL;
if (nat_flow->is_flags_set(FlowEntry::BgpRouterService)) {
flags |= VR_FLOW_BGP_SERVICE;
}
}

//Bgp service, flag determines relaxed policy
if (nat_flow->is_flags_set(FlowEntry::BgpRouterService)) {
flags |= VR_FLOW_BGP_SERVICE;
}

flags |= VR_FLOW_FLAG_VRFT;
Expand Down

0 comments on commit 707b466

Please sign in to comment.