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

[yang] bgp address family l2vpn advertise-all-vni #21054

Merged
merged 4 commits into from
Dec 16, 2024

Conversation

bradh352
Copy link
Contributor

@bradh352 bradh352 commented Dec 5, 2024

Why I did it

Cannot configure unified bgp for vxlan evpn without specifying advertise-all-vpn. The setting appears to have been introduced as part of PR #5142, can be seen it is already honored as an option here:

{% if 'advertise-all-vni' in af_val and af_val['advertise-all-vni'] == 'true' %}
advertise-all-vni
{% endif %}

Work item tracking

How I did it

Added basic yang rule

How to verify it

Configure

"BGP_GLOBALS_AF": {
        "default|l2vpn_evpn": {
            "advertise-all-vni": "true"
        }
    }

and run config replace.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305
  • 202311
  • 202405
  • 202411

Tested branch (Please provide the tested image version)

master as of 20241205

Description for the changelog

[yang] bgp address family l2vpn advertise-all-vni

Link to config_db schema for YANG module changes

N/A

A picture of a cute animal (not mandatory but encouraged)

Signed-off-by: Brad House (@bradh352)

Cannot configured unified bgp for vxlan evpn without specifying
advertise-all-vpn.  The setting appears to have been introduced
as part of PR sonic-net#5142

Signed-off-by: Brad House (@bradh352)
@bradh352 bradh352 requested a review from qiluo-msft as a code owner December 5, 2024 12:42
@bradh352
Copy link
Contributor Author

@qiluo-msft please review, this should be an easy one

@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@bradh352
Copy link
Contributor Author

@qiluo-msft ok, tests succeeded with test cases added as per your request.

@qiluo-msft qiluo-msft merged commit 8063384 into sonic-net:master Dec 16, 2024
21 checks passed
@bradh352 bradh352 deleted the yang-advertise-all-vni branch December 16, 2024 12:16
bradh352 added a commit to bradh352/sonic-buildimage that referenced this pull request Dec 24, 2024
Why I did it
Cannot configure unified bgp for vxlan evpn without specifying advertise-all-vpn. The setting appears to have been introduced as part of PR sonic-net#5142, can be seen it is already honored as an option here:

sonic-buildimage/src/sonic-frr-mgmt-framework/templates/bgpd/bgpd.conf.db.addr_family.evpn.j2

Lines 1 to 3 in 8e0f1c6

 {% if 'advertise-all-vni' in af_val and af_val['advertise-all-vni'] == 'true' %} 
   advertise-all-vni 
 {% endif %} 
Work item tracking
How I did it
Added basic yang rule

How to verify it
Configure

"BGP_GLOBALS_AF": {
        "default|l2vpn_evpn": {
            "advertise-all-vni": "true"
        }
    }
and run config replace.

Tested branch (Please provide the tested image version)
master as of 20241205

Description for the changelog
[yang] bgp address family l2vpn advertise-all-vni
bradh352 added a commit to bradh352/sonic-buildimage that referenced this pull request Dec 24, 2024
Why I did it
Cannot configure unified bgp for vxlan evpn without specifying advertise-all-vpn. The setting appears to have been introduced as part of PR sonic-net#5142, can be seen it is already honored as an option here:

sonic-buildimage/src/sonic-frr-mgmt-framework/templates/bgpd/bgpd.conf.db.addr_family.evpn.j2

Lines 1 to 3 in 8e0f1c6

 {% if 'advertise-all-vni' in af_val and af_val['advertise-all-vni'] == 'true' %} 
   advertise-all-vni 
 {% endif %} 
Work item tracking
How I did it
Added basic yang rule

How to verify it
Configure

"BGP_GLOBALS_AF": {
        "default|l2vpn_evpn": {
            "advertise-all-vni": "true"
        }
    }
and run config replace.

Tested branch (Please provide the tested image version)
master as of 20241205

Description for the changelog
[yang] bgp address family l2vpn advertise-all-vni
github-actions bot pushed a commit to bradh352/sonic-buildimage that referenced this pull request Dec 24, 2024
Why I did it
Cannot configure unified bgp for vxlan evpn without specifying advertise-all-vpn. The setting appears to have been introduced as part of PR sonic-net#5142, can be seen it is already honored as an option here:

