<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Issues using ydk gNMI docker in Tools</title>
    <link>https://community.cisco.com/t5/tools/issues-using-ydk-gnmi-docker/m-p/4554163#M1499</link>
    <description>&lt;P&gt;I pulled it with the following command, per the GitHub README file:&lt;/P&gt;&lt;PRE&gt;  docker run -it ydkdev/ydk-go&lt;/PRE&gt;&lt;P&gt;The resulting image has the hash &lt;SPAN&gt;c62814c15bab&lt;/SPAN&gt;, and is tagged as "latest" in docker.&lt;/P&gt;&lt;P&gt;Inside the docker, the last commit in the ydk-go git project is "&lt;SPAN&gt;c245318d82dd1abfb372aef070462f16f6f882e2", version 0.8.3 from 2019-05-31.&lt;BR /&gt;&lt;BR /&gt;EDIT: I tried running "git pull" in the YDK project inside the docker, checking out commit fac11668ff819ea9ae9271849cbd6c2b3f1a6ed1. That doesn't seem to help.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Feb 2022 10:45:10 GMT</pubDate>
    <dc:creator>fredrik.gronlund</dc:creator>
    <dc:date>2022-02-17T10:45:10Z</dc:date>
    <item>
      <title>Issues using ydk gNMI docker</title>
      <link>https://community.cisco.com/t5/tools/issues-using-ydk-gnmi-docker/m-p/4553690#M1497</link>
      <description>&lt;P&gt;Hi, I have been having some issues using the gNMI parts of the YDK.&lt;BR /&gt;Because I run a non-Ubuntu Linux distro, I'm setting up a build env inside of the official YDK docker, which works OK. Running my code, I get the following error when running go vet:&lt;/P&gt;&lt;PRE&gt;go vet...# github.com/CiscoDevNet/ydk-go/gnmi/ydk/providers
/root/go/pkg/mod/github.com/!cisco!dev!net/ydk-go@v0.0.0-20191017213541-fac11668ff81/gnmi/ydk/providers/gnmi_provider.go:51:21: undefined: path.GnmiServiceProviderConnect
/root/go/pkg/mod/github.com/!cisco!dev!net/ydk-go@v0.0.0-20191017213541-fac11668ff81/gnmi/ydk/providers/gnmi_provider.go:62:2: undefined: path.GnmiServiceProviderDisconnect
/root/go/pkg/mod/github.com/!cisco!dev!net/ydk-go@v0.0.0-20191017213541-fac11668ff81/gnmi/ydk/providers/gnmi_provider.go:74:52: undefined: path.GnmiSession
/root/go/pkg/mod/github.com/!cisco!dev!net/ydk-go@v0.0.0-20191017213541-fac11668ff81/gnmi/ydk/providers/gnmi_provider.go:75:13: undefined: path.GnmiServiceProviderGetSession
/root/go/pkg/mod/github.com/!cisco!dev!net/ydk-go@v0.0.0-20191017213541-fac11668ff81/gnmi/ydk/providers/gnmi_provider.go:91:10: undefined: path.GnmiServiceGet
/root/go/pkg/mod/github.com/!cisco!dev!net/ydk-go@v0.0.0-20191017213541-fac11668ff81/gnmi/ydk/providers/gnmi_provider.go:105:9: undefined: path.ExecuteGnmiRPC
# github.com/CiscoDevNet/ydk-go/gnmi/ydk/services
/root/go/pkg/mod/github.com/!cisco!dev!net/ydk-go@v0.0.0-20191017213541-fac11668ff81/gnmi/ydk/services/gnmi_service.go:45:38: undefined: providers.GnmiServiceProvider
/root/go/pkg/mod/github.com/!cisco!dev!net/ydk-go@v0.0.0-20191017213541-fac11668ff81/gnmi/ydk/services/gnmi_service.go:51:18: undefined: path.ExecuteGnmiRPC
/root/go/pkg/mod/github.com/!cisco!dev!net/ydk-go@v0.0.0-20191017213541-fac11668ff81/gnmi/ydk/services/gnmi_service.go:55:9: undefined: operationSucceeded
/root/go/pkg/mod/github.com/!cisco!dev!net/ydk-go@v0.0.0-20191017213541-fac11668ff81/gnmi/ydk/services/gnmi_service.go:59:38: undefined: providers.GnmiServiceProvider
/root/go/pkg/mod/github.com/!cisco!dev!net/ydk-go@v0.0.0-20191017213541-fac11668ff81/gnmi/ydk/services/gnmi_service.go:64:18: undefined: path.ExecuteGnmiRPC
/root/go/pkg/mod/github.com/!cisco!dev!net/ydk-go@v0.0.0-20191017213541-fac11668ff81/gnmi/ydk/services/gnmi_service.go:71:47: undefined: providers.GnmiServiceProvider
/root/go/pkg/mod/github.com/!cisco!dev!net/ydk-go@v0.0.0-20191017213541-fac11668ff81/gnmi/ydk/services/gnmi_service.go:72:20: undefined: path.GnmiServiceGetCapabilities
/root/go/pkg/mod/github.com/!cisco!dev!net/ydk-go@v0.0.0-20191017213541-fac11668ff81/gnmi/ydk/services/gnmi_service.go:77:44: undefined: providers.GnmiServiceProvider
/root/go/pkg/mod/github.com/!cisco!dev!net/ydk-go@v0.0.0-20191017213541-fac11668ff81/gnmi/ydk/services/gnmi_service.go:94:14: undefined: path.GetSubscribeDataPayload
# github.com/CiscoDevNet/ydk-go/gnmi/ydk/path
/root/go/pkg/mod/github.com/!cisco!dev!net/ydk-go@v0.0.0-20191017213541-fac11668ff81/gnmi/ydk/path/gnmi_path.go:24:27: fatal error: ydk/ydk_gnmi.h: No such file or directory
 // #include &amp;lt;ydk/ydk_gnmi.h&amp;gt;
                           ^
