Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commands added for supporting IPv4 MPLS Layer 3 VPN. #4

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 33 additions & 1 deletion scripts/frr/configs/commands/bgp.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@
"/protocols/bgp/@element/address-family/ipv4-unicast/parameters/dampening": "bgp dampening $if|{/half-life/@text},|half-life in {/@dict}$",
"/protocols/bgp/@element/address-family/ipv4-unicast/parameters/distance/global": "distance bgp {/external/@text} {/internal/@text} {/local/@text}",
"/protocols/bgp/@element/address-family/ipv4-unicast/network/@element": "network {/tagnode/@text} [route-map {/route-map/@text},] $if|backdoor,|backdoor in {/@dict}$",

"/protocols/bgp/@element/address-family/ipv4-unicast/label/vpn/export": "label vpn export {/@text}",
"/protocols/bgp/@element/address-family/ipv4-vpn/@enter": "address-family ipv4 vpn",
"/protocols/bgp/@element/address-family/ipv4-vpn/@exit": "exit-address-family",
"/protocols/bgp/@element/address-family/ipv4-vpn/network/@element": "network {/addr/@text} rd {/rd/@text} label {/label/@text} [route-map {/route-map/@text},]",
"/protocols/bgp/@element/address-family/ipv6-unicast/@enter": "address-family ipv6 unicast",
"/protocols/bgp/@element/address-family/ipv6-unicast/@exit": "exit-address-family",
"/protocols/bgp/@element/address-family/ipv6-unicast/aggregate-address/@element": "aggregate-address {/tagnode/@text} $if|as-set,summary-only,|as-set in {/@dict}, summary-only in {/@dict}$",
Expand Down Expand Up @@ -94,6 +97,35 @@
"/protocols/bgp/@element/neighbor/@element/address-family/ipv4-unicast/unsuppress-map": "neighbor {/../../../tagnode/@text} unsuppress-map {/@text}",
"/protocols/bgp/@element/neighbor/@element/address-family/ipv4-unicast/weight": "neighbor {/../../../tagnode/@text} weight {/@text}",

"/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/@enter": "address-family ipv4 vpn",
"/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/@exit": "exit-address-family",
"/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn": ["[neighbor {/../../tagnode/@text} peer-group {/peer-group/@text},]", "neighbor {/../../tagnode/@text} activate"],
"/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/allowas-in": "neighbor {/../../../tagnode/@text} allowas-in",
"/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/allowas-in/number": "neighbor {/../../../../tagnode/@text} allowas-in {/@text}",
"/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/attribute-unchanged": "neighbor {/../../../tagnode/@text} attribute-unchanged $if|as-path,|as-path in {/@dict}$ $if|med,|med in {/@dict}$ $if|next-hop,|next-hop in {/@dict}$",
"/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/capability/orf/prefix-list/send": "neighbor {/../../../../../../tagnode/@text} capability orf prefix-list send",
"/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/capability/orf/prefix-list/receive": "neighbor {/../../../../../../tagnode/@text} capability orf prefix-list receive",
"/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/default-originate": "neighbor {/../../../tagnode/@text} default-originate [route-map {/route-map/@text},]",
"/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/disable-send-community/standard": "no neighbor {/../../../../tagnode/@text} send-community standard",
"/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/disable-send-community/extended": "no neighbor {/../../../../tagnode/@text} send-community extended",
"/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/distribute-list/export": "neighbor {/../../../../tagnode/@text} distribute-list {/@text} out",
"/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/distribute-list/import": "neighbor {/../../../../tagnode/@text} distribute-list {/@text} in",
"/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/filter-list/export": "neighbor {/../../../../tagnode/@text} filter-list {/@text} out",
"/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/filter-list/import": "neighbor {/../../../../tagnode/@text} filter-list {/@text} in",
"/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/maximum-prefix/@element": "neighbor {/../../../../tagnode/@text} maximum-prefix {/tagnode/@text} $if|{/threshold/@element/tagnode/@text},|threshold in {/@dict}$",
"/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/maximum-prefix/@element/threshold/@element": "neighbor {/../../../../../../tagnode/@text} maximum-prefix {/../../tagnode/@text} {/tagnode/@text} $if|warning-only,|warning-only in {/@dict}$",
"/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/nexthop-self": "neighbor {/../../../tagnode/@text} next-hop-self",
"/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/prefix-list/export": "neighbor {/../../../../tagnode/@text} prefix-list {/@text} out",
"/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/prefix-list/import": "neighbor {/../../../../tagnode/@text} prefix-list {/@text} in",
"/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/remove-private-as": "neighbor {/../../../tagnode/@text} remove-private-AS",
"/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/route-reflector-client": "neighbor {/../../../tagnode/@text} route-reflector-client",
"/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/route-server-client": "neighbor {/../../../tagnode/@text} route-server-client",
"/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/soft-reconfiguration/inbound": "neighbor {/../../../../tagnode/@text} soft-reconfiguration inbound",
"/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/route-map/import": "neighbor {/../../../../tagnode/@text} route-map {/@text} in",
"/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/route-map/export": "neighbor {/../../../../tagnode/@text} route-map {/@text} out",
"/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/unsuppress-map": "neighbor {/../../../tagnode/@text} unsuppress-map {/@text}",
"/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/weight": "neighbor {/../../../tagnode/@text} weight {/@text}",

