From 50de5b938647cb422582ff0b6e43b42678f199df Mon Sep 17 00:00:00 2001 From: 186526 Date: Mon, 30 Jan 2023 02:49:49 +0800 Subject: [PATCH] Update --- ansible | 1 + lib/20-community-peer.conf | 5 ++++- readme.md | 6 +++--- 3 files changed, 8 insertions(+), 4 deletions(-) create mode 160000 ansible diff --git a/ansible b/ansible new file mode 160000 index 0000000..0a39004 --- /dev/null +++ b/ansible @@ -0,0 +1 @@ +Subproject commit 0a39004d06605ac9b8f825b2dac382bdea099862 diff --git a/lib/20-community-peer.conf b/lib/20-community-peer.conf index 30f2d2a..ab4a345 100644 --- a/lib/20-community-peer.conf +++ b/lib/20-community-peer.conf @@ -1,7 +1,9 @@ function is_peer_route() { if (LOCAL_ASN, 110, 0) ~ bgp_large_community then return false; if (LOCAL_ASN, 110, 10) ~ bgp_large_community then return false; - if !pub_is_downstream_route() then return false; + if bgp_path ~ [ 7018, 3320, 3257, 6830, 3356, 2914, 5511, 3491, 1239, 6453, 6762, 1299, 12956, 701, 6461, 174, 6939] then { + return false; + } return true; } @@ -19,6 +21,7 @@ function direct_peer_export_filter(int ASN) { pub_process_path(); if !is_valid() then return false; if !is_peer_route() then return false; + if !pub_is_downstream_route() then return false; pub_add_communities(ASN, 30); if pub_process_communities(ASN, 0) then return true; else return false; diff --git a/readme.md b/readme.md index 740ce1c..e919537 100644 --- a/readme.md +++ b/readme.md @@ -4,12 +4,12 @@ [![Build Status](https://ci.186526.xyz/api/badges/186526/net186-config/status.svg)](https://ci.186526.xyz/186526/net186-config) ![Bird Version Needed](https://img.shields.io/badge/bird-%3E%3D%202.0.8-blue) -[![status](https://img.shields.io/badge/status-operational-sucess)](https://net.status.186526.eu.org/) +[![status](https://img.shields.io/badge/status-operational-sucess)](https://uptime.186526.net) [![looking-glass](https://img.shields.io/badge/looking%20glass-available%20at%20lg.186526.net-blue)](https://lg.186526.net/) -- AS200536 +- AS200536, aka Sunoaki Network - Experimental global network -- Operated by 186526 [@real186526](https://t.me/real186526) +- Operated by 186526 (Bo Xu) [@real186526](https://t.me/real186526), sponsored by Sunoaki Network LLC. ## Peering