sonic-buildimage/src/sonic-frr-mgmt-framework/templates/bgpd/bgpd.conf.db.addr_family.evpn.j2

Lines 1 to 3 in 8e0f1c6

 {% if 'advertise-all-vni' in af_val and af_val['advertise-all-vni'] == 'true' %} 
   advertise-all-vni 
 {% endif %} 
Work item tracking
How I did it
Added basic yang rule

How to verify it
Configure

"BGP_GLOBALS_AF": {
        "default|l2vpn_evpn": {
            "advertise-all-vni": "true"
        }
    }
and run config replace.

Tested branch (Please provide the tested image version)
master as of 20241205

Description for the changelog
[yang] bgp address family l2vpn advertise-all-vni
bradh352 added a commit to bradh352/sonic-buildimage that referenced this pull request Dec 24, 2024
Why I did it
Cannot configure unified bgp for vxlan evpn without specifying advertise-all-vpn. The setting appears to have been introduced as part of PR sonic-net#5142, can be seen it is already honored as an option here:

sonic-buildimage/src/sonic-frr-mgmt-framework/templates/bgpd/bgpd.conf.db.addr_family.evpn.j2

Lines 1 to 3 in 8e0f1c6

 {% if 'advertise-all-vni' in af_val and af_val['advertise-all-vni'] == 'true' %} 
   advertise-all-vni 
 {% endif %} 
Work item tracking
How I did it
Added basic yang rule

How to verify it
Configure

"BGP_GLOBALS_AF": {
        "default|l2vpn_evpn": {
            "advertise-all-vni": "true"
        }
    }
and run config replace.

Tested branch (Please provide the tested image version)
master as of 20241205

Description for the changelog
[yang] bgp address family l2vpn advertise-all-vni
bradh352 added a commit to bradh352/sonic-buildimage that referenced this pull request Dec 24, 2024
Why I did it
Cannot configure unified bgp for vxlan evpn without specifying advertise-all-vpn. The setting appears to have been introduced as part of PR sonic-net#5142, can be seen it is already honored as an option here:

sonic-buildimage/src/sonic-frr-mgmt-framework/templates/bgpd/bgpd.conf.db.addr_family.evpn.j2

Lines 1 to 3 in 8e0f1c6

 {% if 'advertise-all-vni' in af_val and af_val['advertise-all-vni'] == 'true' %} 
   advertise-all-vni 
 {% endif %} 
Work item tracking
How I did it
Added basic yang rule

How to verify it
Configure

"BGP_GLOBALS_AF": {
        "default|l2vpn_evpn": {
            "advertise-all-vni": "true"
        }
    }
and run config replace.

Tested branch (Please provide the tested image version)
master as of 20241205

Description for the changelog
[yang] bgp address family l2vpn advertise-all-vni
bradh352 added a commit to bradh352/sonic-buildimage that referenced this pull request Jan 2, 2025
Why I did it
Cannot configure unified bgp for vxlan evpn without specifying advertise-all-vpn. The setting appears to have been introduced as part of PR sonic-net#5142, can be seen it is already honored as an option here:

sonic-buildimage/src/sonic-frr-mgmt-framework/templates/bgpd/bgpd.conf.db.addr_family.evpn.j2

Lines 1 to 3 in 8e0f1c6

 {% if 'advertise-all-vni' in af_val and af_val['advertise-all-vni'] == 'true' %} 
   advertise-all-vni 
 {% endif %} 
Work item tracking
How I did it
Added basic yang rule

How to verify it
Configure

"BGP_GLOBALS_AF": {
        "default|l2vpn_evpn": {
            "advertise-all-vni": "true"
        }
    }
and run config replace.

Tested branch (Please provide the tested image version)
master as of 20241205

