Skip to content

Create default Vxlan and Vnet configs#13409

Merged
prsunny merged 3 commits intosonic-net:masterfrom
prsunny:vxlan_master
Jun 14, 2023
Merged

Create default Vxlan and Vnet configs#13409
prsunny merged 3 commits intosonic-net:masterfrom
prsunny:vxlan_master

Conversation

@prsunny
Copy link
Copy Markdown
Contributor

@prsunny prsunny commented Jan 18, 2023

Why I did it

Create Vxlan and Vnet default configs as below for certain cases:

"VNET": {
    "Vnet-default": {
        "scope": "default",
        "vni": "8000",
        "vxlan_tunnel": "Tunnel-default"
    }
},
"VXLAN_TUNNEL": {
    "Tunnel-default": {
        "src_ip": "10.1.0.32"
    }
},

MSFT ADO - 24263117

How I did it

How to verify it

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211

Description for the changelog

Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.

Link to config_db schema for YANG module changes

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

def run_script(self, argument, check_stderr=False, verbose=False, skip_yang_validation=False):
print('\n Running sonic-cfggen ' + ' '.join(argument))
self.assertTrue(self.yang.validate(argument))
if not skip_yang_validation:
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed in Yang community (1/19) and proposal is to add the Yang model and remove the skip validation

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is addressed

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you share the link addressed this issue?

Copy link
Copy Markdown
Collaborator

@lguohan lguohan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generally looks good to me, but let's finalize the plan.

@prsunny
Copy link
Copy Markdown
Contributor Author

prsunny commented Jun 14, 2023

/easycla

@prsunny prsunny requested a review from qiluo-msft June 14, 2023 17:29
@mssonicbld
Copy link
Copy Markdown
Collaborator

@prsunny PR conflicts with 202205 branch

mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Jun 15, 2023
* Create default Vxlan and Vnet configs for ToRs with Appliance Resource type
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202211: #15477

prsunny added a commit to prsunny/sonic-buildimage that referenced this pull request Jun 15, 2023
* Create default Vxlan and Vnet configs for ToRs with Appliance Resource type
@prsunny prsunny mentioned this pull request Jun 15, 2023
10 tasks
yxieca pushed a commit that referenced this pull request Jun 16, 2023
* Create default Vxlan and Vnet configs for ToRs with Appliance Resource type
prsunny added a commit that referenced this pull request Jun 16, 2023
[Sonic-Config-Engine] Re-add the yang validation check accidently removed by #13409
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Jun 23, 2023
[Sonic-Config-Engine] Re-add the yang validation check accidently removed by sonic-net#13409
@mssonicbld
Copy link
Copy Markdown
Collaborator

@prsunny cherry pick PR didn't pass PR checker. Please check!!!
#15477

2 similar comments
@mssonicbld
Copy link
Copy Markdown
Collaborator

@prsunny cherry pick PR didn't pass PR checker. Please check!!!
#15477

@mssonicbld
Copy link
Copy Markdown
Collaborator

@prsunny cherry pick PR didn't pass PR checker. Please check!!!
#15477

sonic-otn pushed a commit to sonic-otn/sonic-buildimage that referenced this pull request Sep 20, 2023
* Create default Vxlan and Vnet configs for ToRs with Appliance Resource type
sonic-otn pushed a commit to sonic-otn/sonic-buildimage that referenced this pull request Sep 20, 2023
[Sonic-Config-Engine] Re-add the yang validation check accidently removed by sonic-net#13409
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants