Ask Your Question

Which part of the neutron code responsible for creating VM?

asked 2016-10-04 23:39:56 -0500

kramer gravatar image

updated 2016-10-07 21:26:06 -0500


I want to add some code in Neutron/Nova. So that the code can be triggered every time we create a VM. The code is responsible for sending information like VLAN, Network Name, Router Name to my SDN controller.

Do you have any suggestion where the code should be put?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2016-10-21 07:31:50 -0500

virginiedotta gravatar image

This assume you are using Heat templates to send particular command to your Controller to deploy specific Networks and VMs attached, right ?

You have to create a plugin for Neutron to do this. Once this will be done, every time you will send particular command only understandable by your SDN controller, Heat will send the command to the controller itself. Nova will deploy the VM, and you controller will be in charge of the Network, and at the end, your VM will be attached to this newly created network.

You cna refer to the documentation (Neutron Plugins and Drivers) where you can find also plenty of available plugin depending on what you would like to implement

Hope this can help you

edit flag offensive delete link more

answered 2016-10-14 15:12:44 -0500

Are you using horizon? OR only throught CLI?

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-10-04 23:39:56 -0500

Seen: 96 times

Last updated: Oct 07 '16