Skip to content

Commit 15063cb

Browse files
authored
Add ygot.PruneConfigFalse(*yang.Entry, GoStruct) for pruning "config false" values. (#600)
* Add ygot.PruneConfigFalse(*yang.Entry, GoStruct) for pruning state values.
1 parent 13a6771 commit 15063cb

14 files changed

+84134
-73343
lines changed

exampleoc/oc.go

Lines changed: 39511 additions & 36520 deletions
Large diffs are not rendered by default.

exampleoc/ocpath.go

Lines changed: 3274 additions & 74 deletions
Large diffs are not rendered by default.

exampleoc/opstateoc/oc.go

Lines changed: 40201 additions & 36545 deletions
Large diffs are not rendered by default.

genutil/common.go

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@ import (
3030
const (
3131
// GoDefaultYgotImportPath is the default import path used for the ygot library
3232
// in the generated code.
33-
GoDefaultYgotImportPath string = "github.com/openconfig/ygot/ygot"
33+
GoDefaultYgotImportPath = "github.com/openconfig/ygot/ygot"
3434
// GoDefaultYtypesImportPath is the default import path used for the ytypes library
3535
// in the generated code.
36-
GoDefaultYtypesImportPath string = "github.com/openconfig/ygot/ytypes"
36+
GoDefaultYtypesImportPath = "github.com/openconfig/ygot/ytypes"
3737
// GoDefaultGoyangImportPath is the default path for the goyang/pkg/yang library that
3838
// is used in the generated code.
39-
GoDefaultGoyangImportPath string = "github.com/openconfig/goyang/pkg/yang"
39+
GoDefaultGoyangImportPath = "github.com/openconfig/goyang/pkg/yang"
4040
// GoDefaultGNMIImportPath is the default import path that is used for the gNMI generated
4141
// Go protobuf code in the generated output.
42-
GoDefaultGNMIImportPath string = "github.com/openconfig/gnmi/proto/gnmi"
42+
GoDefaultGNMIImportPath = "github.com/openconfig/gnmi/proto/gnmi"
4343
)
4444

4545
// WriteIfNotEmpty writes the string s to b if it has a non-zero length.
@@ -374,6 +374,10 @@ func FindAllChildren(e *yang.Entry, compBehaviour CompressBehaviour) (map[string
374374
// prioritized container, we must put the entry in the shadow list.
375375
if prioNames[n.Name] {
376376
childrenList = shadowChildren
377+
if directChildren[n.Name].Annotation == nil {
378+
directChildren[n.Name].Annotation = map[string]interface{}{}
379+
}
380+
directChildren[n.Name].Annotation[ygot.GoCompressedLeafAnnotation] = struct{}{}
377381
}
378382
errs = addNewChild(childrenList, n.Name, n, errs)
379383
}

ygen/testdata/schema/openconfig-options-compress-fakeroot-schema.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@
8484
}
8585
}
8686
]
87+
},
88+
"Annotation": {
89+
"ygot-oc-compressed-leaf": {}
8790
}
8891
},
8992
"peer-address": {
@@ -123,6 +126,9 @@
123126
]
124127
}
125128
]
129+
},
130+
"Annotation": {
131+
"ygot-oc-compressed-leaf": {}
126132
}
127133
}
128134
},

ygen/testdata/schema/openconfig-options-compress-fakeroot.formatted-txt

Lines changed: 74 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -354,78 +354,80 @@ var (
354354
// contents of a goyang yang.Entry struct, which defines the schema for the
355355
// fields within the struct.
356356
ySchema = []byte{
357-
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5c, 0x5f, 0x6f, 0xda, 0x48,
358-
0x10, 0x7f, 0xe7, 0x53, 0x58, 0xab, 0x7b, 0xbb, 0x10, 0x48, 0x4a, 0x42, 0xe1, 0x8d, 0x24, 0x8d,
359-
0x0e, 0xf5, 0x9a, 0x46, 0x4d, 0xaf, 0x3a, 0xa9, 0xcd, 0x55, 0x1b, 0x3c, 0x38, 0xab, 0x83, 0xb5,
360-
0xb5, 0xbb, 0xbe, 0x2b, 0x3a, 0xf1, 0xdd, 0x4f, 0xc6, 0x7f, 0x12, 0x83, 0x09, 0x9e, 0xdd, 0x85,
361-
0x50, 0xb4, 0x6f, 0xd4, 0xf6, 0xce, 0xce, 0xcc, 0xef, 0x37, 0x9d, 0xf1, 0xec, 0xc4, 0xff, 0x35,
362-
0x3c, 0xcf, 0xf3, 0xc8, 0x0d, 0x9d, 0x02, 0xe9, 0x7b, 0xc4, 0x87, 0x7f, 0xd8, 0x08, 0xc8, 0x51,
363-
0x7a, 0xf5, 0x3d, 0xe3, 0x3e, 0xe9, 0x7b, 0x27, 0xd9, 0x3f, 0x2f, 0x43, 0x3e, 0x66, 0x01, 0xe9,
364-
0x7b, 0xed, 0xec, 0xc2, 0x15, 0x13, 0xa4, 0xef, 0xa5, 0x22, 0x16, 0x17, 0x1e, 0x82, 0xa8, 0x74,
365-
0xa1, 0x24, 0x3b, 0xb9, 0x79, 0x54, 0xbe, 0x55, 0xde, 0xa0, 0xb8, 0xbc, 0xbc, 0x51, 0x71, 0xe3,
366-
0x56, 0xc0, 0x98, 0xfd, 0x58, 0xd9, 0xa2, 0xb4, 0x4d, 0x38, 0x0a, 0x97, 0xb6, 0x59, 0xdc, 0xbe,
367-
0x0b, 0x63, 0x31, 0x82, 0xca, 0xa5, 0xa9, 0x2a, 0x30, 0xfb, 0x37, 0x14, 0x89, 0x36, 0x24, 0x4a,
368-
0x77, 0x39, 0xaa, 0x7e, 0xf0, 0x37, 0x2a, 0x07, 0x22, 0x88, 0xa7, 0xc0, 0x15, 0xe9, 0x7b, 0x4a,
369-
0xc4, 0xb0, 0xe6, 0xc1, 0x67, 0x4f, 0x2d, 0x94, 0x5a, 0x79, 0x6a, 0x5e, 0xba, 0x32, 0x5f, 0xb2,
370-
0x75, 0xd9, 0xb9, 0xc5, 0x0d, 0x0e, 0x2c, 0x78, 0x7c, 0x08, 0x85, 0x5c, 0x6f, 0x4c, 0xee, 0x8b,
371-
0xa7, 0x47, 0xd7, 0xe8, 0x58, 0x0d, 0xc0, 0x46, 0x20, 0xea, 0x00, 0x52, 0x13, 0x98, 0xba, 0x00,
372-
0xa1, 0x81, 0x42, 0x03, 0x56, 0x1f, 0xb8, 0x6a, 0x00, 0xd7, 0x00, 0xb9, 0x11, 0xd0, 0x15, 0x60,
373-
0x37, 0xfb, 0x60, 0x19, 0xdf, 0x4d, 0x2e, 0x78, 0x19, 0xe6, 0xda, 0x70, 0x63, 0x60, 0x47, 0xc2,
374-
0x8f, 0xa5, 0x81, 0x36, 0x1d, 0xb4, 0x69, 0x81, 0xa7, 0xc7, 0xcb, 0x34, 0xd9, 0x40, 0x97, 0xda,
375-
0xb4, 0x29, 0x1e, 0x1c, 0xe5, 0xe8, 0xd5, 0xf4, 0x5c, 0x0e, 0x4c, 0xb6, 0xae, 0xa6, 0xf5, 0xf5,
376-
0xa8, 0x84, 0xa6, 0x94, 0x0e, 0xb5, 0x34, 0x29, 0xa6, 0x4b, 0x35, 0x63, 0xca, 0x19, 0x53, 0x4f,
377-
0x9f, 0x82, 0xf5, 0xa8, 0x58, 0x93, 0x92, 0x68, 0x6a, 0x16, 0x0b, 0x1e, 0xc3, 0x89, 0xdf, 0x54,
378-
0x6c, 0xaa, 0xe1, 0xf4, 0x1c, 0xe3, 0x27, 0x11, 0x48, 0x9f, 0x65, 0xc4, 0x6d, 0x23, 0x97, 0x61,
379-
0x09, 0x6c, 0x42, 0x64, 0x43, 0x42, 0x9b, 0x12, 0xdb, 0x1a, 0xc1, 0xad, 0x11, 0xdd, 0x9c, 0xf0,
380-
0x38, 0xe2, 0x23, 0x03, 0xa0, 0x50, 0xef, 0xf3, 0x2c, 0x02, 0x33, 0xa4, 0x63, 0xc6, 0xd5, 0x9b,
381-
0x53, 0x1d, 0xb0, 0x33, 0x5e, 0x77, 0x35, 0x96, 0x7e, 0xa2, 0x3c, 0x48, 0x76, 0xff, 0xaa, 0x05,
382-
0x8a, 0x1e, 0xb9, 0x16, 0x1b, 0x7f, 0x60, 0x5c, 0x9b, 0x9d, 0x86, 0x01, 0xbd, 0x22, 0xe6, 0x0b,
383-
0x9d, 0xc4, 0x60, 0x41, 0xce, 0xb5, 0xa0, 0x23, 0xc5, 0x42, 0x7e, 0xc5, 0x02, 0xa6, 0x92, 0xda,
384-
0xbc, 0xad, 0x2d, 0x6f, 0x7e, 0x64, 0xe0, 0x5a, 0xfa, 0x63, 0xef, 0x5c, 0xdb, 0x39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e, 0x27, 0x0d, 0x2b, 0x84, 0x97, 0x23, 0xd7, 0xa2, 0x3c, 0x8b, 0x27, 0x6a, 0x86, 0x34,
408-
0x2e, 0x43, 0x60, 0xe1, 0x14, 0x73, 0xdb, 0x10, 0xd8, 0x3a, 0xd5, 0xdc, 0x2a, 0x16, 0x8d, 0xd7,
409-
0x59, 0xbd, 0xa7, 0x8d, 0x3e, 0x64, 0x05, 0xf6, 0x3b, 0x93, 0x6a, 0xa0, 0x94, 0xd0, 0xab, 0xc2,
410-
0x3e, 0x30, 0xfe, 0x6e, 0x02, 0x49, 0x81, 0x29, 0xf5, 0xd8, 0x97, 0x44, 0xc1, 0x33, 0x09, 0x27,
411-
0x6f, 0x3b, 0x9d, 0xf3, 0x6e, 0xa7, 0xd3, 0xee, 0xbe, 0xe9, 0xb6, 0x7b, 0x67, 0x67, 0x27, 0xe7,
412-
0x3a, 0xc5, 0x09, 0xf9, 0x28, 0x7c, 0x10, 0xe0, 0x5f, 0x24, 0xef, 0x4e, 0x3c, 0x9e, 0x4c, 0xf6,
413-
0xe0, 0x7c, 0xda, 0x8d, 0x85, 0xb9, 0x37, 0x38, 0xf7, 0x06, 0x67, 0xb5, 0x30, 0x73, 0x63, 0x61,
414-
0x6e, 0x2c, 0xcc, 0x76, 0x41, 0xe5, 0xc6, 0xc2, 0x5e, 0xad, 0x70, 0x71, 0x63, 0x61, 0x2e, 0xf9,
415-
0xba, 0xe4, 0xbb, 0xeb, 0xe4, 0xeb, 0xc6, 0xc2, 0x0c, 0xb2, 0x84, 0x1b, 0x0b, 0x73, 0x63, 0x61,
416-
0x8e, 0x90, 0x95, 0x84, 0x74, 0x63, 0x61, 0x3f, 0x45, 0xb7, 0x68, 0x2b, 0x45, 0x97, 0x04, 0x29,
417-
0x59, 0xc8, 0x9b, 0xb8, 0x81, 0x8b, 0xd5, 0xa8, 0x28, 0x89, 0x71, 0x65, 0x97, 0x2b, 0xbb, 0x0e,
418-
0xa6, 0xec, 0x02, 0x1e, 0x4f, 0x41, 0xa4, 0x73, 0x91, 0x06, 0xc5, 0x57, 0x47, 0x63, 0xed, 0x3b,
419-
0x1e, 0x4f, 0x13, 0xe5, 0xe7, 0x6e, 0x7e, 0xb4, 0x6a, 0x7e, 0x34, 0xfd, 0xcf, 0xc6, 0xd6, 0x54,
420-
0x9a, 0xd1, 0x5f, 0xc5, 0xbf, 0x87, 0x19, 0xf2, 0xe5, 0x13, 0xd7, 0xcd, 0xc7, 0x77, 0xef, 0xad,
421-
0x74, 0xeb, 0x71, 0xdd, 0xf9, 0x4d, 0x4e, 0x42, 0x12, 0x44, 0x9b, 0x18, 0xa4, 0xd6, 0x80, 0xa1,
422-
0x88, 0x47, 0x8a, 0x67, 0x31, 0x7e, 0x11, 0x44, 0xdf, 0x6f, 0xf2, 0xd5, 0x0d, 0x3d, 0x9a, 0xe0,
423-
0xbe, 0xbe, 0x51, 0xd3, 0x17, 0x58, 0x1f, 0x54, 0x2b, 0x3f, 0x47, 0x7e, 0xeb, 0x65, 0x83, 0x72,
424-
0xf5, 0x94, 0xaa, 0xfa, 0xea, 0xcd, 0x8a, 0xd7, 0xcb, 0xfa, 0x3e, 0x69, 0x95, 0xfe, 0xca, 0xf4,
425-
0x5a, 0xa7, 0x0f, 0x61, 0xf2, 0x32, 0x9c, 0x46, 0x49, 0xb0, 0x81, 0x7f, 0xb7, 0xd0, 0x69, 0x25,
426-
0x97, 0x11, 0x26, 0xaf, 0xe9, 0xdf, 0xf0, 0x29, 0x0c, 0x57, 0xf3, 0xdc, 0xb2, 0x1d, 0xe4, 0xf9,
427-
0xad, 0x92, 0xa6, 0x57, 0xe9, 0x77, 0x88, 0x52, 0xa5, 0x1a, 0xf3, 0xff, 0x01, 0x00, 0x00, 0xff,
428-
0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0x71, 0x19, 0xee, 0xa7, 0xa6, 0x48, 0x00, 0x00,
357+
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff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89, 0x06, 0x9e, 0xe4, 0x09,
369+
0xac, 0x79, 0xf0, 0xd9, 0x53, 0x0b, 0xa5, 0x56, 0x9e, 0x9a, 0x57, 0xae, 0xcc, 0x97, 0x6c, 0x5d,
370+
0x76, 0x6e, 0x79, 0x83, 0x02, 0x89, 0x1e, 0x1f, 0x18, 0x17, 0xeb, 0x8d, 0x29, 0x7c, 0xf1, 0xf4,
371+
0xe8, 0x1a, 0x1d, 0xeb, 0x01, 0xd8, 0x08, 0x44, 0x13, 0x40, 0x1a, 0x02, 0xd3, 0x14, 0x20, 0x65,
372+
0xa0, 0x94, 0x01, 0x6b, 0x0e, 0x5c, 0x3d, 0x80, 0x6b, 0x80, 0xdc, 0x08, 0xe8, 0x0a, 0xb0, 0x9b,
373+
0x7d, 0xb0, 0x8c, 0xef, 0x26, 0x17, 0xbc, 0x0c, 0x73, 0x63, 0xb8, 0x55, 0x60, 0x57, 0x84, 0x5f,
374+
0x95, 0x06, 0xda, 0x74, 0xd0, 0xa6, 0x85, 0x3a, 0x3d, 0x5e, 0xa6, 0xc9, 0x06, 0xba, 0x34, 0xa6,
375+
0x4d, 0xf9, 0x60, 0x50, 0xa0, 0xd7, 0xd0, 0x73, 0x05, 0x30, 0xf9, 0xba, 0x86, 0xd6, 0x37, 0xa3,
376+
0x92, 0x32, 0xa5, 0x74, 0xa8, 0xa5, 0x49, 0x31, 0x5d, 0xaa, 0x19, 0x53, 0xce, 0x98, 0x7a, 0xfa,
377+
0x14, 0x6c, 0x46, 0xc5, 0x86, 0x94, 0x54, 0xa6, 0x66, 0xb9, 0xe0, 0x91, 0x4d, 0x42, 0x5f, 0x92,
378+
0xa9, 0x86, 0xd3, 0x0b, 0x8c, 0x9f, 0x44, 0x28, 0xfa, 0x2c, 0x27, 0x6e, 0x47, 0x71, 0x99, 0x2a,
379+
0x81, 0x4d, 0x88, 0x6c, 0x48, 0x68, 0x53, 0x62, 0x5b, 0x23, 0xb8, 0x35, 0xa2, 0x9b, 0x13, 0x5e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xdf, 0x1a, 0xc8, 0xb8, 0xc5, 0x52, 0x02, 0xa7, 0xda, 0x8e, 0x28, 0x05, 0x7d, 0xed, 0xf8, 0xfd,
392+
0x6f, 0xdf, 0x8e, 0xef, 0x7f, 0x45, 0xda, 0x72, 0xee, 0x4d, 0xec, 0xf8, 0x78, 0x37, 0xfa, 0xd3,
393+
0x9a, 0x31, 0x7f, 0x95, 0xd6, 0xfc, 0x62, 0x60, 0x4e, 0x6b, 0x87, 0x49, 0x93, 0x23, 0x64, 0x1d,
394+
0x21, 0x87, 0xfe, 0xf5, 0xe0, 0x80, 0x18, 0x99, 0x99, 0xb3, 0x7b, 0x4a, 0xba, 0x6c, 0xd1, 0x38,
395+
0x5b, 0xb4, 0x5a, 0xb0, 0xd2, 0x74, 0x00, 0x12, 0xc1, 0x23, 0x4c, 0x71, 0x8c, 0xe5, 0x63, 0x1a,
396+
0xef, 0x6d, 0x16, 0x03, 0xcd, 0xaa, 0xa6, 0x3e, 0x8b, 0x53, 0x69, 0xa2, 0xfd, 0x10, 0xc5, 0xed,
397+
0xb2, 0xdb, 0x52, 0xfe, 0xd5, 0xce, 0x6b, 0xab, 0x2d, 0x3b, 0xa6, 0x36, 0x30, 0x53, 0x2f, 0x65,
398+
0x36, 0x49, 0x95, 0x15, 0x53, 0x64, 0x57, 0x11, 0xde, 0x46, 0xca, 0xbb, 0x2f, 0x15, 0x61, 0xe5,
399+
0x94, 0xb6, 0x44, 0x2a, 0xfd, 0x21, 0xe1, 0x30, 0x56, 0x41, 0xab, 0x38, 0x35, 0x15, 0x4a, 0x5f,
400+
0xe9, 0x29, 0xb9, 0x88, 0xe1, 0xe3, 0xe3, 0x3c, 0x36, 0xdb, 0x15, 0xca, 0xef, 0x30, 0x50, 0x85,
401+
0xc4, 0x12, 0xd4, 0x23, 0x34, 0x5b, 0xb6, 0xe5, 0x66, 0xcd, 0xa9, 0x0b, 0xcd, 0x83, 0x0b, 0x4d,
402+
0xe5, 0x66, 0x0d, 0x50, 0x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0xed, 0x7b, 0x27, 0x0d, 0x7d, 0xa1, 0xea, 0x83,
425+
0x7a, 0xe5, 0xe7, 0x8a, 0x5f, 0xd7, 0xd9, 0xa0, 0x5c, 0x33, 0xa5, 0xea, 0xbe, 0x33, 0xb4, 0xe2,
426+
0xf5, 0xaa, 0xbe, 0x4f, 0x5a, 0x65, 0x7f, 0xe5, 0x7a, 0xad, 0xd3, 0x07, 0x11, 0x71, 0x59, 0x0e,
427+
0xdb, 0xdf, 0x2d, 0x74, 0x5a, 0x39, 0xcb, 0x10, 0x11, 0xd7, 0xf8, 0x6f, 0xf8, 0xc4, 0xd8, 0xea,
428+
0x39, 0xb7, 0x6c, 0x07, 0x7a, 0x7e, 0xab, 0xa2, 0xe9, 0x55, 0xf6, 0xe5, 0xa7, 0x4c, 0xa9, 0xd6,
429+
0xfc, 0x7f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0x4c, 0xc3, 0xd7, 0x09,
430+
0x18, 0x4a, 0x00, 0x00,
429431
}
430432
)
431433

ygen/testdata/schema/openconfig-options-compress-schema.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@
8484
}
8585
}
8686
]
87+
},
88+
"Annotation": {
89+
"ygot-oc-compressed-leaf": {}
8790
}
8891
},
8992
"peer-address": {
@@ -123,6 +126,9 @@
123126
]
124127
}
125128
]
129+
},
130+
"Annotation": {
131+
"ygot-oc-compressed-leaf": {}
126132
}
127133
}
128134
},

0 commit comments

Comments
 (0)