This repository contains the Python scripts to work with the:
- Protobuf messages
- gNMI network management
The explanation of the demo:
- Make sure you have installed
protobuf
toolset, so that you haveprotoc
available in your CLI. Details: https://bit.ly/2Lki7Ps - Create the Python meta classes out of Protobuf schema file:
protoc -I=bin --python_out=bin openconfig-interfaces.proto
- Generate the Protobuf message using Python 3:
python create_protobuf.py oc_if.bin
- Parse the Protobuf message using Python 3:
python read_protobuf.py oc_if.bin
Release 0.3.7
:
- Changed some variables names per gRPC namins standard.
- Minor bug fixing.
Release 0.3.6
:
- Nokia data
inventory/network_functions/SR205R1.json
is extended with the OpenConfig YANG data foropenconfig-network-instance
. - Minor bug fixing.
Release 0.3.5
:
- Function
gnmi_path_generator
is moved into a separate filebin/PathGenerator.py
. Theget_gnmi.py
andset_gnmi.py
are importing it now.
Release 0.3.4
:
- Fixed the bug with inabbility to provide in the path the key, which contains
/
symbol.
Release 0.3.3
:
- Nokia SR OS is added back to inventory.
Release 0.3.2
:
- The
get_gnmi.py
is modified perset_gnmi.py
structure.
Release 0.3.1
:
- Modified the structure of the files so that inventory are moved to a directory
inventory
, which has subfoldernetwork_functions
with per device data.
Release 0.3.0
:
- The file
act_gnmi.py
is renamed toget_gnmi.py
. - The new file
set_gnmi.py
is created to perform the configuration of the network elements via gRPC transport with gNMI specification and OpenConfig YANG modules.
Release 0.2.3
:
- Minor bug fixing with the encodign, as Nokia doesn't support
JSON_IETF
. - Added the devices configuration folder
nf_config
.
Release 0.2.2
:
- Minor bug fixing with the
gnmi_path_generator
function.
Release 0.2.1
:
- Added the Python script
act_gnmi.py
, which collects the information per gNMI specification using the gRPC transport. - Added the
topology
folder, which explains the lab setup.
Release 0.2.0
:
- Modified the
requirements.txt
to include thegrpcio
andgrpcio-tools
.
Release 0.1.2
:
- Minor bug fixing in
read_protobuf.py
.
Release 0.1.1
:
- Restructured the files hierarchy by adding
bin
andmessages
directories. - Modified the
create_protobuf.py
andread_protobuf.py
to work with new files' structure.
Release 0.1
:
- The first release