diff options
author | Daniil Baturin <daniil@vyos.io> | 2024-02-15 15:20:50 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-15 15:20:50 +0000 |
commit | f01d45e9117d39a4e3f30590e9dd2dbd9fcf9d77 (patch) | |
tree | 0cea31465d1a38502dde04505e8c6f232641ee05 /smoketest/configs | |
parent | 2bc62337b3a1474bba3e1027292ca8d0e443b297 (diff) | |
parent | 354603398b693af06695d5d1a7602f17079f8350 (diff) | |
download | vyos-1x-f01d45e9117d39a4e3f30590e9dd2dbd9fcf9d77.tar.gz vyos-1x-f01d45e9117d39a4e3f30590e9dd2dbd9fcf9d77.zip |
Merge pull request #3011 from c-po/rpki-smoketests
rpki: T6034: extend config migration testcase
Diffstat (limited to 'smoketest/configs')
-rw-r--r-- | smoketest/configs/rpki-only | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/smoketest/configs/rpki-only b/smoketest/configs/rpki-only index 0f89b9a1b..98e9892ad 100644 --- a/smoketest/configs/rpki-only +++ b/smoketest/configs/rpki-only @@ -3,11 +3,62 @@ interfaces { duplex auto speed auto address 192.0.2.1/24 + address 2001:db8::1/64 } loopback lo { } } +policy { + route-map ROUTES-IN { + rule 10 { + action permit + match { + rpki valid + } + set { + local-preference 300 + } + } + rule 20 { + action permit + match { + rpki notfound + } + set { + local-preference 125 + } + } + rule 30 { + action deny + match { + rpki invalid + } + } + } +} protocols { + bgp 100 { + neighbor 192.0.2.200 { + address-family { + ipv4-unicast { + route-map { + import ROUTES-IN + } + } + } + remote-as 200 + } + neighbor 2001:db8::200 { + address-family { + ipv6-unicast { + route-map { + import ROUTES-IN + } + } + } + remote-as 200 + } + } rpki { cache 1.2.3.4 { port 3323 |