vendor_info

package
v0.0.0-...-4bc4564 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

README

Vendor ONU profile settings

This directory contains various manufacturer vendor profiles for (eventually) a number of ONUs.

Each subdirectory named after the 4 octet VENDOR ID contains one or more models files. These will be imported and refererred to by a fully qualified path such as:

<vendor-id>/<model-number>/<firmware-version>

such as:

DFLT/Model 1/*

The elements in each of the three fields above should not contain forward or bacward slashes ( '/' or '' ) but can contain spaces.

The DFLT vendor is a sample used during initial development and is will be patterned after a minimal OMCI implementation.

Documentation

Overview

* Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInitialDatabase

func GetInitialDatabase(url string) ([]byte, error)

GetInitialDatabase returns the JSON with the initial MIB database for this ONU. This is the state of the database after a MIB RESET request.

func GetOnuVendorId

func GetOnuVendorId(url string) (string, error)

Types

type VendorInfo

type VendorInfo struct {
	Name      string `yaml:"name"`
	ID        string `yaml:"id"`
	Model     string `yaml:"model"`
	Firmware  string `yaml:"firmware"`
	InitialDb string `yaml:"initial-db"` // Relative path

	SupportsDate     bool                  `yaml:"24_hour_clock"`
	MessageTypes     []me.MsgType          `yaml:"message_types"`
	ManagedEntities  []me.ClassID          `yaml:"managed_entities"`
	MsgTypeTiming    []VendorMsgTypeTiming `yaml:"msgtype_timing"`
	ManagedEntitySet mapset.Set            `yaml:"-"` // for faster access
	// contains filtered or unexported fields
}

VendorInfo is used to model a specific vendor's ONU model

func GetOnuVendorInfo

func GetOnuVendorInfo(url string) (*VendorInfo, error)

func (*VendorInfo) String

func (v *VendorInfo) String() string

type VendorMsgTypeTiming

type VendorMsgTypeTiming struct {
	MessageType uint8   `yaml:"msg_type"`
	MaxTime     float64 `yaml:"max"`
	MinTime     float64 `yaml:"min"`
	AvgTime     float64 `yaml:"avg"`
}

VendorMsgTypeTiming provides max/min/avg request/response timing information

Jump to

Keyboard shortcuts

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