Skip to content

Commit

Permalink
Merge "Dont use link local flag in bgp-aas flow encode." into R3.0.3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Feb 24, 2017
2 parents 8acab1f + 99fbd41 commit 935d2a0
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/vnsw/agent/vrouter/ksync/flowtable_ksync.cc
Expand Up @@ -327,13 +327,15 @@ int FlowTableKSyncEntry::Encode(sandesh_op::type op, char *buf, int buf_len) {
flags |= VR_FLOW_FLAG_DPAT;
}
}
//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 935d2a0

Please sign in to comment.