Description for the changelog
[yang] bgp address family l2vpn advertise-all-vni
github-actions bot pushed a commit to bradh352/sonic-buildimage that referenced this pull request Jan 2, 2025
Why I did it
Cannot configure unified bgp for vxlan evpn without specifying advertise-all-vpn. The setting appears to have been introduced as part of PR sonic-net#5142, can be seen it is already honored as an option here:

sonic-buildimage/src/sonic-frr-mgmt-framework/templates/bgpd/bgpd.conf.db.addr_family.evpn.j2

Lines 1 to 3 in 8e0f1c6

 {% if 'advertise-all-vni' in af_val and af_val['advertise-all-vni'] == 'true' %} 
   advertise-all-vni 
 {% endif %} 
Work item tracking
How I did it
Added basic yang rule

How to verify it
Configure

"BGP_GLOBALS_AF": {
        "default|l2vpn_evpn": {
            "advertise-all-vni": "true"
        }
    }
and run config replace.

Tested branch (Please provide the tested image version)
master as of 20241205

Description for the changelog
[yang] bgp address family l2vpn advertise-all-vni
github-actions bot pushed a commit to bradh352/sonic-buildimage that referenced this pull request Jan 7, 2025
Why I did it
Cannot configure unified bgp for vxlan evpn without specifying advertise-all-vpn. The setting appears to have been introduced as part of PR sonic-net#5142, can be seen it is already honored as an option here:

sonic-buildimage/src/sonic-frr-mgmt-framework/templates/bgpd/bgpd.conf.db.addr_family.evpn.j2

Lines 1 to 3 in 8e0f1c6

 {% if 'advertise-all-vni' in af_val and af_val['advertise-all-vni'] == 'true' %} 
   advertise-all-vni 
 {% endif %} 
Work item tracking
How I did it
Added basic yang rule

How to verify it
Configure

"BGP_GLOBALS_AF": {
        "default|l2vpn_evpn": {
            "advertise-all-vni": "true"
        }
    }
and run config replace.

Tested branch (Please provide the tested image version)
master as of 20241205

Description for the changelog
[yang] bgp address family l2vpn advertise-all-vni
github-actions bot pushed a commit to bradh352/sonic-buildimage that referenced this pull request Jan 9, 2025
Why I did it
Cannot configure unified bgp for vxlan evpn without specifying advertise-all-vpn. The setting appears to have been introduced as part of PR sonic-net#5142, can be seen it is already honored as an option here:

sonic-buildimage/src/sonic-frr-mgmt-framework/templates/bgpd/bgpd.conf.db.addr_family.evpn.j2

Lines 1 to 3 in 8e0f1c6

 {% if 'advertise-all-vni' in af_val and af_val['advertise-all-vni'] == 'true' %} 
   advertise-all-vni 
 {% endif %} 
Work item tracking
How I did it
Added basic yang rule

How to verify it
Configure

"BGP_GLOBALS_AF": {
        "default|l2vpn_evpn": {
            "advertise-all-vni": "true"
        }
    }
and run config replace.

Tested branch (Please provide the tested image version)
master as of 20241205

Description for the changelog
[yang] bgp address family l2vpn advertise-all-vni
github-actions bot pushed a commit to bradh352/sonic-buildimage that referenced this pull request Jan 10, 2025
Why I did it
Cannot configure unified bgp for vxlan evpn without specifying advertise-all-vpn. The setting appears to have been introduced as part of PR sonic-net#5142, can be seen it is already honored as an option here:

sonic-buildimage/src/sonic-frr-mgmt-framework/templates/bgpd/bgpd.conf.db.addr_family.evpn.j2

Lines 1 to 3 in 8e0f1c6

 {% if 'advertise-all-vni' in af_val and af_val['advertise-all-vni'] == 'true' %} 
   advertise-all-vni 
 {% endif %} 
Work item tracking
How I did it
Added basic yang rule

How to verify it
Configure

"BGP_GLOBALS_AF": {
        "default|l2vpn_evpn": {
            "advertise-all-vni": "true"
        }
    }
and run config replace.

Tested branch (Please provide the tested image version)
master as of 20241205

Description for the changelog
[yang] bgp address family l2vpn advertise-all-vni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants