-
Notifications
You must be signed in to change notification settings - Fork 916
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extended simple-nva module to manage BGP service running on FR routin…
…g docker container (#1195)
- Loading branch information
1 parent
b6b4e64
commit fd07c44
Showing
10 changed files
with
323 additions
and
38 deletions.
There are no files selected for viewing
This file contains 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 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
65 changes: 65 additions & 0 deletions
65
modules/cloud-config-container/simple-nva/files/frr/daemons
This file contains 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,65 @@ | ||
# 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=${zebra_enabled} | ||
bgpd=${bgpd_enabled} | ||
ospfd=${ospfd_enabled} | ||
ospf6d=${ospf6d_enabled} | ||
ripd=${ripd_enabled} | ||
ripngd=${ripngd_enabled} | ||
isisd=${isisd_enabled} | ||
pimd=${pimd_enabled} | ||
ldpd=${ldpd_enabled} | ||
nhrpd=${nhrpd_enabled} | ||
eigrpd=${eigrpd_enabled} | ||
babeld=${babeld_enabled} | ||
sharpd=${sharpd_enabled} | ||
staticd=${staticd_enabled} | ||
pbrd=${pbrd_enabled} | ||
bfdd=${bfdd_enabled} | ||
fabricd=${fabricd_enabled} | ||
|
||
# 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"! | ||
|
||
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. |
27 changes: 27 additions & 0 deletions
27
modules/cloud-config-container/simple-nva/files/frr/frr.service
This file contains 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 |
2 changes: 1 addition & 1 deletion
2
modules/cloud-config-container/simple-nva/files/ipprefix_by_netmask.sh
This file contains 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
2 changes: 1 addition & 1 deletion
2
modules/cloud-config-container/simple-nva/files/policy_based_routing.sh
This file contains 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 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 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
Oops, something went wrong.