blob: 45cf31e308984723b1a8f77210d76a439cc681c8 [file] [log] [blame]
Matt Jeanneret689b55f2020-01-20 19:34:51 -05001#!/bin/bash
2#
3# Copyright 2020 the original author or authors.
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16#
Matteo Scandoloc511dda2020-02-26 10:32:12 -080017# Example usage on Mac OS: DOCKER_HOST_IP=127.0.0.1 bash load_mib_template.sh
18
19ETCD_IP=${DOCKER_HOST_IP:=172.17.0.1}
Matt Jeanneret689b55f2020-01-20 19:34:51 -050020
21set -x
Matteo Scandoloc511dda2020-02-26 10:32:12 -080022cat ALCL-BVMGR00BRAXS020XA-3FE47059BFHB52-v2.json | ETCDCTL_API=3 etcdctl --endpoints=$ETCD_IP:2379 put service/voltha/omci_mibs/templates/ALCL/BVMGR00BRAXS020XA/3FE47059BFHB52
23cat ALCL-BVMGR00BRAXS020XA-3FE47059BFHB21-v2.json | ETCDCTL_API=3 etcdctl --endpoints=$ETCD_IP:2379 put service/voltha/omci_mibs/templates/ALCL/BVMGR00BRAXS020XA/3FE47059BFHB21
24cat BRCM-BVM4K00BRA0915-0083-5023_020O02414-v2.json | ETCDCTL_API=3 etcdctl --endpoints=$ETCD_IP:2379 put service/voltha/omci_mibs/templates/BRCM/BVM4K00BRA0915-0083/5023_020O02414
25cat BRCM-BVM4K00BRA0915-0083-5023_003GWOV36-VEIP-v1.json | ETCDCTL_API=3 etcdctl --endpoints=$ETCD_IP:2379 put service/voltha/omci_mibs/templates/BRCM/BVM4K00BRA0915-0083/5023_003GWOV36
26cat BBSM-12345123451234512345-00000000000001-v1.json | ETCDCTL_API=3 etcdctl --endpoints=$ETCD_IP:2379 put service/voltha/omci_mibs/templates/BBSM/12345123451234512345/00000000000001
Girish Gowdra310f8dd2020-05-14 18:15:07 -070027cat BRCM_ISKT-G108_10-7.0.1b8-0.6-v1.json | ETCDCTL_API=3 etcdctl --endpoints=$ETCD_IP:2379 put service/voltha/omci_mibs/templates/BRCM/G108_10/7.0.1b8-0.6
28cat BRCM_ALPH-BVM4K00BRA0915-0083-5023_020O02414-v1.json | ETCDCTL_API=3 etcdctl --endpoints=$ETCD_IP:2379 put service/voltha/omci_mibs/templates/BRCM/BVM4K00BRA0915-0083/5023_020O02414