compilation terminated.&lt;/PRE&gt;&lt;P&gt;I'm using the company build system, but in essence it just runs simple go commands, in this case "go vet".&lt;/P&gt;&lt;P&gt;Code is imported as follows (some unnecessary code removed:)&lt;/P&gt;&lt;PRE&gt;ackage upstream

import (
	"fmt"
	session "github.com/CiscoDevNet/ydk-go/gnmi/ydk/path"
	"github.com/CiscoDevNet/ydk-go/gnmi/ydk/providers"
	"github.com/CiscoDevNet/ydk-go/gnmi/ydk/services"
	"github.com/CiscoDevNet/ydk-go/ydk"
	"github.com/CiscoDevNet/ydk-go/ydk/types"
	"testing"
	"time"
)

func TestSomething(t *testing.T) {
	repo := types.Repository{Path: "./models"}
	provider := providers.GnmiServiceProvider{
		Repo:    repo,
		Address: "127.0.0.1",
		Port:    50051}
	provider.Connect()

	subscribeStream(&amp;amp;provider)
	provider.Disconnect()
}
// More code and local functions below&lt;/PRE&gt;&lt;P&gt;Seeing as this is inside the official Docker, I expected everything to be installed already, but am I missing some important step?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 16:04:07 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/issues-using-ydk-gnmi-docker/m-p/4553690#M1497</guid>
      <dc:creator>fredrik.gronlund</dc:creator>
      <dc:date>2022-02-16T16:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Issues using ydk gNMI docker</title>
      <link>https://community.cisco.com/t5/tools/issues-using-ydk-gnmi-docker/m-p/4553877#M1498</link>
      <description>Hi Fredric&lt;BR /&gt;&lt;BR /&gt;What YDK docker image did you pulled?&lt;BR /&gt;What is the YDK version?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Yan&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Feb 2022 19:05:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/issues-using-ydk-gnmi-docker/m-p/4553877#M1498</guid>
      <dc:creator>ygorelik</dc:creator>
      <dc:date>2022-02-16T19:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Issues using ydk gNMI docker</title>
      <link>https://community.cisco.com/t5/tools/issues-using-ydk-gnmi-docker/m-p/4554163#M1499</link>
      <description>&lt;P&gt;I pulled it with the following command, per the GitHub README file:&lt;/P&gt;&lt;PRE&gt;  docker run -it ydkdev/ydk-go&lt;/PRE&gt;&lt;P&gt;The resulting image has the hash &lt;SPAN&gt;c62814c15bab&lt;/SPAN&gt;, and is tagged as "latest" in docker.&lt;/P&gt;&lt;P&gt;Inside the docker, the last commit in the ydk-go git project is "&lt;SPAN&gt;c245318d82dd1abfb372aef070462f16f6f882e2", version 0.8.3 from 2019-05-31.&lt;BR /&gt;&lt;BR /&gt;EDIT: I tried running "git pull" in the YDK project inside the docker, checking out commit fac11668ff819ea9ae9271849cbd6c2b3f1a6ed1. That doesn't seem to help.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 10:45:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/issues-using-ydk-gnmi-docker/m-p/4554163#M1499</guid>
      <dc:creator>fredrik.gronlund</dc:creator>
      <dc:date>2022-02-17T10:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Issues using ydk gNMI docker</title>
      <link>https://community.cisco.com/t5/tools/issues-using-ydk-gnmi-docker/m-p/4555688#M1500</link>
      <description>&lt;P&gt;Hi Fredrik&lt;/P&gt;
