Version: latest 1.1.0 1.0.1 0.9.3
Location in GUI: Tenants » XXX » Policies » Protocol » Set Rules
Name Type Constraint Mandatory Default Value set_rules List [set_rules]No
Name Type Constraint Mandatory Default Value name String Regex: ^[a-zA-Z0-9_.:-]{1,64}$ Yes description String Regex: ^[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]{1,128}$ No community_mode Choice append, replaceNo appendcommunity String No tag Integer min: 0, max: 4294967295 No weight Integer min: 0, max: 65535 No next_hop IP No preference Integer min: 0, max: 4294967295 No metric Integer min: 0, max: 4294967295 No metric_type Choice ospf-type1, ospf-type2No dampening Class [dampening]No additional_communities List [additional_communities]No set_as_paths List [set_as_paths]No next_hop_propagation Boolean true, falseNo falsemultipath Boolean true, falseNo falseexternal_endpoint_group Class [external_endpoint_group]No
Name Type Constraint Mandatory Default Value half_life Integer min: 1, max: 60 No 15max_suppress_time Integer min: 1, max: 255 No 60reuse_limit Integer min: 1, max: 20000 No 750suppress_limit Integer min: 1, max: 20000 No 2000
Name Type Constraint Mandatory Default Value community String Yes description String Regex: ^[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]{1,128}$ No
Name Type Constraint Mandatory Default Value criteria Choice prepend, prepend-last-asNo prependcount Integer min: 0, max: 10 No 0 asns List [asns]No
Name Type Constraint Mandatory Default Value name String Regex: ^[a-zA-Z0-9_.:-]{1,64}$ Yes l3out String Regex: ^[a-zA-Z0-9_.:-]{1,64}$ Yes tenant String Regex: ^[a-zA-Z0-9_.:-]{1,64}$ No
Name Type Constraint Mandatory Default Value number Integer Yes order Integer min: 0, max: 31 No 0
Example 1: The YAML snippet below demonstrates the set_as_paths functionality, designed to append multiple Autonomous Systems (ASs) to the AS_PATH of a BGP prefix. This is a key feature for BGP AS Path manipulation. The set_as_paths alongside the asns are defined as list.
- name : SET_STG_STG_L_65002:10002
community : regular:as2-nn2:65002:10002
- criteria : prepend-last-as
Example 2: The YAML snippet below demonstrates the set_as_path functionality designed to address dynamic EPG classification. The external_endpoint_group is used to specify the external EPG to which the traffic would be classified.
Location in GUI: Tenants » XXX » Policies » Protocol » Set Rules
Name Type Constraint Mandatory Default Value set_rules List [set_rules]No
Name Type Constraint Mandatory Default Value name String Regex: ^[a-zA-Z0-9_.:-]{1,64}$ Yes description String Regex: ^[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]{1,128}$ No community_mode Choice append, replaceNo appendcommunity String No tag Integer min: 0, max: 4294967295 No weight Integer min: 0, max: 65535 No next_hop IP No preference Integer min: 0, max: 4294967295 No metric Integer min: 0, max: 4294967295 No metric_type Choice ospf-type1, ospf-type2No dampening Class [dampening]No additional_communities List [additional_communities]No set_as_paths List [set_as_paths]No next_hop_propagation Boolean true, falseNo falsemultipath Boolean true, falseNo falseexternal_endpoint_group Class [external_endpoint_group]No
Name Type Constraint Mandatory Default Value half_life Integer min: 1, max: 60 No 15max_suppress_time Integer min: 1, max: 255 No 60reuse_limit Integer min: 1, max: 20000 No 750suppress_limit Integer min: 1, max: 20000 No 2000
Name Type Constraint Mandatory Default Value community String Yes description String Regex: ^[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]{1,128}$ No
Name Type Constraint Mandatory Default Value criteria Choice prepend, prepend-last-asNo prependcount Integer min: 0, max: 10 No 0 asns List [asns]No
Name Type Constraint Mandatory Default Value name String Regex: ^[a-zA-Z0-9_.:-]{1,64}$ Yes l3out String Regex: ^[a-zA-Z0-9_.:-]{1,64}$ Yes tenant String Regex: ^[a-zA-Z0-9_.:-]{1,64}$ No
Name Type Constraint Mandatory Default Value number Integer Yes order Integer min: 0, max: 31 No 0
community : regular:as2-nn2:12:123
community : regular:as2-nn2:12:123
- criteria : " prepend-last-as "
Location in GUI: Tenants » XXX » Policies » Protocol » Set Rules
Name Type Constraint Mandatory Default Value set_rules List [set_rules]No
Name Type Constraint Mandatory Default Value name String Regex: ^[a-zA-Z0-9_.:-]{1,64}$ Yes description String Regex: ^[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]{1,128}$ No community_mode Choice append, replaceNo appendcommunity String No tag Integer min: 0, max: 4294967295 No weight Integer min: 0, max: 65535 No next_hop IP No preference Integer min: 0, max: 4294967295 No metric Integer min: 0, max: 4294967295 No metric_type Choice ospf-type1, ospf-type2No dampening Class [dampening]No additional_communities List [additional_communities]No set_as_paths List [set_as_paths]No next_hop_propagation Boolean true, falseNo falsemultipath Boolean true, falseNo falseexternal_endpoint_group Class [external_endpoint_group]No
Name Type Constraint Mandatory Default Value half_life Integer min: 1, max: 60 No 15max_suppress_time Integer min: 1, max: 255 No 60reuse_limit Integer min: 1, max: 20000 No 750suppress_limit Integer min: 1, max: 20000 No 2000
Name Type Constraint Mandatory Default Value community String Yes description String Regex: ^[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]{1,128}$ No
Name Type Constraint Mandatory Default Value criteria Choice prepend, prepend-last-asNo prependcount Integer min: 0, max: 10 No 0 asns List [asns]No
Name Type Constraint Mandatory Default Value name String Regex: ^[a-zA-Z0-9_.:-]{1,64}$ Yes l3out String Regex: ^[a-zA-Z0-9_.:-]{1,64}$ Yes tenant String Regex: ^[a-zA-Z0-9_.:-]{1,64}$ No
Name Type Constraint Mandatory Default Value number Integer Yes order Integer min: 0, max: 31 No 0
community : regular:as2-nn2:12:123
community : regular:as2-nn2:12:123
- criteria : " prepend-last-as "
Location in GUI: Tenants » XXX » Policies » Protocol » Set Rules
Name Type Constraint Mandatory Default Value set_rules List [set_rules]No
Name Type Constraint Mandatory Default Value name String Regex: ^[a-zA-Z0-9_.:-]{1,64}$ Yes description String Regex: ^[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]{1,128}$ No community_mode Choice append, replaceNo appendcommunity String No tag Integer min: 0, max: 4294967295 No weight Integer min: 0, max: 65535 No next_hop IP No preference Integer min: 0, max: 4294967295 No metric Integer min: 0, max: 4294967295 No metric_type Choice ospf-type1, ospf-type2No dampening Class [dampening]No additional_communities List [additional_communities]No set_as_paths List [set_as_paths]No next_hop_propagation Boolean No falsemultipath Boolean No falseexternal_endpoint_group Class [external_endpoint_group]No
Name Type Constraint Mandatory Default Value half_life Integer min: 1, max: 60 No 15max_suppress_time Integer min: 1, max: 255 No 60reuse_limit Integer min: 1, max: 20000 No 750suppress_limit Integer min: 1, max: 20000 No 2000
Name Type Constraint Mandatory Default Value community String Yes description String Regex: ^[a-zA-Z0-9\\!#$%()*,-./:;@ _{|}~?&+]{1,128}$ No
Name Type Constraint Mandatory Default Value criteria Choice prepend, prepend-last-asNo prependcount Integer min: 0, max: 10 No 0 asns List [asns]No
Name Type Constraint Mandatory Default Value name String Regex: ^[a-zA-Z0-9_.:-]{1,64}$ Yes l3out String Regex: ^[a-zA-Z0-9_.:-]{1,64}$ Yes tenant String Regex: ^[a-zA-Z0-9_.:-]{1,64}$ No
Name Type Constraint Mandatory Default Value number Integer Yes order Integer min: 0, max: 31 No 0
community : regular:as2-nn2:12:123
community : regular:as2-nn2:12:123
- criteria : " prepend-last-as "