-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[minigraph] Support parse IPv6 in device_desc.xml #11095
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
5279258
[minigraph] Support parse IPv6 in device_desc_xml
Blueve 314c936
Mgmt ip in DPG doesn't have 0.0.0.0 prefix
Blueve e50c789
Avoid adding default IPv6 placeholder
Blueve b9800ec
Add unit test for parse_device_desc_xml method
Blueve 7f7358a
Add newline in end of file
Blueve 5e0d693
Add missing namespace
Blueve 3dd201f
Update test case
Blueve 1feee4d
Fix unit test failures
Blueve ecdefad
Compare network instead of raw string
Blueve File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/sonic-config-engine/tests/simple-sample-device-desc-ipv6-only.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<Device i:type="ToRRouter" xmlns="Microsoft.Search.Autopilot.Evolution" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> | ||
<Hostname>switch-t0</Hostname> | ||
<HwSku>Force10-S6000</HwSku> | ||
<ClusterName>AAA00PrdStr00</ClusterName> | ||
<ManagementAddress xmlns:a="Microsoft.Search.Autopilot.NetMux"> | ||
<a:IPPrefix>0.0.0.0/0</a:IPPrefix> | ||
</ManagementAddress> | ||
<ManagementAddressV6 xmlns:a="Microsoft.Search.Autopilot.NetMux"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
<a:IPPrefix>FC00:1::32/64</a:IPPrefix> | ||
</ManagementAddressV6> | ||
</Device> |
11 changes: 11 additions & 0 deletions
11
src/sonic-config-engine/tests/simple-sample-device-desc.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<Device i:type="ToRRouter" xmlns="Microsoft.Search.Autopilot.Evolution" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> | ||
<Hostname>switch-t0</Hostname> | ||
<HwSku>Force10-S6000</HwSku> | ||
<ClusterName>AAA00PrdStr00</ClusterName> | ||
<ManagementAddress xmlns:a="Microsoft.Search.Autopilot.NetMux"> | ||
<a:IPPrefix>10.0.0.100/24</a:IPPrefix> | ||
</ManagementAddress> | ||
<ManagementAddressV6 xmlns:a="Microsoft.Search.Autopilot.NetMux"> | ||
<a:IPPrefix>FC00:1::32/64</a:IPPrefix> | ||
</ManagementAddressV6> | ||
</Device> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you create another test data with no
ManagementAddress
node at all?