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

IP and IPV6 address assignment fields displaying "not-set" even though ip is configured in sonic-cli #95

Closed
sachin-brm opened this issue Sep 10, 2019 · 9 comments
Assignees
Labels
Fixed Works fine.

Comments

@sachin-brm
Copy link
Collaborator

Problem Description/Summary :

IP and IPV6 address assignment fields displaying "not-set" even though ip is configured in sonic-cli

Expected Behavior :

Mode of IPV4 address assignment and Mode of IPV6 address assignment fields should display as manual when IP address configured on the interface

Topology :

DUT

Steps to Repro :

  1. Go to sonic-cli and configure IP and IPV6 addresses on the interface
  2. Issue the command "show interface Ethernet" for the configured IP address interface.
  3. Observing that "Mode of IPV4 address assignment and Mode of IPV6 address assignment" displaying as not-set instead of manual

sonic(conf-if-Ethernet0)# ip address 192.168.1.1/24
Success
sonic(conf-if-Ethernet0)# exit
sonic(config)# exit
sonic# show interface Ethernet 0
Ethernet0 is up, line protocol is up
Hardware is Eth
Interface index is 0
Mode of IPV4 address assignment: not-set
Mode of IPV6 address assignment: not-set
IP MTU 9100 bytes
LineSpeed , Auto-negotiation off
Input statistics:
30 packets, 6904 octets
30 Multicasts, 0 Broadcasts, 0 Unicasts
0 error, 30 discarded
Output statistics:
32 packets, 7172 octets
32 Multicasts, 0 Broadcasts, 0 Unicasts
0 error, 0 discarded
sonic#
sonic#
sonic#
sonic#
sonic#
sonic#
sonic#
sonic# show interface Ethernet 0
Ethernet0 is up, line protocol is up
Hardware is Eth
Interface index is 0
Mode of IPV4 address assignment: not-set
Mode of IPV6 address assignment: not-set
IP MTU 9100 bytes
LineSpeed , Auto-negotiation off
Input statistics:
30 packets, 6904 octets
30 Multicasts, 0 Broadcasts, 0 Unicasts
0 error, 30 discarded
Output statistics:
32 packets, 7172 octets
32 Multicasts, 0 Broadcasts, 0 Unicasts
0 error, 0 discarded
sonic#
sonic#
sonic#
sonic#
sonic# configure terminal
sonic(config)# interface Ethernet 68
sonic(conf-if-Ethernet68)#
sonic(conf-if-Ethernet68)# ipv6 address 1001::1/64
Success
sonic(conf-if-Ethernet68)# exit
sonic(config)# exit
sonic# show
interface ip lldp platform system
sonic# show interface Ethernet 68
Ethernet68 is up, line protocol is up
Hardware is Eth
Interface index is 17
Mode of IPV4 address assignment: not-set
Mode of IPV6 address assignment: not-set
IP MTU 9100 bytes
LineSpeed 10GB, Auto-negotiation off
Input statistics:
0 packets, 0 octets
0 Multicasts, 0 Broadcasts, 0 Unicasts
0 error, 0 discarded
Output statistics:
33 packets, 7409 octets
33 Multicasts, 0 Broadcasts, 0 Unicasts
0 error, 0 discarded
sonic#

Reproducibility ( Ex:- 3 out of 3 attempts ) Please also update "Reproducible" field :

Every time

@sachin-brm sachin-brm assigned sachin-brm and jeff-yin and unassigned sachin-brm Sep 10, 2019
@sachin-brm sachin-brm added the bug Something isn't working label Sep 10, 2019
@jeff-yin
Copy link
Collaborator

Issue is related to #86, for which we're waiting on a fix.

@justinejose91
Copy link

This issue is exactly same as #86 . Root cause is the same.

@sachin-brm
Copy link
Collaborator Author

Root cause may be same as #86, but, CLI is returning "success" even if CVL incorrectly throws error due to #86. @justinejose91 can you check?

@justinejose91
Copy link

Yes @sachin-brm CLI returns success, because currently I am writing INTERFACE|Ethernet32|, with which CVL returns success. This used to be working when interface comes up as L3. I am waiting for the fix from CVL team, so that I can push my code. If fix is not possible, I can add the error check.

@justinejose91
Copy link

I have the code in arlo_bug_fix branch, if you want me to push the code, let me know. If you configure the IP address, it will give Transaction Failure.
sonic(conf-if-Ethernet24)# ip address 24.5.3.2/24
%Error: Transaction Failure
sonic(conf-if-Ethernet24)# ipv6 address d::e/64
%Error: Transaction Failure

@sachin-brm
Copy link
Collaborator Author

sachin-brm commented Sep 12, 2019 via email

@justinejose91
Copy link

@dutta-partha dutta-partha added the related Issue is related to other label Sep 13, 2019
@dutta-partha
Copy link
Collaborator

CVL fix for IP configuration is available in master branch (PR #118). @justinejose91 Can you please check this.

@dutta-partha dutta-partha added the Fix available Fix available in master branch. label Sep 13, 2019
@justinejose91
Copy link

Works fine.

@justinejose91 justinejose91 added Fixed Works fine. and removed Fix available Fix available in master branch. bug Something isn't working related Issue is related to other labels Sep 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed Works fine.
Projects
None yet
Development

No branches or pull requests

5 participants