summaryrefslogtreecommitdiff
path: root/docs/configuration/policy/as-path-list.rst
blob: ceeb8e017b252203b08ee80639debce0d2aec9e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
####################
BGP - AS Path Policy
####################

VyOS provides policies commands exclusively for BGP traffic filtering and
manipulation: **as-path-list** is one of them.

*************
Configuration
*************

policy as-path-list
===================

.. cfgcmd:: set policy as-path-list <text>

   Create as-path-policy identified by name <text>.

.. cfgcmd:: set policy as-path-list <text> description <text>

   Set description for as-path-list policy.

.. cfgcmd:: set policy as-path-list <text> rule <1-65535> action <permit|deny>

   Set action to take on entries matching this rule.

.. cfgcmd:: set policy as-path-list <text> rule <1-65535> description <text>

   Set description for rule.

.. cfgcmd:: set policy as-path-list <text> rule <1-65535> regex <text>

   Regular expression to match against an AS path. For example "64501 64502".