Skip to content
Snippets Groups Projects
Commit 4626f567 authored by Fabian Seidl's avatar Fabian Seidl Committed by Malte Bauch
Browse files

renamed GetAllCore

parent d5ed0b7a
No related branches found
No related tags found
1 merge request!468Resolve "PND related operations via NBI are located in CoreServer"
......@@ -23,7 +23,7 @@ func init() {
// Init initialises the CLI client.
func Init(ctx context.Context, addr string) error {
resp, err := GetAllCore(ctx, addr)
resp, err := GetAllPnds(ctx, addr)
if err != nil {
return err
}
......@@ -39,15 +39,15 @@ func Init(ctx context.Context, addr string) error {
// GetIds requests all UUID information from the controller.
func GetIds(ctx context.Context, addr string) ([]*ppb.PrincipalNetworkDomain, error) {
resp, err := GetAllCore(ctx, addr)
resp, err := GetAllPnds(ctx, addr)
if err != nil {
return nil, err
}
return resp.Pnd, nil
}
// GetAllCore requests all PNDs.
func GetAllCore(ctx context.Context, addr string) (*ppb.GetPndListResponse, error) {
// GetAllPnds requests all PNDs.
func GetAllPnds(ctx context.Context, addr string) (*ppb.GetPndListResponse, error) {
pndClient, err := nbi.PndClient(addr, dialOptions...)
if err != nil {
return nil, err
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment