Skip to content
Snippets Groups Projects

Northbound Interface

Merged Ghost User requested to merge grpc-nbi into develop
5 files
+ 36
27
Compare changes
  • Side-by-side
  • Inline
Files
5
+ 2
2
@@ -168,7 +168,7 @@ func commitConfirm(addr, pnd string, changes []*ppb.SetChange) (*ppb.SetResponse
// AddDevice adds a new device to the controller. The device name is optional.
// If no name is provided a name will be generated upon device creation.
func AddDevice(addr, username, password, sbi, pnd, deviceAddress, deviceName string) error {
func AddDevice(addr, username, password, pnd, deviceAddress, deviceName string, sbi spb.Type) error {
pndClient, err := nbi.PndClient(addr, grpcWithInsecure)
if err != nil {
return err
@@ -180,7 +180,7 @@ func AddDevice(addr, username, password, sbi, pnd, deviceAddress, deviceName str
{
Address: deviceAddress,
Sbi: &spb.SouthboundInterface{
Type: spb.Type_OPENCONFIG,
Type: sbi,
},
DeviceName: deviceName,
TransportOption: &tpb.TransportOption{
Loading