![]() If you open any of the sample Python files (for example ch10_mech_driver_subnet.py) you will see that the Python modules imported in this file are shown as errors ( red underlines). Once the code is checked out, P圜harm will automatically show the folder under the project.The sample code is needed to show you how to resolve code dependencies. And then use git clone command to fetch the sample ML2 driver code. Open a Terminal window (on Ubuntu) and change directory to the neutron-plugin project as shown below.This folder can be found in the home directory of the user. Once the project is created, P圜harm creates a directory for it under “P圜harmProjects” directory by default.And then click on “Create” button at the bottom. For this blog, lets call the project neutron-plugin. In the next screen enter the project name (you may have to replace the word “Untitled”).Once the IDE is started, click on New -> Project to create a new P圜harm project as shown in the screenshot below.Create a new P圜harm project and check out sample ML2 Driver code Depending on your OS, you should be able to find the instructions easily for these. The installation steps for Java (JRE), Python 2.7 and P圜harm IDE are fairly straight forward. OpenStack uses Python 2.7 so ensure that the correct version is installed. But since the P圜harm IDE is intended from Python programming, you need the Python interpreter. The P圜harm IDE is written in Java and hence it requires the JRE. In order to install and use P圜harm, you need to install Java (JRE) and Python 2.7. Moreover the benefits of using a visually-rich IDE such as P圜harm far outweigh the one-time effort to set it up. So it is better to write code in a non-DevStack environment and then deploy the unit tested code in DevStack for thorough testing. Keeping development and test environment separate is a good practice. DevStack includes development tools, but it is not the ideal development environment. P圜harm and OpenStack programming - backgroundĭevStack provides a great test environment since it mimics a real OpenStack setup very well. I will use the Neutron ML2 driver code from my book OpenStack Networking Cookbook to guide you in setting up the P圜harm IDE. In this blog, I will show you how to use the P圜harm IDE from Jetbrains for your OpenStack programming. If you are doing serious, professional programming around OpenStack, it is very useful to have a proper development environment. OpenStack is based on the Python programming language and DevStack is the most common development and test environment for OpenStack.
0 Comments
Leave a Reply. |