GetAssociationInfo returns parsed normalized variables if present
()
| 361 | |
| 362 | // GetAssociationInfo returns parsed normalized variables if present |
| 363 | func (n NTPControlMsg) GetAssociationInfo() (map[string]string, error) { |
| 364 | if n.GetOperation() != OpReadVariables { |
| 365 | return nil, fmt.Errorf("no variables supported for operation=%d", n.GetOperation()) |
| 366 | } |
| 367 | data, err := NormalizeData(n.Data) |
| 368 | if err != nil { |
| 369 | return nil, err |
| 370 | } |
| 371 | return data, nil |
| 372 | } |