Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set remote vtep the netdev down before delete. #2075

Merged
merged 1 commit into from
Apr 26, 2022

Conversation

iris00522
Copy link
Contributor

What I did
set vtep-xxx the netdev down before delete vtep-xxx .
Why I did it
the vxlan netdev will be only delete only when remove vxlan tunnel map,
but the FRR doesn't remove IMET route entirely after receiving the delete event.
Therefore, add to set netdev down before delete the netdev to trigger FRR to remove related IMET route.

How I verified it
using t0 topology config
and flow the cmmand

redis-cli -n 4 -c DEL "VLAN_MEMBER|Vlan1000|Ethernet4"
sudo config interface ip add Ethernet4 10.0.0.64/31
vtysh
configure
ip route 100.0.0.65/31 10.0.0.65
exit
exit

sudo config vxlan add vtep 10.1.0.32
sudo config vxlan evpn_nvo add evpnnvo1 vtep
sudo config vxlan map add vtep 1000 10000

vtysh
configure
router bgp 65100
neighbor 10.0.0.65 remote-as 65200
address-family l2vpn evpn
neighbor 10.0.0.65 activate
advertise-all-vni
exit
exit
exit
exit

neighbor:
setting bgp and type 3 and typ2 packet

Details if related

@iris00522 iris00522 requested a review from prsunny as a code owner December 9, 2021 08:49
@prsunny
Copy link
Collaborator

prsunny commented Dec 9, 2021

@srj102 , @dgsudharsan for review

@@ -78,6 +78,16 @@ static int cmdUpVxlan(const swss::VxlanMgr::VxlanInfo & info, std::string & res)
return swss::exec(cmd.str(), res);
}

static int cmdDownVxlan(const swss::VxlanMgr::VxlanInfo & info, std::string & res)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comes in VNET flow and not in regular EVPN flow. Is it needed?

@@ -130,6 +140,16 @@ static int cmdUpVxlanIf(const swss::VxlanMgr::VxlanInfo & info, std::string & re
return swss::exec(cmd.str(), res);
}

static int cmdDownVxlanIf(const swss::VxlanMgr::VxlanInfo & info, std::string & res)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above. These APIs are called only for VNET table. Are these changes needed?

@dgsudharsan
Copy link
Collaborator

There are some APIs which are in VNET flow that are changed. These may not be related to EVPN flow the issue is reported. Should we change? @prsunny
@srj102 Can you also please review?

@prsunny
Copy link
Collaborator

prsunny commented Jan 27, 2022

There are some APIs which are in VNET flow that are changed. These may not be related to EVPN flow the issue is reported. Should we change? @prsunny @srj102 Can you also please review?

Agree with @dgsudharsan , this doesn't fall into the EVPN flow. Can you please check what's intended?

dgsudharsan
dgsudharsan previously approved these changes Feb 28, 2022
@prsunny
Copy link
Collaborator

prsunny commented Feb 28, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prsunny
Copy link
Collaborator

prsunny commented Mar 22, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dgsudharsan
Copy link
Collaborator

@iris00522 Can you please sync your changes to latest master?

@iris00522
Copy link
Contributor Author

@dgsudharsan @prsunny help to review again, thank you.

@prsunny
Copy link
Collaborator

prsunny commented Apr 11, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@iris00522
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Commenter does not have sufficient privileges for PR 2075 in repo Azure/sonic-swss

@gord1306
Copy link
Contributor

@dgsudharsan @prsunny can this PR be merged? Thanks

@prsunny
Copy link
Collaborator

prsunny commented Apr 21, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prsunny
Copy link
Collaborator

prsunny commented Apr 25, 2022

@dgsudharsan , can you please signoff?

@prsunny prsunny merged commit 7f53db7 into sonic-net:master Apr 26, 2022
@iris00522 iris00522 deleted the vxlan_mgr branch April 26, 2022 01:25
dprital pushed a commit to dprital/sonic-swss that referenced this pull request May 8, 2022
*set vtep-xxx the netdev down before delete vtep-xxx .
preetham-singh pushed a commit to preetham-singh/sonic-swss that referenced this pull request Aug 6, 2022
*set vtep-xxx the netdev down before delete vtep-xxx .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants