Question about how mgmt-framework config BGP on FRR

151 views
Skip to first unread message

kun cao

unread,
Jun 24, 2020, 4:52:16 AM6/24/20
to sonic-mgmt-workgroup
Hello,

I try to uses the mgmt-framework to configure BGP on FRR. For BGP have no schema on CONFIG_DB.

const
sock_addr = "/etc/sonic/frr/bgpd_client_sock"
...
log.Infof("Going to connect UDS socket call to reach BGP container ==> \"%s\"", vtysh_cmd)
conn, err := net.DialUnix("unix", nil, &net.UnixAddr{sock_addr, "unix"})
if err != nil {
log.Infof("Failed to connect proxy server: %s\n", err)
return nil, oper_err
}

The rest_server golang try to connect to UNIX socket with address  "/etc/sonic/frr/bgpd_client_sock". But the FRR does not listen this socket address and the mgmt-framework and FRR exist on different docker. How can the mgmt framework to connect to FRR's socket? Is there any patches for this Implementation?

Thanks!

KUN

Ben Gale

unread,
Jun 24, 2020, 6:47:13 AM6/24/20
to kun cao, sonic-mgmt-workgroup
Kun,

Support for this is coming - see this HLD - https://github.com/Azure/SONiC/pull/544. The code should get PR'd in the next few weeks (as discussed on yesterday's Community call).

Thanks,

Ben

--
You received this message because you are subscribed to the Google Groups "sonic-mgmt-workgroup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonic-mgmt-workg...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonic-mgmt-workgroup/7569ba51-801d-4026-be1b-459cdea69c84o%40googlegroups.com.

kun cao

unread,
Jul 2, 2020, 9:27:03 PM7/2/20
to sonic-mgmt-workgroup
hi, Ben:
Will the code of mgmt-framework 2.0 be merged into the 202006 release?

Thanks,
Kun

Ben Gale

unread,
Jul 6, 2020, 10:29:15 AM7/6/20
to kun cao, sonic-mgmt-workgroup
Right now the PR's are in review against SONiC master - I don't think these will make the 202006 release (which was supposed to branch over the last weekend).

Reply all
Reply to author
Forward
0 new messages