"/protocols/bgp/@element/neighbor/@element/address-family/ipv6-unicast/@enter": "address-family ipv6 unicast",
"/protocols/bgp/@element/neighbor/@element/address-family/ipv6-unicast/@exit": "exit-address-family",
"/protocols/bgp/@element/neighbor/@element/address-family/ipv6-unicast": ["[neighbor {/../../tagnode/@text} peer-group {/peer-group/@text},]", "neighbor {/../../tagnode/@text} activate"],
Expand Down
35 changes: 35 additions & 0 deletions scripts/frr/configs/commands/bgp_vrf.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@
"/routing/routing-instance/@element/protocols/bgp/@element/address-family/ipv4-unicast/parameters/dampening": "bgp dampening $if|{/half-life/@text},|half-life in {/@dict}$",
"/routing/routing-instance/@element/protocols/bgp/@element/address-family/ipv4-unicast/parameters/distance/global": "distance bgp {/external/@text} {/internal/@text} {/local/@text}",
"/routing/routing-instance/@element/protocols/bgp/@element/address-family/ipv4-unicast/network/@element": "network {/tagnode/@text} [route-map {/route-map/@text},] $if|backdoor,|backdoor in {/@dict}$",
"/routing/routing-instance/@element/protocols/bgp/@element/address-family/ipv4-unicast/label/vpn/export": "label vpn export {/@text}",

"/routing/routing-instance/@element/protocols/bgp/@element/address-family/ipv4-vpn/@enter": "address-family ipv4 vpn",
"/routing/routing-instance/@element/protocols/bgp/@element/address-family/ipv4-vpn/@exit": "exit-address-family",
"/routing/routing-instance/@element/protocols/bgp/@element/address-family/ipv4-vpn/network/@element": "network {/addr/@text} rd {/rd/@text} label {/label/@text} [route-map {/route-map/@text},]",

"/routing/routing-instance/@element/protocols/bgp/@element/address-family/ipv6-unicast/@enter": "address-family ipv6 unicast",
"/routing/routing-instance/@element/protocols/bgp/@element/address-family/ipv6-unicast/@exit": "exit-address-family",
Expand Down Expand Up @@ -100,6 +105,36 @@
"/routing/routing-instance/@element/protocols/bgp/@element/neighbor/@element/address-family/ipv4-unicast/unsuppress-map": "neighbor {/../../../tagnode/@text} unsuppress-map {/@text}",
"/routing/routing-instance/@element/protocols/bgp/@element/neighbor/@element/address-family/ipv4-unicast/weight": "neighbor {/../../../tagnode/@text} weight {/@text}",

