Skip to content
Snippets Groups Projects

Missing device name changes

Merged Fabian Seidl requested to merge fs-additional-device-name-change into develop
5 files
+ 58
58
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -35,7 +35,7 @@ func (e *AlreadyExistsError) Error() string {
@@ -35,7 +35,7 @@ func (e *AlreadyExistsError) Error() string {
// InvalidUUIDError implements the Error interface and is called if a UUID is not valid.
// InvalidUUIDError implements the Error interface and is called if a UUID is not valid.
type InvalidUUIDError struct {
type InvalidUUIDError struct {
DeviceName string
NetworkElementName string
}
}
func (e *InvalidUUIDError) Error() string {
func (e *InvalidUUIDError) Error() string {
@@ -255,24 +255,24 @@ func (e AMQPMessageFailError) Error() string {
@@ -255,24 +255,24 @@ func (e AMQPMessageFailError) Error() string {
// SubscribeResponseError implements the Error interface and is called if there is an issue during a ongoing
// SubscribeResponseError implements the Error interface and is called if there is an issue during a ongoing
// gNMI Subscription.
// gNMI Subscription.
type SubscribeResponseError struct {
type SubscribeResponseError struct {
PndID string
PndID string
DeviceID string
NetworkElementID string
DeviceName string
NetworkElementName string
Err string
Err string
}
}
func (e SubscribeResponseError) Error() string {
func (e SubscribeResponseError) Error() string {
return fmt.Sprintf("Subscribe failed, PndID: %s, DeviceID: %s, DeviceName: %s, Internal error: %s", e.PndID, e.DeviceID, e.DeviceName, e.Err)
return fmt.Sprintf("Subscribe failed, PndID: %s, NetworkElementID: %s, NetworkElementName: %s, Internal error: %s", e.PndID, e.NetworkElementID, e.NetworkElementName, e.Err)
}
}
// SubscribeSyncResponseError implements the Error interface and is called if there is an issue syncing a
// SubscribeSyncResponseError implements the Error interface and is called if there is an issue syncing a
// gNMI Subscription.
// gNMI Subscription.
type SubscribeSyncResponseError struct {
type SubscribeSyncResponseError struct {
PndID string
PndID string
DeviceID string
NetworkElementID string
DeviceName string
NetworkElementName string
}
}
func (e SubscribeSyncResponseError) Error() string {
func (e SubscribeSyncResponseError) Error() string {
return fmt.Sprintf("Sync failed, PndID: %s, DeviceID: %s, DeviceName: %s", e.PndID, e.DeviceID, e.DeviceName)
return fmt.Sprintf("Sync failed, PndID: %s, NetworkElementID: %s, NetworkElementName: %s", e.PndID, e.NetworkElementID, e.NetworkElementName)
}
}
Loading