modelplugin

package
v0.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Overview

Package modelplugin - A plugin for the YGOT model of aether-3.0.0. TODO: Remove this - not needed anymore - check sdcore-adapter

All this metadata is now kept in the sdran-helm-charts/config-models/aether-3.0.0

Index

Constants

This section is empty.

Variables

View Source
var ModelData = []*gnmi.ModelData{
	{Name: "connectivity-service", Organization: "Open Networking Foundation", Version: "2021-06-02"},
	{Name: "enterprise", Organization: "Open Networking Foundation", Version: "2021-06-02"},

	{Name: "aether-types", Organization: "Open Networking Foundation", Version: "2021-06-02"},
	{Name: "ap-list", Organization: "Open Networking Foundation", Version: "2021-06-02"},
	{Name: "application", Organization: "Open Networking Foundation", Version: "2021-06-02"},
	{Name: "device-group", Organization: "Open Networking Foundation", Version: "2021-06-02"},
	{Name: "ip-domain", Organization: "Open Networking Foundation", Version: "2021-06-02"},
	{Name: "site", Organization: "Open Networking Foundation", Version: "2021-06-02"},
	{Name: "upf", Organization: "Open Networking Foundation", Version: "2021-06-02"},
	{Name: "vcs", Organization: "Open Networking Foundation", Version: "2021-06-02"},
	{Name: "template", Organization: "Open Networking Foundation", Version: "2021-06-02"},
	{Name: "traffic-class", Organization: "Open Networking Foundation", Version: "2021-06-02"},
}

Functions

This section is empty.

Types

type Modelplugin

type Modelplugin string

func (Modelplugin) GetStateMode

func (m Modelplugin) GetStateMode() int

GetStateMode returns an int - we do not use the enum because we do not want a direct dependency on onos-config code (for build optimization)

func (Modelplugin) ModelData

func (m Modelplugin) ModelData() (string, string, []*gnmi.ModelData, string)

func (Modelplugin) Schema

func (m Modelplugin) Schema() (map[string]*yang.Entry, error)

func (Modelplugin) UnmarshalConfigValues

func (m Modelplugin) UnmarshalConfigValues(jsonTree []byte) (*ygot.ValidatedGoStruct, error)

UnmarshallConfigValues allows Device to implement the Unmarshaller interface

func (Modelplugin) Validate

func (m Modelplugin) Validate(ygotModel *ygot.ValidatedGoStruct, opts ...ygot.ValidationOption) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL