Skip to content

[202111][sonic-yang] fix the feature state type (#9587)#9778

Merged
liat-grozovik merged 1 commit intosonic-net:202111from
stepanblyschak:fix-feature-state-yang-2111
Jan 28, 2022
Merged

[202111][sonic-yang] fix the feature state type (#9587)#9778
liat-grozovik merged 1 commit intosonic-net:202111from
stepanblyschak:fix-feature-state-yang-2111

Conversation

@stepanblyschak
Copy link
Collaborator

@stepanblyschak stepanblyschak commented Jan 17, 2022

Signed-off-by: Stepan Blyschak [email protected]

Backport #9587

Why I did it

The feature state can be a jinja template, like in this file - https://github.com/Azure/sonic-buildimage/blob/master/files/build_templates/init_cfg.json.j2#L39.
Without this change it is not possible to validate a configuration file.

How I did it

Relaxes the constraint on feature state. Feature state leaf can be any string.

How to verify it

Run UT.

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111

Description for the changelog

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

- Why I did it
The feature state can be a jinja template, like in this file - https://github.com/Azure/sonic-buildimage/blob/master/files/build_templates/init_cfg.json.j2#L39.
Without this change it is not possible to validate a configuration file.

- How I did it
Relaxes the constraint on feature state. Feature state leaf can be any string.

- How to verify it
Run UT.

Signed-off-by: Stepan Blyschak <[email protected]>
@liat-grozovik
Copy link
Collaborator

@qiluo-msft could you please help to review?

@liat-grozovik
Copy link
Collaborator

@qiluo-msft could you please help review and merge? required as smooth cherry pick is not available.

@liat-grozovik liat-grozovik merged commit fcdb3f2 into sonic-net:202111 Jan 28, 2022
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.

3 participants