-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Extended simple-nva module to manage BGP service running on FR routing docker container #1195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 8 commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
ebb4bf7
add frr configuration for running bgp on the nva
simonebruzzechesse c7fefa8
add ip masquerading config on network interfaces
simonebruzzechesse 12fd6de
small fixes
simonebruzzechesse 822cd83
fmt terraform code
simonebruzzechesse 2fe6572
fix variable description
simonebruzzechesse 3aafecf
remove redundant check on LB ip address
simonebruzzechesse a6ac4cd
Merge branch 'master' into simple-nva
simonebruzzechesse e2602f9
Merge branch 'master' into simple-nva
simonebruzzechesse 4cdc5c1
Fix secondary ranges in net-vpc readme (#1198)
ludoo c11b07e
Add test for #1197
juliocc b842bd7
Add missing tfvars template to the tfc blueprint
averbuks cbb40a2
Add more explicit template
averbuks 2efdef5
Missing newline
averbuks 88af3bf
Fix tfvars template
averbuks 0f6e94a
Fix Variables
lcaggio d53ea84
Fix linting
lcaggio 7fd3ebc
Update README.
lcaggio 6c12a33
Update README
lcaggio bffdb29
Remove wrongly submitted file.
lcaggio 06a6a2c
Fix README
lcaggio 0ed0a5a
Fix url_redirect issue on net-glb module (#1204)
erabusi 4d948b3
Blueprint: GLB hybrid NEG internal
LucaPrete 2915177
Fix issue with GKE cluster notifications topic, change pubsub module …
rosmo 5b433d8
small fixes
simonebruzzechesse ac6aa5f
small fixes
simonebruzzechesse 740d8cd
fmt terraform
simonebruzzechesse 23ab4df
Merge branch 'master' into simple-nva
simonebruzzechesse db5dd14
update README
simonebruzzechesse 8f2e0ac
fix issue in README
simonebruzzechesse 04377fc
fmt terraform code in example in README
simonebruzzechesse a085213
update copyright on outdated files
simonebruzzechesse c147c80
update copyright on poutdated ones
simonebruzzechesse cccf5e6
small fixes
simonebruzzechesse a2fcce0
upgrade terraform required version for simple-nva module
simonebruzzechesse 4a0b080
add simple BGP configuration for BGP session with neighbor
simonebruzzechesse 0dd3349
add _ on local values not referenced outside locals
simonebruzzechesse 6961158
add sample frr.conf file in README
simonebruzzechesse c7ae02c
remove typo
simonebruzzechesse 7caaf28
formatted example code
simonebruzzechesse 1975619
Merge branch 'master' into simple-nva
simonebruzzechesse 42f963a
small fixes
simonebruzzechesse 648e7dc
small fixes
simonebruzzechesse 7e41adf
fix documentation
simonebruzzechesse 0a8b500
Merge branch 'master' into simple-nva
simonebruzzechesse 281e57b
Merge branch 'master' into simple-nva
simonebruzzechesse 1b383f1
Merge branch 'master' into simple-nva
simonebruzzechesse File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
modules/cloud-config-container/simple-nva/files/frr/daemons
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| # Copyright 2023 Google LLC | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| zebra=no | ||
| bgpd=yes | ||
| ospfd=no | ||
| ospf6d=no | ||
| ripd=no | ||
| ripngd=no | ||
| isisd=no | ||
| pimd=no | ||
| ldpd=no | ||
| nhrpd=no | ||
| eigrpd=no | ||
| babeld=no | ||
| sharpd=no | ||
| staticd=no | ||
| pbrd=no | ||
| bfdd=no | ||
| fabricd=no | ||
|
|
||
| # | ||
LucaPrete marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| # If this option is set the /etc/init.d/frr script automatically loads | ||
| # the config via "vtysh -b" when the servers are started. | ||
| # Check /etc/pam.d/frr if you intend to use "vtysh"! | ||
| # | ||
LucaPrete marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| vtysh_enable=yes | ||
| zebra_options=" -A 127.0.0.1 -s 90000000" | ||
| bgpd_options=" -A 127.0.0.1" | ||
| ospfd_options=" --daemon -A 127.0.0.1" | ||
| ospf6d_options=" --daemon -A ::1" | ||
| ripd_options=" --daemon -A 127.0.0.1" | ||
| ripngd_options=" --daemon -A ::1" | ||
| isisd_options=" --daemon -A 127.0.0.1" | ||
| pimd_options=" --daemon -A 127.0.0.1" | ||
| ldpd_options=" --daemon -A 127.0.0.1" | ||
| nhrpd_options=" --daemon -A 127.0.0.1" | ||
| eigrpd_options=" --daemon -A 127.0.0.1" | ||
| babeld_options=" --daemon -A 127.0.0.1" | ||
| sharpd_options=" --daemon -A 127.0.0.1" | ||
| staticd_options=" --daemon -A 127.0.0.1" | ||
| pbrd_options=" --daemon -A 127.0.0.1" | ||
| bfdd_options=" --daemon -A 127.0.0.1" | ||
| fabricd_options=" --daemon -A 127.0.0.1" | ||
|
|
||
| #MAX_FDS=1024 | ||
| # The list of daemons to watch is automatically generated by the init script. | ||
| #watchfrr_options="" | ||
|
|
||
| # for debugging purposes, you can specify a "wrap" command to start instead | ||
| # of starting the daemon directly, e.g. to use valgrind on ospfd: | ||
| # ospfd_wrap="/usr/bin/valgrind" | ||
| # or you can use "all_wrap" for all daemons, e.g. to use perf record: | ||
| # all_wrap="/usr/bin/perf record --call-graph -" | ||
| # the normal daemon command is added to this at the end. | ||
LucaPrete marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
23 changes: 23 additions & 0 deletions
23
modules/cloud-config-container/simple-nva/files/frr/frr.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # Copyright 2023 Google LLC | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| # Default FRR configuration which enables a BGP protocol process with a default ASN of 65500. | ||
| # For more information on how to update this file and/or configure bgp sessions please refer to | ||
| # the official documentation available at the following link: | ||
| # https://docs.frrouting.org/en/latest/overview.html | ||
|
|
||
LucaPrete marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| log syslog informational | ||
| no ipv6 forwarding | ||
| router bgp 65500 | ||
LucaPrete marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| line vty | ||
LucaPrete marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
27 changes: 27 additions & 0 deletions
27
modules/cloud-config-container/simple-nva/files/frr/frr.service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| # Copyright 2023 Google LLC | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| [Unit] | ||
| Description=Start FRR container | ||
| After=gcr-online.target docker.socket | ||
| Wants=gcr-online.target docker.socket docker-events-collector.service | ||
| [Service] | ||
| Environment="HOME=/home/frr" | ||
| ExecStart=/usr/bin/docker run --rm --name=frr \ | ||
| --privileged \ | ||
| --network host \ | ||
| -v /etc/frr:/etc/frr \ | ||
| frrouting/frr | ||
| ExecStop=/usr/bin/docker stop frr | ||
| ExecStopPost=/usr/bin/docker rm frr | ||
LucaPrete marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.