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
/
mdrv_lib_cfg.go
60 lines (51 loc) · 2.24 KB
/
mdrv_lib_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
// This module contains a collection of YANG definitions
// for Cisco IOS-XR mdrv-lib package configuration.
//
// This module contains definitions
// for the following management objects:
// fast-shutdown: Fast Shutdown configuration
//
// This YANG module augments the
// Cisco-IOS-XR-ifmgr-cfg
// module with configuration data.
//
// Copyright (c) 2013-2018 by Cisco Systems, Inc.
// All rights reserved.
package mdrv_lib_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 mdrv_lib_cfg"))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-mdrv-lib-cfg fast-shutdown}", reflect.TypeOf(FastShutdown{}))
ydk.RegisterEntity("Cisco-IOS-XR-mdrv-lib-cfg:fast-shutdown", reflect.TypeOf(FastShutdown{}))
}
// FastShutdown
// Fast Shutdown configuration
type FastShutdown struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Enable Fast Shutdown for all Ethernet interfaces. The type is interface{}.
Ethernet interface{}
}
func (fastShutdown *FastShutdown) GetEntityData() *types.CommonEntityData {
fastShutdown.EntityData.YFilter = fastShutdown.YFilter
fastShutdown.EntityData.YangName = "fast-shutdown"
fastShutdown.EntityData.BundleName = "cisco_ios_xr"
fastShutdown.EntityData.ParentYangName = "Cisco-IOS-XR-mdrv-lib-cfg"
fastShutdown.EntityData.SegmentPath = "Cisco-IOS-XR-mdrv-lib-cfg:fast-shutdown"
fastShutdown.EntityData.AbsolutePath = fastShutdown.EntityData.SegmentPath
fastShutdown.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
fastShutdown.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
fastShutdown.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
fastShutdown.EntityData.Children = types.NewOrderedMap()
fastShutdown.EntityData.Leafs = types.NewOrderedMap()
fastShutdown.EntityData.Leafs.Append("ethernet", types.YLeaf{"Ethernet", fastShutdown.Ethernet})
fastShutdown.EntityData.YListKeys = []string {}
return &(fastShutdown.EntityData)
}