&lt;P&gt;Indeed that docker image does not have gNMI related software installation. Besides, it is very old and outdated.&lt;/P&gt;
&lt;P&gt;I suggest you to try the latest docker image that definitely has gNMI working:&lt;/P&gt;
&lt;PRE&gt;docker run -it ydksolutions/ydk-gen:0.8.6&lt;/PRE&gt;
&lt;P&gt;Let me know if you have any issue working with this docker image.&lt;/P&gt;
&lt;P&gt;Yan Gorelik&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1761"&gt;@cisco&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 23:04:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/issues-using-ydk-gnmi-docker/m-p/4555688#M1500</guid>
      <dc:creator>ygorelik</dc:creator>
      <dc:date>2022-02-18T23:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Issues using ydk gNMI docker</title>
      <link>https://community.cisco.com/t5/tools/issues-using-ydk-gnmi-docker/m-p/4556512#M1501</link>
      <description>&lt;P&gt;Hi, I've looked into this a bit more. I haven't got it to work this time either, this is what I did:&lt;/P&gt;&lt;P&gt;I fetched the docker using&lt;/P&gt;&lt;PRE&gt;docker run -it ydksolutions/ydk-gen:0.8.6&lt;/PRE&gt;&lt;P&gt;To make it easier, I immediately ran&lt;/P&gt;&lt;PRE&gt;bash&lt;/PRE&gt;&lt;P&gt;And added these to the environment:&lt;/P&gt;&lt;PRE&gt;export CGO_LDFLAGS_ALLOW="-fprofile-arcs|-ftest-coverage|--coverage"&lt;/PRE&gt;&lt;P&gt;Then I cloned our project, and ran a build, which ends up running "go vet":&lt;/P&gt;&lt;PRE&gt;go vet...# github.com/CiscoDevNet/ydk-go/ydk/path
../go/pkg/mod/github.com/!cisco!dev!net/ydk-go@v0.0.0-20191017213541-fac11668ff81/ydk/path/path.go:480:18: could not determine kind of name for C.NetconfServiceProviderGetCapabilityByIndex
../go/pkg/mod/github.com/!cisco!dev!net/ydk-go@v0.0.0-20191017213541-fac11668ff81/ydk/path/path.go:477:10: could not determine kind of name for C.NetconfServiceProviderGetNumCapabilities
../go/pkg/mod/github.com/!cisco!dev!net/ydk-go@v0.0.0-20191017213541-fac11668ff81/ydk/path/path.go:457:7: could not determine kind of name for C.NetconfServiceProviderInitWithOnDemand
../go/pkg/mod/github.com/!cisco!dev!net/ydk-go@v0.0.0-20191017213541-fac11668ff81/ydk/path/path.go:453:7: could not determine kind of name for C.NetconfServiceProviderInitWithOnDemandRepo
# github.com/CiscoDevNet/ydk-go/gnmi/ydk/path
/usr/bin/ld: //usr/local/lib/libydk_gnmi.a(gnmi_session.cpp.o): undefined reference to symbol '_ZNSo9_M_insertIdEERSoT_@@GLIBCXX_3.4.9'
//usr/lib/x86_64-linux-gnu/libstdc++.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
mi-utils/common.go.mk:158: recipe for target 'vet' failed
make: *** [vet] Error 2&lt;/PRE&gt;&lt;P&gt;My code is unchanged from the original post. Is there something else I should be doing to use the YDK?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I noticed there are some scripts in the "/root/scripts/" directory, some of which seem to be tests, and some are env setup scripts. Should I run those?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 14:27:44 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/issues-using-ydk-gnmi-docker/m-p/4556512#M1501</guid>
      <dc:creator>fredrik.gronlund</dc:creator>
      <dc:date>2022-02-21T14:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Issues using ydk gNMI docker</title>
      <link>https://community.cisco.com/t5/tools/issues-using-ydk-gnmi-docker/m-p/4557513#M1502</link>
      <description>&lt;P&gt;Hi Fredrik&lt;/P&gt;
&lt;P&gt;I cannot see what your program is doing. Could you give me simple sample of your main GO program, which is failing in the docker?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Yan&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 18:14:19 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/issues-using-ydk-gnmi-docker/m-p/4557513#M1502</guid>
      <dc:creator>ygorelik</dc:creator>
      <dc:date>2022-02-22T18:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Issues using ydk gNMI docker</title>
      <link>https://community.cisco.com/t5/tools/issues-using-ydk-gnmi-docker/m-p/4557773#M1503</link>
      <description>&lt;P&gt;This is the file in its entirety. It is just supposed to do some preliminary tests, but it doesn't even pass compilation.&lt;/P&gt;&lt;PRE&gt;package upstream

import (
	"fmt"
	session "github.com/CiscoDevNet/ydk-go/gnmi/ydk/path"
	"github.com/CiscoDevNet/ydk-go/gnmi/ydk/providers"
	"github.com/CiscoDevNet/ydk-go/gnmi/ydk/services"
	"github.com/CiscoDevNet/ydk-go/ydk"
	"github.com/CiscoDevNet/ydk-go/ydk/types"
	"testing"
	"time"
)

func TestSomething(t *testing.T) {
	repo := types.Repository{Path: "./models"}
	provider := providers.GnmiServiceProvider{
		Repo:    repo,
		Address: "127.0.0.1",
		Port:    50051}
	provider.Connect()

	subscribeStream(&amp;amp;provider)
	provider.Disconnect()
}


func getSession(provider *providers.GnmiServiceProvider) *session.GnmiSession {
	return provider.GetSession()
}

func makeSub(provider *providers.GnmiServiceProvider) {
	previous := ""
	gs := getSession(provider)
	for true {
		response := gs.GetLastSubscribeResponse(previous)
		if len(response) &amp;gt; 0 &amp;amp;&amp;amp; response != previous {
			// Do anything with received response
			ydk.YLogDebug(fmt.Sprintf("%s:  Last received subscribe response:\n%s\n", time.Now().Format(time.RFC850), response))
			previous = response
		}
		if !gs.SubscribeInProgress() {
			break
		}
		time.Sleep(100 * time.Millisecond)
	}
}

func subscribeStream(provider *providers.GnmiServiceProvider) {
	// Build subscription request
	sub := services.GnmiSubscription{}

	operData := Cisco_IOS_XEWirelessAccessPointOper_AccessPointOperData{}
	// TODO generate yang -&amp;gt; go models for rfid, accesspoint and location oper
	sub.Entity = &amp;amp;operData

	// type sample (we dont want every update)
	sub.SampleInterval = 10 * 1000000000 // in ns
	sub.SubscriptionMode = "SAMPLE"

	var subList []services.GnmiSubscription
	subList = append(subList, sub)

	// Start subscription and result monitoring
	service := services.GnmiService{}

	// TODO: log capabilities
	fmt.Printf("Server capabilities %v", service.Capabilities(provider))
	go service.Subscribe(provider, subList, 10, "STREAM", "JSON")
	time.Sleep(100 * time.Millisecond)
	makeSub(provider)
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 07:56:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/issues-using-ydk-gnmi-docker/m-p/4557773#M1503</guid>
      <dc:creator>fredrik.gronlund</dc:creator>
      <dc:date>2022-02-23T07:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Issues using ydk gNMI docker</title>
      <link>https://community.cisco.com/t5/tools/issues-using-ydk-gnmi-docker/m-p/4560522#M1504</link>
      <description>&lt;P&gt;Hi Fredrik&lt;/P&gt;
&lt;P&gt;I am not sure, but you might be missing setting of environment variables for Go:&lt;/P&gt;
&lt;PRE&gt;export CXX=/usr/bin/g++&lt;BR /&gt;export CC=/usr/bin/gcc&lt;BR /&gt;export GOPATH=$HOME/go&lt;BR /&gt;export GOROOT=/usr/local/go&lt;BR /&gt;export CGO_ENABLED=1&lt;BR /&gt;export CGO_LDFLAGS_ALLOW="-fprofile-arcs|-ftest-coverage|--coverage"&lt;/PRE&gt;
&lt;P&gt;See script &lt;EM&gt;/ydk-gen/test/run_go_test.sh&lt;/EM&gt; for an example. You can run the script to see the YDK go package is working properly in the docker.&lt;/P&gt;
&lt;P&gt;Also, when setting encoding the only supported one is &lt;EM&gt;JSON_IETF&lt;/EM&gt;, meaning &lt;EM&gt;JSON&lt;/EM&gt; is not supported. Please correct.&lt;/P&gt;
&lt;P&gt;Also, in your example there is missing &lt;EM&gt;main&lt;/EM&gt; function, so I could not run your program.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Yan&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 00:33:03 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/issues-using-ydk-gnmi-docker/m-p/4560522#M1504</guid>
      <dc:creator>ygorelik</dc:creator>
      <dc:date>2022-02-28T00:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Issues using ydk gNMI docker</title>
      <link>https://community.cisco.com/t5/tools/issues-using-ydk-gnmi-docker/m-p/4560654#M1505</link>
      <description>&lt;P&gt;Hi, regarding the function: As you can tell from importing the "testing" package and the function call on the form&lt;/P&gt;&lt;PRE&gt;func TestXxx(*testing.T)&lt;/PRE&gt;&lt;P&gt;This is a test function using the standard &lt;A href="https://pkg.go.dev/testing" target="_blank" rel="noopener"&gt;Go testing package&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In regards to those environment variables, adding them in the &lt;EM&gt;"ydksolutions/ydk-gen:0.8.6"&lt;/EM&gt; docker did not help, the code still doesn't compile, with the exact same error message as in my post from 2022-02-21 above. For clarity, everything is run inside the docker unless otherwise stated.&lt;/P&gt;&lt;P&gt;Changing &lt;EM&gt;"JSON"&lt;/EM&gt; to &lt;EM&gt;"JSON_IETF"&lt;/EM&gt; did not help either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I feel like I should reiterate - the issue isn't yet that my code doesn't compile, it is that the imported libraries don't seem to compile.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since you mentioned the script &lt;EM&gt;"/root/scripts/run_go_tests.sh"&lt;/EM&gt;, I tried running it inside a completely fresh docker of the same version. Below is the complete log printout:&lt;/P&gt;&lt;PRE&gt;fredrik@fredrik-pc ~ $ docker run -it ydksolutions/ydk-gen:0.8.6
# bash
root@7c8391d4c540:/# cd ~
root@7c8391d4c540:~# ll
total 92
drwx------  1 root root  4096 Oct 31 19:08 ./
drwxr-xr-x  1 root root  4096 Feb 28 10:30 ../
-rw-------  1 root root  7828 Oct 31 19:54 .bash_history
-rw-r--r--  1 root root  3106 Apr  9  2018 .bashrc
drwx------  4 root root  4096 Dec 15  2020 .cache/
drwxr-xr-x  3 root root  4096 Sep 30 17:14 .config/
drwx------  3 root root  4096 Dec 15  2020 .local/
-rw-r--r--  1 root root   148 Aug 17  2015 .profile
-rw-------  1 root root   403 Sep 30 17:06 .python_history
-rw-------  1 root root 11376 Oct 31 19:06 .viminfo
-rw-r--r--  1 root root   165 Dec 15  2020 .wget-hsts
drwxr-xr-x  2 root root  4096 Sep 30 17:17 .ydk/
drwxr-xr-x 13 root root  4096 Dec 15  2020 confd/
drwxr-xr-x  4 root root  4096 Dec 15  2020 go/
drwxr-xr-x 22 root root  4096 Dec 15  2020 grpc/
drwxr-xr-x 13 root root  4096 Dec 15  2020 protobuf-3.5.0/
drwxr-xr-x  2 root root  4096 Jan 11  2021 scripts/
drwxr-xr-x  7 root root  4096 Oct 31 19:41 venv/
drwxr-xr-x  2 root root  4096 Dec 15  2020 ydk-gen/
root@7c8391d4c540:~# ./scripts/init_test_env.sh 

*** Mon Feb 28 10:30:41 UTC 2022: init_test_env.sh: Running OS type: Linux

*** Mon Feb 28 10:30:41 UTC 2022: init_test_env.sh: YDKGEN_HOME is set to /root/github/ydk-gen

*** Mon Feb 28 10:30:41 UTC 2022: init_test_env.sh: Python location: /usr/bin/python
./scripts/init_test_env.sh: line 77: cd: /root/github/ydk-gen: No such file or directory
./scripts/init_test_env.sh: line 21: cd: /root/github/ydk-gen/sdk/cpp/core/tests/confd/ydktest: No such file or directory

*** Mon Feb 28 10:30:41 UTC 2022: init_test_env.sh: Initializing confd in /root

*** Mon Feb 28 10:30:41 UTC 2022: init_test_env.sh: Found confd resource file: /root/confd/confdrc
make: *** No rule to make target 'stop'.  Stop.
root@7c8391d4c540:~# ./scripts/run_go_tests.sh  
*** Mon Feb 28 10:30:50 UTC 2022: run_go_tests.sh: YDKGEN_HOME is set to /root/github/ydk-gen
./scripts/run_go_tests.sh: line 158: cd: /root/github/ydk-gen: No such file or directory
./scripts/run_go_tests.sh: line 159: ../venv/bin/activate: No such file or directory
*** Mon Feb 28 10:30:50 UTC 2022: run_go_tests.sh: Initializing Go environment
*** Mon Feb 28 10:30:50 UTC 2022: run_go_tests.sh: GOPATH = /root/golang
*** Mon Feb 28 10:30:50 UTC 2022: run_go_tests.sh: GOROOT = /usr/local/go
./scripts/run_go_tests.sh: line 36: cd: /root/github/ydk-gen: No such file or directory
*** Mon Feb 28 10:30:50 UTC 2022: run_go_tests.sh: CC: /usr/bin/cc
*** Mon Feb 28 10:30:50 UTC 2022: run_go_tests.sh: CXX: /usr/bin/c++
# cd .; git clone -- https://gopkg.in/yaml.v3 /root/golang/src/gopkg.in/yaml.v3
Cloning into '/root/golang/src/gopkg.in/yaml.v3'...
fatal: unable to access 'https://gopkg.in/yaml.v3/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
package gopkg.in/yaml.v3: exit status 128
*** Mon Feb 28 10:30:54 UTC 2022: run_go_tests.sh: Command 'go
root@7c8391d4c540:~# &lt;/PRE&gt;&lt;P&gt;As you can see, running the tests fails.&lt;/P&gt;&lt;P&gt;So, my questions are as follows at this point:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Is there documentation for the newer version of the Docker image I can refer to?&lt;/LI&gt;&lt;LI&gt;If not, what do I need to do to make the test scripts run?&lt;/LI&gt;&lt;LI&gt;Is there documentation for the newer version of the ydk-go (that has gNMI support) that I can refer to?&lt;/LI&gt;&lt;LI&gt;After making the test scripts work, how should I then import the ydk-go gNMI module?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I ask, because the documentation on the public GitHub was last updated for version 0.8.4, 2019-10-06, which you said is very old and updated.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 10:38:55 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/issues-using-ydk-gnmi-docker/m-p/4560654#M1505</guid>
      <dc:creator>fredrik.gronlund</dc:creator>
      <dc:date>2022-02-28T10:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Issues using ydk gNMI docker</title>
      <link>https://community.cisco.com/t5/tools/issues-using-ydk-gnmi-docker/m-p/4560971#M1506</link>
      <description>&lt;P&gt;Hi Fredrik&lt;/P&gt;
&lt;P&gt;I found multiple issue:&lt;/P&gt;
&lt;P&gt;1. The docker image did not have loaded &lt;EM&gt;ydk-gen&lt;/EM&gt; directory. Although it is not necessary to have it in the docker, I added it for completeness and pushed new docker image. It is actually needed for model bundles generation. No changes in the code though were introduced.&lt;/P&gt;
&lt;P&gt;2. Your code had multiple issues:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;- name of the file for the tests must end with suffix '_test'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;- missing model bundle (need generate one)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;- the package name must be 'test'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I attached my code that is compiled and ran perfectly fine, although panicking on connection, which is expected. Please compare and make corrections for your tests.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Yan&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 19:32:44 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/issues-using-ydk-gnmi-docker/m-p/4560971#M1506</guid>
      <dc:creator>ygorelik</dc:creator>
      <dc:date>2022-02-28T19:32:44Z</dc:date>
    </item>
  </channel>
</rss>

