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: 2

Documentation

Overview

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

All this metadata is now kept in the roc-helm-charts/config-models/aether-2.0.x

Index

Constants

This section is empty.

Variables

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

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

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