Skip to content

Routing Policies

Source code

Models locations:

Table relations

erDiagram

    dcim_Device 1--0+ RoutePolicy: ""
    RoutePolicy 1--0+ RoutePolicyTerm: ""
    RoutePolicyTerm 0+--o| BgpCommunityList: ""
    RoutePolicyTerm 0+--o| PrefixList: ""
    BgpCommunityList 1--0+ BgpCommunityListTerm: ""
    PrefixList 1--0+ PrefixListTerm: ""

Prefix lists

PrefixList:
    name: string
    device: dcim.Device
    ip_version: string choice
PrefixListTerm:
    prefix_list: cmdb.PrefixList
    sequence: integer
    decision: string choice
    prefix: IPNetwork
    le: integer
    ge: integer

Community lists

BGPCommunityList:
    name: string
    device: dcim.Device
BGPCommunityListTerm:
    bgp_community_list: cmdb.BGPCommunityList
    sequence: integer
    decision: string choice
    community: string

Route policies

RoutePolicy:
    name: string
    device: dcim.Device
    description: string
RoutePolicyTerm:
    route_policy: cmdb.RoutePolicy
    description: string
    sequence: integer
    decision: string choice

    # match
    from_bgp_community: string
    from_bgp_community_list: cmdb.BgpCommunityList
    from_prefix_list: cmdb.PrefixList
    from_source_protocol: string
    from_route_type: string
    from_local_pref: integer

    # set
    set_local_pref: integer
    set_community: string
    set_origin: string
    set_metric: integer
    set_large_community: string
    set_as_path_prepend: string
    set_next_hop: IPaddress