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

Revert "Convert IPv6 addresses to lowercase in apply-patch (#2299)" #2758

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

wen587
Copy link
Contributor

@wen587 wen587 commented Mar 27, 2023

This reverts commit 28b6ba5.

There are some issues when GCU tries to remove the interface IP in some tests, such as add rack test.

In the initial config, the INTERFACE's IPv6 was all loaded in uppercase by default.

"INTERFACE": {
    "Ethernet68": {},
    "Ethernet68|10.0.0.34/31": {},
    "Ethernet68|FC00::45/126": {},
    "Ethernet72": {},
    "Ethernet72|10.0.0.36/31": {},
    "Ethernet72|FC00::49/126": {},

GCU will never be able to remove that IP because IPv6 was always translated to lowercase due to #2299 . It reported the error can't remove a non-existent object, thus making GCU fail.

#2299 is to deal with this issue: sonic-net/sonic-buildimage#11622.

Although config CLI always translates uppercase to lowercase when adding an IP, the user can have two choices to remove that IP: One is to use config CLI to remove that IP no matter uppercase or lowercase. Another way is to use GCU. In order to use GCU, the user has to check the IP format saved in ConfigDB because GCU operation does differentiate between uppercase and lowercase.

What I did

Revert #2299

How I did it

How to verify it

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

@wen587 wen587 marked this pull request as ready for review March 27, 2023 07:06
@qiluo-msft
Copy link
Contributor

@dbarashinvd Could you help review this PR?

@dbarashinvd
Copy link
Collaborator

@dbarashinvd Could you help review this PR?

can you put me as reviewer ? I cant approve or add myself.

@qiluo-msft
Copy link
Contributor

@dbarashinvd If you permission is limited, you can comment with "Approve".

@dbarashinvd
Copy link
Collaborator

Approve

@qiluo-msft qiluo-msft merged commit 53f611b into sonic-net:master Mar 28, 2023
yxieca pushed a commit that referenced this pull request Apr 1, 2023
…2758)

This reverts commit 28b6ba5.


There are some issues when GCU tries to remove the interface IP in some tests, such as add rack test.

In the initial config, the INTERFACE's IPv6 was all loaded in uppercase by default.

    "INTERFACE": {
        "Ethernet68": {},
        "Ethernet68|10.0.0.34/31": {},
        "Ethernet68|FC00::45/126": {},
        "Ethernet72": {},
        "Ethernet72|10.0.0.36/31": {},
        "Ethernet72|FC00::49/126": {},
GCU will never be able to remove that IP because IPv6 was always translated to lowercase due to #2299 . It reported the error can't remove a non-existent object, thus making GCU fail.

#2299  is to deal with this issue: sonic-net/sonic-buildimage#11622.

Although config CLI always translates uppercase to lowercase when adding an IP, the user can have two choices to remove that IP: One is to use config CLI to remove that IP no matter uppercase or lowercase. Another way is to use GCU. In order to use GCU, the user has to check the IP format saved in ConfigDB because GCU operation does differentiate between uppercase and lowercase.
#### What I did
Revert #2299
@yxieca
Copy link
Contributor

yxieca commented Apr 1, 2023

@qiluo-msft @wangxin have we adapted any test according to #2299? if so, we need to revert the test chagne too.

@wen587 wen587 deleted the revert_ipv6 branch April 4, 2023 04:57
StormLiangMS pushed a commit that referenced this pull request Apr 8, 2023
…2758)

This reverts commit 28b6ba5.


There are some issues when GCU tries to remove the interface IP in some tests, such as add rack test.

In the initial config, the INTERFACE's IPv6 was all loaded in uppercase by default.

    "INTERFACE": {
        "Ethernet68": {},
        "Ethernet68|10.0.0.34/31": {},
        "Ethernet68|FC00::45/126": {},
        "Ethernet72": {},
        "Ethernet72|10.0.0.36/31": {},
        "Ethernet72|FC00::49/126": {},
GCU will never be able to remove that IP because IPv6 was always translated to lowercase due to #2299 . It reported the error can't remove a non-existent object, thus making GCU fail.

#2299  is to deal with this issue: sonic-net/sonic-buildimage#11622.

Although config CLI always translates uppercase to lowercase when adding an IP, the user can have two choices to remove that IP: One is to use config CLI to remove that IP no matter uppercase or lowercase. Another way is to use GCU. In order to use GCU, the user has to check the IP format saved in ConfigDB because GCU operation does differentiate between uppercase and lowercase.
#### What I did
Revert #2299
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.

5 participants