"/routing/routing-instance/@element/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/@enter": "address-family ipv4 vpn",
"/routing/routing-instance/@element/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/@exit": "exit-address-family",
"/routing/routing-instance/@element/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn": ["[neighbor {/../../tagnode/@text} peer-group {/peer-group/@text},]", "neighbor {/../../tagnode/@text} activate"],
"/routing/routing-instance/@element/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/allowas-in": "neighbor {/../../../tagnode/@text} allowas-in",
"/routing/routing-instance/@element/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/allowas-in/number": "neighbor {/../../../../tagnode/@text} allowas-in {/@text}",
"/routing/routing-instance/@element/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/attribute-unchanged": "neighbor {/../../../tagnode/@text} attribute-unchanged $if|as-path,|as-path in {/@dict}$ $if|med,|med in {/@dict}$ $if|next-hop,|next-hop in {/@dict}$",
"/routing/routing-instance/@element/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/capability/orf/prefix-list/send": "neighbor {/../../../../../../tagnode/@text} capability orf prefix-list send",
"/routing/routing-instance/@element/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/capability/orf/prefix-list/receive": "neighbor {/../../../../../../tagnode/@text} capability orf prefix-list receive",
"/routing/routing-instance/@element/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/default-originate": "neighbor {/../../../tagnode/@text} default-originate [route-map {/route-map/@text},]",
"/routing/routing-instance/@element/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/disable-send-community/standard": "no neighbor {/../../../../tagnode/@text} send-community standard",
"/routing/routing-instance/@element/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/disable-send-community/extended": "no neighbor {/../../../../tagnode/@text} send-community extended",
"/routing/routing-instance/@element/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/distribute-list/export": "neighbor {/../../../../tagnode/@text} distribute-list {/@text} out",
"/routing/routing-instance/@element/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/distribute-list/import": "neighbor {/../../../../tagnode/@text} distribute-list {/@text} in",
"/routing/routing-instance/@element/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/filter-list/export": "neighbor {/../../../../tagnode/@text} filter-list {/@text} out",
"/routing/routing-instance/@element/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/filter-list/import": "neighbor {/../../../../tagnode/@text} filter-list {/@text} in",
"/routing/routing-instance/@element/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/maximum-prefix/@element": "neighbor {/../../../../tagnode/@text} maximum-prefix {/tagnode/@text} $if|{/threshold/@element/tagnode/@text},|threshold in {/@dict}$",
"/routing/routing-instance/@element/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/maximum-prefix/@element/threshold/@element": "neighbor {/../../../../../../tagnode/@text} maximum-prefix {/../../tagnode/@text} {/tagnode/@text} $if|warning-only,|warning-only in {/@dict}$",
"/routing/routing-instance/@element/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/nexthop-self": "neighbor {/../../../tagnode/@text} next-hop-self",
"/routing/routing-instance/@element/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/prefix-list/export": "neighbor {/../../../../tagnode/@text} prefix-list {/@text} out",
"/routing/routing-instance/@element/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/prefix-list/import": "neighbor {/../../../../tagnode/@text} prefix-list {/@text} in",
"/routing/routing-instance/@element/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/remove-private-as": "neighbor {/../../../tagnode/@text} remove-private-AS",
"/routing/routing-instance/@element/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/route-reflector-client": "neighbor {/../../../tagnode/@text} route-reflector-client",
"/routing/routing-instance/@element/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/route-server-client": "neighbor {/../../../tagnode/@text} route-server-client",
"/routing/routing-instance/@element/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/soft-reconfiguration/inbound": "neighbor {/../../../../tagnode/@text} soft-reconfiguration inbound",
"/routing/routing-instance/@element/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/route-map/import": "neighbor {/../../../../tagnode/@text} route-map {/@text} in",
"/routing/routing-instance/@element/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/route-map/export": "neighbor {/../../../../tagnode/@text} route-map {/@text} out",
"/routing/routing-instance/@element/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/unsuppress-map": "neighbor {/../../../tagnode/@text} unsuppress-map {/@text}",
"/routing/routing-instance/@element/protocols/bgp/@element/neighbor/@element/address-family/ipv4-vpn/weight": "neighbor {/../../../tagnode/@text} weight {/@text}",


"/routing/routing-instance/@element/protocols/bgp/@element/neighbor/@element/address-family/ipv6-unicast/@enter": "address-family ipv6 unicast",
"/routing/routing-instance/@element/protocols/bgp/@element/neighbor/@element/address-family/ipv6-unicast/@exit": "exit-address-family",
"/routing/routing-instance/@element/protocols/bgp/@element/neighbor/@element/address-family/ipv6-unicast": ["[neighbor {/../../tagnode/@text} peer-group {/peer-group/@text},]", "neighbor {/../../tagnode/@text} activate"],
Expand Down
Loading