Port Breakout

27 views
Skip to first unread message

Mithun Kumar

unread,
Jan 17, 2023, 4:07:22 AM1/17/23
to sonicproject
Hello All,

I am trying port breakout with a build image. Whenever I try to configure breakout to a particular port I am facing this issue,

Error:
<class 'TypeError'>
expected str, bytes or os.PathLike object, not NoneType
Aborted!

# sudo config interface breakout Ethernet64 '4x10G' -y
Traceback (most recent call last):
  File "/usr/local/bin/config", line 8, in <module>
    sys.exit(config())
  File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/config/main.py", line 3992, in breakout
    if not os.path.isfile(breakout_cfg_file) or not breakout_cfg_file.endswith('.json'):
  File "/usr/lib/python3.9/genericpath.py", line 30, in isfile
    st = os.stat(path)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

Can someone suggest a solution to overcome this issue.

Thanks & Regards,
Mithun Kumar
Reply all
Reply to author
Forward
0 new messages