You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
root@sonic-testing:/home/admin# config mirror-session add 10.130.15.2 10.256.8.9 32 64
Traceback (most recent call last):
File "/usr/bin/config", line 9, in <module>
load_entry_point('sonic-utilities==1.2', 'console_scripts', 'config')()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 561, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2631, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2291, in load
return self.resolve()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2297, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/lib/python2.7/dist-packages/config/main.py", line 945, in <module>
@cli.group()
NameError: name 'cli' is not defined
Issue is not with mirroring configuration, it is with config command. I tried to fetch the help after "config" keyword in cli by pressing tab. Observed the same issue.
root@sonic-testing:/home/admin# config Traceback (most recent call last):
File "/usr/bin/config", line 9, in <module>
load_entry_point('sonic-utilities==1.2', 'console_scripts', 'config')()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 561, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2631, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2291, in load
return self.resolve()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2297, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/lib/python2.7/dist-packages/config/main.py", line 945, in <module>
@cli.group()
NameError: name 'cli' is not defined
.
Traceback (most recent call last):
File "/usr/bin/config", line 9, in <module>
load_entry_point('sonic-utilities==1.2', 'console_scripts', 'config')()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 561, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2631, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2291, in load
return self.resolve()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2297, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/lib/python2.7/dist-packages/config/main.py", line 945, in <module>
@cli.group()
NameError: name 'cli' is not defined
Verified the same with one of the old builds (SONiC-OS-HEAD.757-2897686), it is working fine with no issues.
Working scenario in old builds (SONiC-OS-HEAD.757-2897686) :
0.10.30.5 32 64ing:/home/admin# config mirror_session add everflow1 10.10.20.5 1
root@sonic-testing:/home/admin#
root@sonic-testing:/home/admin#
root@sonic-testing:/home/admin# show mirror session everflow1
Name Status SRC IP DST IP GRE DSCP TTL Queue
everflow1 error 10.10.20.5 10.10.30.5 32 64
root@sonic-testing:/home/admin#
root@sonic-testing:/home/admin#
root@sonic-testing:/home/admin#
root@sonic-testing:/home/admin# show version
SONiC Software Version: SONiC.HEAD.757-2897686
Distribution: Debian 9.5
Kernel: 4.9.0-7-amd64
Build commit: 2897686
Build date: Tue Oct 30 11:22:34 UTC 2018
Built by: johnar@jenkins-worker-3
Expected Result:
config command should be successful when we try to execute. No errors should be shown.
Version:
root@sonic-testing:/home/admin# show version
SONiC Software Version: SONiC.HEAD.762-1103552
Distribution: Debian 9.5
Kernel: 4.9.0-7-amd64
Build commit: 1103552
Build date: Sun Nov 4 09:26:56 UTC 2018
Built by: johnar@jenkins-worker-3
The text was updated successfully, but these errors were encountered:
Summary:
NameError: name 'cli' is not defined when we use config command with SONiC.HEAD.762-1103552 version build
Description:
I tried to configure mirror session using below set of command with latest build SONiC.HEAD.762-1103552.
But observer below error
Issue is not with mirroring configuration, it is with config command. I tried to fetch the help after "config" keyword in cli by pressing tab. Observed the same issue.
Verified the same with one of the old builds (SONiC-OS-HEAD.757-2897686), it is working fine with no issues.
Working scenario in old builds (SONiC-OS-HEAD.757-2897686) :
0.10.30.5 32 64ing:/home/admin# config mirror_session add everflow1 10.10.20.5 1
root@sonic-testing:/home/admin#
root@sonic-testing:/home/admin#
root@sonic-testing:/home/admin# show mirror session everflow1
Name Status SRC IP DST IP GRE DSCP TTL Queue
everflow1 error 10.10.20.5 10.10.30.5 32 64
root@sonic-testing:/home/admin#
root@sonic-testing:/home/admin#
root@sonic-testing:/home/admin#
root@sonic-testing:/home/admin# show version
SONiC Software Version: SONiC.HEAD.757-2897686
Distribution: Debian 9.5
Kernel: 4.9.0-7-amd64
Build commit: 2897686
Build date: Tue Oct 30 11:22:34 UTC 2018
Built by: johnar@jenkins-worker-3
Expected Result:
config command should be successful when we try to execute. No errors should be shown.
Version:
root@sonic-testing:/home/admin# show version
SONiC Software Version: SONiC.HEAD.762-1103552
Distribution: Debian 9.5
Kernel: 4.9.0-7-amd64
Build commit: 1103552
Build date: Sun Nov 4 09:26:56 UTC 2018
Built by: johnar@jenkins-worker-3
The text was updated successfully, but these errors were encountered: