To configure use gRPC tunnel, perform the following steps:
*(ex)[/configure system]
grpc-tunnel {
destination-group "ba-server" {
allow-unsecure-connection
destination 1.1.1.1 port 33333 {
router-instance "management"
}
}
tunnel “test” {
admin-state enable
destination-group “ba-server”
target-name { node-name}
handler “my-grpc” {
admin-state enable
target-type { grpc-server }
port 57400
}
handler “ssh” {
admin-state enable
target-type { ssh-server }
port 22
}
}
}
grpc {
admin-state enable
allow-unsecure-connection
gnmi {
admin-state enable
}
}
*A:cses-V23>config>system#
grpc-tunnel {
destination-group "ba-server" create {
allow-unsecure-connection
destination 1.1.1.1 port 33333 create {
router-instance "management"
}
}
tunnel “test” create{
destination-group “ba-server”
target-name { node-name}
no shutdown
handler “my-grpc” create{
target-type { grpc-server }
port 57400
no shutdown
}
handler “ssh” create{
target-type { ssh-server }
port 22
no shutdown
}
}
}
grpc {
allow-unsecure-connection
no shutdown
gnmi {
no shutdown
}
}