blob: 45ddd153bb04649e3d533705b07b2c2613e7db5d [file] [log] [blame]
Chip Boling610117d2021-09-09 11:24:34 -05001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
3 * Copyright 2020-present Open Networking Foundation
4
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8
9 * http://www.apache.org/licenses/LICENSE-2.0
10
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18package meframe
19
20//func TestRequestFrame(m *me.ManagedEntity, opt options) (gopacket.SerializableLayer, error) {
21// if opt.frameFormat == ExtendedIdent {
22// return nil, errors.New("Extended message set for this message type is not supported")
23// }
24// mask, err := checkAttributeMask(m, opt.attributeMask)
25// if err != nil {
26// return nil, err
27// }
28// // Common for all MEs
29// meLayer := &TestRequest{
30// MeBasePacket: MeBasePacket{
31// EntityClass: m.GetClassID(),
32// EntityInstance: m.GetEntityID(),
33// Extended: opt.frameFormat == ExtendedIdent,
34// },
35// }
36// // Get payload space available
37// maxPayload := maxPacketAvailable(m, opt)
38//
39// // TODO: Lots of work to do
40//
41// fmt.Println(mask, maxPayload)
42// return meLayer, errors.New("todo: Not implemented")
43//}
44
45//func TestResponseFrame(m *me.ManagedEntity, opt options) (gopacket.SerializableLayer, error) {
46// if opt.frameFormat == ExtendedIdent {
47// return nil, errors.New("Extended message set for this message type is not supported")
48// }
49// mask, err := checkAttributeMask(m, opt.attributeMask)
50// if err != nil {
51// return nil, err
52// }
53// // Common for all MEs
54// meLayer := &TestResponse{
55// MeBasePacket: MeBasePacket{
56// EntityClass: m.GetClassID(),
57// EntityInstance: m.GetEntityID(),
58// Extended: opt.frameFormat == ExtendedIdent,
59// },
60// }
61// // Get payload space available
62// maxPayload := maxPacketAvailable(m, opt)
63//
64// // TODO: Lots of work to do
65//
66// fmt.Println(mask, maxPayload)
67// return meLayer, errors.New("todo: Not implemented")
68//}
69
70//func TestResultFrame(m *me.ManagedEntity, opt options) (gopacket.SerializableLayer, error) {
71// if opt.frameFormat == ExtendedIdent {
72// return nil, errors.New("Extended message set for this message type is not supported")
73// }
74// mask, err := checkAttributeMask(m, opt.attributeMask)
75// if err != nil {
76// return nil, err
77// }
78// // Common for all MEs
79// meLayer := &TestResultNotification{
80// MeBasePacket: MeBasePacket{
81// EntityClass: m.GetClassID(),
82// EntityInstance: m.GetEntityID(),
83// Extended: opt.frameFormat == ExtendedIdent,
84// },
85// }
86// // Get payload space available
87// maxPayload := maxPacketAvailable(m, opt)
88//
89// // TODO: Lots of work to do
90//
91// fmt.Println(mask, maxPayload)
92// return meLayer, errors.New("todo: Not implemented")
93//}