"But, I do not see any code that makes a call to delete the rules and reapplies it. If it reapplies how does it get the information for each tier to reapply the ACLs. I see that just shutdownVpc() API call is made and VPCVRElement just invokes destroyRouter…”
If you look further, you should see the call to “startVpc”. From this method, call to implement all the vpc resources is made (element.implementVpc). Then it comes to the VpcVirtualRouterElement, implement method. From there the VR gets deployed. In turn, deployRouter consists of a) starting/creating the VR b) implementing all the rules. You can find all the rules that are being re-applied, in finalizeCommandsOnStart() method of the VpcVirtualNetworkApplianceManagerImpl. -Alena. From: Suresh Ramamurthy <suresh.ramamur...@nuagenetworks.net<mailto:suresh.ramamur...@nuagenetworks.net>> Date: Thursday, August 7, 2014 at 5:17 PM To: Alena Prokharchyk <alena.prokharc...@citrix.com<mailto:alena.prokharc...@citrix.com>> Cc: "dev@cloudstack.apache.org<mailto:dev@cloudstack.apache.org>" <dev@cloudstack.apache.org<mailto:dev@cloudstack.apache.org>>, Sheng Yang <sheng.y...@citrix.com<mailto:sheng.y...@citrix.com>> Subject: Re: What is the behaviour of VPC Reset? Hi Alena, Thanks for quick response. But, I do not see any code that makes a call to delete the rules and reapplies it. If it reapplies how does it get the information for each tier to reapply the ACLs. I see that just shutdownVpc() API call is made and VPCVRElement just invokes destroyRouter... Am I missing something here. Can you please point me to code that deletes and re-applies all Rules, NAT etc. Is it in VR code? I am trying to understand the behaviour so that I can replicate in our SDN solution. I see this happening in case of Network Restart with clean up option. Thanks, Suresh On Thu, Aug 7, 2014 at 4:32 PM, Alena Prokharchyk <alena.prokharc...@citrix.com<mailto:alena.prokharc...@citrix.com>> wrote: Suresh, Yes, it does. All the rules for all the networks inside the VPC, are being reapplied on the VPC VR after its up. I don¹t see it being documented neither in the FS, nor in the API itself. Please file a CS doc bug on that. -Alena. On 8/7/14, 3:40 PM, "Suresh Ramamurthy" <suresh.ramamur...@nuagenetworks.net<mailto:suresh.ramamur...@nuagenetworks.net>> wrote: >Hi Alena, Sheng Yang, > >Could you please shed some light on the behaviour of VPC Reset >functionality? > >When I went through the code, VPC Reset shuts down the VR and restarts it. >Does it also clean all ACL, NAT etc associated to all the tiers in the VPC >and then reconfigure the current value? > >Is there any document that I can read to get an idea about the behaviour? > >Thanks, >Suresh Ramamurthy