Advertisement
Guest User

Untitled

a guest
Sep 18th, 2014
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2.  
  3. Create+attach:
  4. $cgw_id = CreateCustomerGateway($type, $IP, $BgpAsn??) (radio button BGP/Static or just static?)->if static is allowed, users will need a way to edit routes
  5. $vpn_id = CreateVpnGateway($type) $type = ipsec.1 (this step can happen whenever)
  6. $vc_id = CreateVpnConnection($type, $cgw_id, $vpn_id) ->returns configuration info that the customer needs to know about to configure their customer gateway. Perhaps we have a row for this in the db and have a view VPN config button (disabled if VPN is not attached, enabled when it is), but then we couldn't have a 1:many relationship between VPCs and VPNs, as we should. Alternatively we could have a separate page for VPNs, or a modal for each VPC that displays the VPNs for that VPC(allows user to select a VPN and view info/status for it, delete it, etc.). Either way this will take some schema updates. Probably a new table called vpn.
  7. AttachVpnGateway($vpn_id, $vpc_id) -> (only one vpc per vpn)
  8.  
  9. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  10. Detach+delete:
  11. DetachVpnGateway($vpn_id, $vpc_id)
  12. DeleteVpnConnection($vc_id)
  13. DeleteCustomerGateway($cgw_id)
  14. DeleteVpcGateway($vpn_id)
  15.  
  16. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  17. May need to describe each of these to check states before attaching stuff to them.
  18.  
  19. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  20. VPNS HAVE LIMITS->need to have these disabled beyond dev.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement