remove '/' as prefix of xpaths
@@ -109,9 +109,6 @@ func gnmiPathToXPath(p *gnmi.Path) string {
}
elems := p.GetElem()
numElems := len(elems)
- if numElems > 0 {
- sb.WriteString("/")
- }
for i, pe := range elems {
sb.WriteString(pe.GetName())
for k, v := range pe.GetKey() {
