openconfig / reference

This repository contains reference implementations, specifications and tooling related to OpenConfig-based network management.
Apache License 2.0
155 stars 88 forks source link

Clarification needed for adding namespace in path #195

Open preetbhansali opened 1 year ago

preetbhansali commented 1 year ago

From the documentation given, I was unable to find which should be used as a namespace to distinguish the path. module-name or prefix or any of them.

For a openconfig-intefaces.yang defined as below ` module openconfig-interfaces {

yang-version "1";

// namespace namespace "http://openconfig.net/yang/interfaces";

prefix "oc-if";

`

What is the correct way to create a path for GNMI get request option#1 or 2 or both?

  1. /oc-if:interfaces/oc-if:interface/
  2. /openconfig-interfaces:interfaces/openconfig-interfaces:interface/