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 ¶
- Variables
- type Modelplugin
- func (m Modelplugin) GetStateMode() int
- func (m Modelplugin) ModelData() (string, string, []*gnmi.ModelData, string)
- func (m Modelplugin) Schema() (map[string]*yang.Entry, error)
- func (m Modelplugin) UnmarshalConfigValues(jsonTree []byte) (*ygot.ValidatedGoStruct, error)
- func (m Modelplugin) Validate(ygotModel *ygot.ValidatedGoStruct, opts ...ygot.ValidationOption) error
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) 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
Click to show internal directories.
Click to hide internal directories.