Skip to content

Commit

Permalink
add feat: disable-IRR
Browse files Browse the repository at this point in the history
  • Loading branch information
canoziia committed Jan 10, 2025
1 parent 3b57613 commit 726cddc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions configure/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,7 @@ def get_bgp_neighbor_cmd(
{f"set protocols bgp neighbor {neighbor_address} timers keepalive {neighbor['keepalive']}" if "keepalive" in neighbor else ""}
{f"set protocols bgp neighbor {neighbor_address} address-family ipv{ipversion}-unicast addpath-tx-all" if "addpath" in neighbor and neighbor["addpath"] else ""}
{f"set protocols bgp neighbor {neighbor_address} address-family ipv{ipversion}-unicast prefix-list import AUTOGEN-AS{asn}-CONE" if neighbor_type in ["Peer", "Downstream"] else ""}
{f"delete protocols bgp neighbor {neighbor_address} address-family ipv{ipversion}-unicast prefix-list" if "disable-IRR" in neighbor and neighbor["disable-IRR"] else ""}
{f"set protocols bgp neighbor {neighbor_address} address-family ipv{ipversion}-unicast filter-list import AUTOGEN-AS{asn}-IN" if neighbor_type in ["Peer", "Downstream"] else ""}
{f"set protocols bgp neighbor {neighbor_address} address-family ipv{ipversion}-unicast maximum-prefix {maximum_prefix}" if neighbor_type in ["Peer", "Downstream"] else ""}
{f"set protocols bgp neighbor {neighbor_address} address-family ipv{ipversion}-unicast maximum-prefix-out {maximum_prefix_out}" if neighbor_type in ["Upstream", "RouteServer", "Peer"] else ""}
Expand Down
7 changes: 4 additions & 3 deletions todo.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
vrf?
blackhole
vrf? set table
simple-ibgp-out add downstream, and delete /25-/32 and /49-/128?(小段backbone有用,暂时别删)
reject tier1 in as path from peer
large asn verify 替代 limit-violaion
large asn verify 替代 limit-violaion
aggregate prefixes and permit longer prefix included in IRR
blackhole

0 comments on commit 726cddc

Please sign in to comment.