How to Contribute APM Policies

  • Policies should be built in the Commom partition, unless there is a necessary reason to use a different partition
  • The .tar file is used for when importing via AS3
  • If using the the Postman Collection templates they assume the Policy was created Common Partitiion with the lowercase fqdn name XXXXX-psp prior to export. Naming your policies in that format will reduce the amount of customization you need to perform on the Postman Collection Templates.

How to commit the policy to the repo

  1. Open command prompt
  2. Type cd c:library
  3. Perform “git pull” to get latest repo
  4. Type git checkout -b “solution[#]-policies”
  5. Create a solution[#] subfolder in solutions folder example c:librarysolutionssolution5
  6. Create a policies subfolder in solution[#] folder. Example c:librarysolutionssolution5policies
  7. Export your APM policy
  8. Right click the APM policy .tar.gz file.
  9. Select 7-Zip >> extract here
  10. Copy the .tar file to the policies folder
  11. Set your username “git config user.name [your username] “
  12. Verity username was changed “git config user.name”
  13. Set email address “git config user.email “Your Email Address”
  14. Verify email address “git config user.email”
  15. From command prompt type git add.
  16. From command prompt type git commit -m “comment”
  17. Git push -u origin [solution[#]]-policies
  18. Some will review and merge if policy functions

What to do next

  1. Once branch is merged in to master you can do the following
  2. Git checkout master
  3. Git pull
  4. Git branch -d [name of your new branch]-policies
  5. Proceed to irules