William A. Kennington III | 031f6a6 | 2024-09-05 02:22:15 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # Copyright 2024 Google LLC |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | update_rtr() { |
| 17 | default_update_rtr "$@" |
| 18 | } |
| 19 | |
| 20 | update_fqdn() { |
| 21 | true |
| 22 | } |
| 23 | |
| 24 | update_pfx() { |
| 25 | true |
| 26 | } |
| 27 | |
| 28 | RA_IF=$1 |
| 29 | IP_OFFSET=0 |
| 30 | # This is guaranteed to be closer to the ToR than NCSI, for reliability |
| 31 | # and bandwidth we want to prefer this path. |
| 32 | ROUTE_METRIC=800 |
| 33 | |
| 34 | # shellcheck source=meta-google/recipes-google/networking/gbmc-net-common/gbmc-ra.sh |
| 35 | source /usr/share/gbmc-ra.sh || exit |