reference icon indicating copy to clipboard operation
reference copied to clipboard

Clarification request: GET request and response between controller and target (for example BGP neighbors)

Open saramach opened this issue 7 years ago • 0 comments

Hi all-

Could someone please confirm if my understanding is right?

ex: Let's say I want to get all the BGP neighbors CONFIG from the target.

GET REQUEST:

path < elem < name "bgp"

elem < name "neighbors"

Data_type: CONFIG Encoding: PROTO

The assumption is, there are multiple BGP neighbors.

How would the GET response be? Will it be each neighbor in a single Update message, like this:

GET RESPONSE: { Notification : { Update1: { Path: bgp/neighbors/neighbor [neighbor-address = address1] Val : Proto encoding of "bgp/neighbors/neighbor/address1/config } Update2: { Path: bgp/neighbors/neighbor [neighbor-address = address2] Val : Proto encoding of "bgp/neighbors/neighbor/address2/config } Update3: { Path: bgp/neighbors/neighbor [neighbor-address = address3] Val : Proto encoding of "bgp/neighbors/neighbor/address3/config } .... .... }

--OR-- There will be a single Update message with a Val field which has all the BGP neighbors in protobuf format? GET RESPONSE: { Notification : { Update1: { Path: bgp/neighbors Val : Proto encoding of all BGP Neighbors } }

Thanks!

saramach avatar Oct 21 '18 01:10 saramach