-
Notifications
You must be signed in to change notification settings - Fork 529
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
[intfsorch]:add support to change rif mac address #814
Conversation
pull from origin
Signed-off-by: shine.chen <shine.chen@nephosinc.com>
b08bf36
to
7796b10
Compare
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.
"mac_addr" is not a field currently in the INTF_TABLE/INTERFACE_TABLE. This needs to be defined in the schema and also require corresponding change in interface manager
need virtual switch test. |
@prsunny , I assume this can only be on rif without ip address. We can not set mac address for interface entry with IP address since we only create one rif for all ip addresses on that rif? |
In mclag, the ip address of mclag enabled portchannel of two peers must be the same, thus the mac address of rifs also must be the same. |
'mac_addr' is set as a field of INTF_TABLE in APP_DB currently. It is set by iccpd through mclagsyncd. This field may also be set as a field of INTERFACE_TABLE in CFG_DB and processed by intfmgrd? Thanks. |
sure, we will add it soon |
@lguohan Can you give us example or URL how to connect virtual switch test to specific PR |
Signed-off-by: leo.li <leo.li@nephosinc.com>
@lguohan even for the interface associated with the ip address we still can/need to change its src-mac. |
@prsunny Per our discussion on VRF, src-mac attribute should be put on {INTERFACE:Ethernetx} entry. I suggest we merge this PR to VRF code. How about your opinion? |
@shine4chen , thanks for adding vs test, but the added two tests are failing, can you investigate the failure. |
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.
please check the comments.
one more question, will you support remove the source MAC address once it is set?
Signed-off-by: leo.li <leo.li@nephosinc.com>
The vstest has been updated, please review. Thanks! |
Signed-off-by: shine.chen <shine.chen@nephosinc.com>
Signed-off-by: shine.chen <shine.chen@nephosinc.com>
@shine4chen , yes I agree. I think you've made the changes based on this assumption currently correct?. If so, the change must be in |
Signed-off-by: leo.li <leo.li@nephosinc.com>
|
Signed-off-by: shine.chen <shine.chen@nephosinc.com>
…swss into rif-change-mac
retest this please |
1 similar comment
retest this please |
retest this please |
2 similar comments
retest this please |
retest this please |
39e087f
to
7143b94
Compare
Signed-off-by: shine.chen <shine.chen@mediatek.com>
7143b94
to
eff6af9
Compare
retest this please |
2 similar comments
retest this please |
retest this please |
7283a4c
What I did
add support to change rif mac address
Why I did it
some apps such as mclag or vrrp need to change rif mac address
How I verified it
test it on nephos lab
Details if related