-
Notifications
You must be signed in to change notification settings - Fork 547
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
[intfmgr]: Support configuring IPs for all regular interfaces #544
Conversation
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.
Unlike that for VLAN interface, interface.j2 still has address configuration for Ethernet and LAG interfaces, how to handle the possible conflict? Should only one source of configuration be available?
@jipanyang This commit is to address the intfmgrd so that it supports the configurations via the database. I'll then remove the |
@stcheng Thanks for the explanation, change looks good to me. |
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.
do not merge until to have the buildimage pr ready to merge. |
cfgmgr/intfmgr.cpp
Outdated
} | ||
else | ||
{ | ||
cmd <<IP_CMD << " -6 address " << opCmd << " " << ipPrefixStr << " dev " << alias;; |
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.
- Add space between
<<
andIP_CMD
- Remove extra trailing semicolon.
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.
resolved
cfgmgr/intfmgr.cpp
Outdated
cmd << IP_CMD << " address " << opCmd << " " << ipPrefixStr << " dev " << alias;; | ||
if (ipv4) | ||
{ | ||
cmd << IP_CMD << " address " << opCmd << " " << ipPrefixStr << " dev " << alias;; |
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.
Remove extra trailing semicolon.
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.
resolved
Enable configuring IPv4 and IPv6 addresses on regular ports Add tests to test IPv4 add/remove to regular ports Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
Enable configuring IPv4 and IPv6 addresses on regular ports
Add tests to test IPv4 add/remove to regular ports
Signed-off-by: Shu0T1an ChenG shuche@microsoft.com
NOTE: