How to Submit a Patch
Congratulations and many thanks! Â Getting to this page means that you have helped Floodlight advance by fixing a bug, creating a new module, or adding supporting contents that will help the Floodlight community in general! Â As you prepare to submit your contribution, we would like to remind you following a few very important steps:
- Make sure you have completed unit tests and integration tests for your code.
- Make sure you have created documentation of your module, including purpose, brief design description, and usage notes.
- Make sure you have discussed your work with the community. Write to our email list.
- Make necessary changes/fixes to your code as the community and the committers' suggestions for assuring integrity of Floodlight
- Make sure you have added Apache license header to all your files, and submit your code to github based on instructions below.
Some useful information is summarized in the check list below.
Check list:
- Coding Style
- Make your code as readable as possible, please. Please match the existing style.
- Testing
- Unit Tests
- If you have added new functionality please make sure that appropriate unit tests have been added.
- If you have modified existing functionality please make sure the existing tests pass.
- If you have fixed a bug please make sure to write a unit test so it doesn't happen in regression.
- All tests must be passing before we can accept the code.
- Integration Tests
- For any medium to large size project an integration test is required.
- Integration tests must be written using the Floodlight-Test framework.
- If you modify functionality that affects existing tests those must be modified to match the new functionality.
- Unit Tests
- Submitting the code
- Update your git repository to the latest floodlight master branch:
- under your floodlight source diretory, do 'git pull upstream master' (assuming you have configured upstream to be the floodlight/floodlight repo)
- If applicable, resolve any merge conflicts.
- Create a pull request to the floodlight/floodlight project on GitHub.
- If you're code needs extra integration, an administrator of the Floodlight project may ask you to submit a pull request to their private fork instead.
- If you would like community feedback on your patch, email the Floodlight mailing list with a link to the pull request and ask for feedback.
- Intellectual Property
- Review the Developer Grant and Certificate of Origin.
- In your pull request you must include the text "Floodlight-DCO-1.0-Signed-off-by: Joe Smith <your@email.com>" with your real name and email.
- Update your git repository to the latest floodlight master branch: