This repository has been archived by the owner on Nov 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
spirit_corehelper_cfg.go
94 lines (77 loc) · 3.5 KB
/
spirit_corehelper_cfg.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
// This module contains a collection of YANG definitions
// for Cisco IOS-XR spirit-corehelper package configuration.
//
// This module contains definitions
// for the following management objects:
// exception: Core dump configuration commands
//
// Copyright (c) 2013-2018 by Cisco Systems, Inc.
// All rights reserved.
package spirit_corehelper_cfg
import (
"fmt"
"github.com/CiscoDevNet/ydk-go/ydk"
"github.com/CiscoDevNet/ydk-go/ydk/types"
"github.com/CiscoDevNet/ydk-go/ydk/types/yfilter"
"github.com/CiscoDevNet/ydk-go/ydk/models/cisco_ios_xr"
"reflect"
)
func init() {
ydk.YLogDebug(fmt.Sprintf("Registering top level entities for package spirit_corehelper_cfg"))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-spirit-corehelper-cfg exception}", reflect.TypeOf(Exception{}))
ydk.RegisterEntity("Cisco-IOS-XR-spirit-corehelper-cfg:exception", reflect.TypeOf(Exception{}))
}
// Exception
// Core dump configuration commands
type Exception struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Container for the order of preference.
File Exception_File
}
func (exception *Exception) GetEntityData() *types.CommonEntityData {
exception.EntityData.YFilter = exception.YFilter
exception.EntityData.YangName = "exception"
exception.EntityData.BundleName = "cisco_ios_xr"
exception.EntityData.ParentYangName = "Cisco-IOS-XR-spirit-corehelper-cfg"
exception.EntityData.SegmentPath = "Cisco-IOS-XR-spirit-corehelper-cfg:exception"
exception.EntityData.AbsolutePath = exception.EntityData.SegmentPath
exception.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
exception.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
exception.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
exception.EntityData.Children = types.NewOrderedMap()
exception.EntityData.Children.Append("file", types.YChild{"File", &exception.File})
exception.EntityData.Leafs = types.NewOrderedMap()
exception.EntityData.YListKeys = []string {}
return &(exception.EntityData)
}
// Exception_File
// Container for the order of preference
type Exception_File struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Preference of the dump location. The type is string.
Choice2 interface{}
// Preference of the dump location. The type is string.
Choice1 interface{}
// Preference of the dump location. The type is string.
Choice3 interface{}
}
func (file *Exception_File) GetEntityData() *types.CommonEntityData {
file.EntityData.YFilter = file.YFilter
file.EntityData.YangName = "file"
file.EntityData.BundleName = "cisco_ios_xr"
file.EntityData.ParentYangName = "exception"
file.EntityData.SegmentPath = "file"
file.EntityData.AbsolutePath = "Cisco-IOS-XR-spirit-corehelper-cfg:exception/" + file.EntityData.SegmentPath
file.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
file.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
file.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
file.EntityData.Children = types.NewOrderedMap()
file.EntityData.Leafs = types.NewOrderedMap()
file.EntityData.Leafs.Append("choice2", types.YLeaf{"Choice2", file.Choice2})
file.EntityData.Leafs.Append("choice1", types.YLeaf{"Choice1", file.Choice1})
file.EntityData.Leafs.Append("choice3", types.YLeaf{"Choice3", file.Choice3})
file.EntityData.YListKeys = []string {}
return &(file.EntityData)
}