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
Describe the bug
I use following code to try delete link,but it shows me no taptun which is created when using emane.
# 获取要删除的节点信息和link信息
destoried_node_id = node_id
#emane_net = core.get_node(session_id, cluster_id + 128)
wlan0_net_id = 3
node_ip4 = f"10.0.{cluster_id}.{node_id-8*(cluster_id-1)}"
delete_iface0 = Interface(id=1, name="eth0", ip4=node_ip4, ip4_mask=24)
delete_link0 = Link(node1_id=destoried_node_id, node2_id=wlan0_net_id, iface1=delete_iface0)
print("删除簇内连接")
if core.delete_link(session_id, delete_link0):
print("簇内连接已删除 success")
else:
print("簇内连接删除失败 fail")
The error shows:
Traceback (most recent call last):
File "/home/gjx/Desktop/SCEN/tool_functions.py", line 89, in
main()
File "/home/gjx/Desktop/SCEN/tool_functions.py", line 83, in main
destroy_node(1,1)
File "/home/gjx/Desktop/SCEN/tool_functions.py", line 29, in destroy_node
if core.delete_link(session_id, delete_link0):
File "/home/gjx/Documents/core/daemon/core/api/grpc/client.py", line 645, in delete_link
response = self.stub.DeleteLink(request)
File "/opt/core/venv/lib/python3.10/site-packages/grpc/_channel.py", line 1030, in call
return _end_unary_response_blocking(state, call, False, None)
File "/opt/core/venv/lib/python3.10/site-packages/grpc/_channel.py", line 910, in _end_unary_response_blocking
raise _InactiveRpcError(state) # pytype: disable=not-instantiable
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNKNOWN
details = "Exception calling application: <core.emane.nodes.TunTap object at 0x7caea045d360>"
debug_error_string = "UNKNOWN:Error received from peer {created_time:"2024-05-23T12:53:40.461970024+08:00", grpc_status:2, grpc_message:"Exception calling application: <core.emane.nodes.TunTap object at 0x7caea045d360>"}"
Screenshots
This is my screenshot of Session:
Desktop (please complete the following information):
OS: [e.g. Ubuntu 22.04]
CORE Version [e.g. 9.0.3]
EMANE Version [e.g. 1.5.1]
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
I use following code to try delete link,but it shows me no taptun which is created when using emane.
# 获取要删除的节点信息和link信息
destoried_node_id = node_id
#emane_net = core.get_node(session_id, cluster_id + 128)
wlan0_net_id = 3
node_ip4 = f"10.0.{cluster_id}.{node_id-8*(cluster_id-1)}"
delete_iface0 = Interface(id=1, name="eth0", ip4=node_ip4, ip4_mask=24)
delete_link0 = Link(node1_id=destoried_node_id, node2_id=wlan0_net_id, iface1=delete_iface0)
The error shows:
Traceback (most recent call last):
File "/home/gjx/Desktop/SCEN/tool_functions.py", line 89, in
main()
File "/home/gjx/Desktop/SCEN/tool_functions.py", line 83, in main
destroy_node(1,1)
File "/home/gjx/Desktop/SCEN/tool_functions.py", line 29, in destroy_node
if core.delete_link(session_id, delete_link0):
File "/home/gjx/Documents/core/daemon/core/api/grpc/client.py", line 645, in delete_link
response = self.stub.DeleteLink(request)
File "/opt/core/venv/lib/python3.10/site-packages/grpc/_channel.py", line 1030, in call
return _end_unary_response_blocking(state, call, False, None)
File "/opt/core/venv/lib/python3.10/site-packages/grpc/_channel.py", line 910, in _end_unary_response_blocking
raise _InactiveRpcError(state) # pytype: disable=not-instantiable
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNKNOWN
details = "Exception calling application: <core.emane.nodes.TunTap object at 0x7caea045d360>"
debug_error_string = "UNKNOWN:Error received from peer {created_time:"2024-05-23T12:53:40.461970024+08:00", grpc_status:2, grpc_message:"Exception calling application: <core.emane.nodes.TunTap object at 0x7caea045d360>"}"
Screenshots
This is my screenshot of Session:
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: