Skip to content

[intfmgr]: Support configuring IPs for all regular interfaces#544

Merged
stcheng merged 1 commit intosonic-net:masterfrom
stcheng:intfmgr
Aug 13, 2018
Merged

[intfmgr]: Support configuring IPs for all regular interfaces#544
stcheng merged 1 commit intosonic-net:masterfrom
stcheng:intfmgr

Conversation

@stcheng
Copy link
Contributor

@stcheng stcheng commented Jul 24, 2018

Enable configuring IPv4 and IPv6 addresses on regular ports
Add tests to test IPv4 add/remove to regular ports

Signed-off-by: Shu0T1an ChenG [email protected]

NOTE:

  1. LAG IP configuration test will be added later once the support of LAG creation/removal feature is added.
  2. IPv6 tests will be added later once the docker vs supports IPv6 after some docker configuration changes.

@stcheng stcheng changed the title [intfmgr]: Support configuring all interfaces including regular ports IPs [intfmgr]: Support configuring IPs for all regular interfaces Jul 24, 2018
Copy link
Contributor

@jipanyang jipanyang left a 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?

@stcheng
Copy link
Contributor Author

stcheng commented Jul 24, 2018

@jipanyang This commit is to address the intfmgrd so that it supports the configurations via the database. I'll then remove the /etc/network/interfaces file in the buildimage repository and add support to configure all the IPs in the configuration database at first.

@stcheng stcheng self-assigned this Jul 24, 2018
@jipanyang
Copy link
Contributor

@stcheng Thanks for the explanation, change looks good to me.

Copy link
Contributor

@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.

:shipit:

@lguohan
Copy link
Contributor

lguohan commented Jul 26, 2018

do not merge until to have the buildimage pr ready to merge.

}
else
{
cmd <<IP_CMD << " -6 address " << opCmd << " " << ipPrefixStr << " dev " << alias;;
Copy link
Contributor

Choose a reason for hiding this comment

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

  • Add space between << and IP_CMD
  • Remove extra trailing semicolon.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

resolved

cmd << IP_CMD << " address " << opCmd << " " << ipPrefixStr << " dev " << alias;;
if (ipv4)
{
cmd << IP_CMD << " address " << opCmd << " " << ipPrefixStr << " dev " << alias;;
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove extra trailing semicolon.

Copy link
Contributor Author

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 <[email protected]>
@stcheng stcheng merged commit c9ed2c4 into sonic-net:master Aug 13, 2018
@stcheng stcheng deleted the intfmgr branch August 13, 2018 17:29
oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-swss that referenced this pull request Mar 1, 2023
Janetxxx pushed a commit to Janetxxx/sonic-swss that referenced this pull request Nov 10, 2025
…net#544)

Enable configuring IPv4 and IPv6 addresses on regular ports
Add tests to test IPv4 add/remove to regular ports

Signed-off-by: Shu0T1an ChenG <[email protected]>
jianyuewu pushed a commit to jianyuewu/sonic-swss that referenced this pull request Dec 24, 2025
…-net#544)

Change to show CPP code full coverage, make the coverage rate the same as it displayed in the coverage page.
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.

4 participants