{"id":27876515,"url":"https://github.com/reddydodda/openstack-add-network","last_synced_at":"2025-06-24T07:36:39.417Z","repository":{"id":115553407,"uuid":"100845669","full_name":"reddydodda/openstack-add-network","owner":"reddydodda","description":null,"archived":false,"fork":false,"pushed_at":"2017-10-19T01:19:14.000Z","size":225,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-29T19:58:48.534Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reddydodda.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-08-20T07:31:07.000Z","updated_at":"2021-09-17T18:44:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"840fb000-3dea-447d-9aa5-8c9fa9feb26d","html_url":"https://github.com/reddydodda/openstack-add-network","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/reddydodda/openstack-add-network","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reddydodda%2Fopenstack-add-network","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reddydodda%2Fopenstack-add-network/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reddydodda%2Fopenstack-add-network/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reddydodda%2Fopenstack-add-network/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reddydodda","download_url":"https://codeload.github.com/reddydodda/openstack-add-network/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reddydodda%2Fopenstack-add-network/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261630306,"owners_count":23187204,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-05T02:49:24.469Z","updated_at":"2025-06-24T07:36:39.402Z","avatar_url":"https://github.com/reddydodda.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Introduction\nThis script was implemented for the easy adding a new external network to the cloud.\n\nAssumed that this script will be installed and run on the FUEL master node.\n\nThe full instruction you can find [here](https://docs.google.com/document/d/1KoZhuKqsdS-UZ7WtJOZBsITyGvIytAXTlmED0sqcpLM/edit#)\n\n# Warning\nPlease be aware that this script was tested only for MOS 7.0.\n\nI guees it should work for other MOS versions, but I haven't tested it. I will do it when I will have a chance.\n\n# Health check\n\nBefore starting you should make sure that everything works pretty good:\n```\npcs status\nrabbitmqctl cluster_status\nmysql -e \"show status\"\nneutron agent-list\nnova service-list\n```\n\n# Install\nFirst of all you need to clone this repo to the fuel master node:\n```\ngit clone https://github.com/aepifanov/openstack-add-network.git\n```\n\n# One short adding\nThe the easiest way to add a new external network is the execute the following script:\n```\n./add_ext_net.sh \u003cNAME\u003e \u003cIF\u003e \u003cMTU\u003e \u003cCIDR\u003e \u003cGATEWAY\u003e  \u003cSTART_FIP_RANGE\u003e \u003cEND_FIP_RANGE\u003e [DVR] \u003cvlan_range\u003e\n```\nThis script just performs all the following steps automatically.\n\n# Step by step adding\nIf you have some network modification or want to do it with additional checking you can\nperform the following steps manually:\n\n1. Prepare the cloud for working with multiple external network\n   (if you don't use DVR you shoud use only controller for search template in awk):\n    ```\n    for i in $(fuel node  | awk '/controller|compute/ {print $10}'); do ssh $i 'bash -x -s' \u003c ./1.prepare_for_multi_ext_net.sh; done\n    ```\n\n    1.1. If you want to make sure that everything work after this change you just need to\n         restart neutron services and test it:\n         ```\n         ./restart_netutron_services DVR\n         ```\n\n2. Create network infrastructure for new external network:\n   (if you don't use DVR you shoud use only controller for search template in awk):\n   ```\n   for i in $(fuel node  | awk '/controller|compute/ {print $10}'); do ssh $i 'bash -x -s' \u003c ./2.create_infra_for_new_ext_net.sh \u003cNAME\u003e \u003cIF\u003e \u003cMTU\u003e \u003cvlan_range\u003e; done\n   ```\n\n3. Restart all neutron services on all nodes\n    ```\n    ./restart_netutron_services DVR\n    ```\n\n4. Create a new external network:\n    ```\n    HOST=$(fuel node | awk '/controller/ { print $10 }' | head -n 1) \u0026\u0026 ssh $HOST 'bash -x -s' \u003c ./3.create_new_ext_net.sh \u003cNAME\u003e \u003cCIDR\u003e \u003cGATEWAY\u003e \u003cSTART_FIP_RANGE\u003e \u003cEND_FIP_RANGE\u003e\n    ```\n\nIf you need to add N ext networks you should repeat N times steps **2** and **4**.\n\nEnjoy!\n\n## To-Do Work\n### Adding VLAN tag for external network\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freddydodda%2Fopenstack-add-network","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freddydodda%2Fopenstack-add-network","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freddydodda%2Fopenstack-add-network/lists"}