Skip to content

Fix yang case when two containers with same name , but different name…#640

Merged
4 commits merged intomasterfrom
unknown repository
Nov 30, 2017
Merged

Fix yang case when two containers with same name , but different name…#640
4 commits merged intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Nov 27, 2017

…spaces, augment one container

…spaces, augment one container

 * Fix golang naming to be consistent with other langs
  * Updated samples and tests
 * address #535
 * Add more debug msgs and throw exceptions to avoid segfaults
 * tcp server start/stop
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 27, 2017

Codecov Report

Merging #640 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #640   +/-   ##
=======================================
  Coverage   32.77%   32.77%           
=======================================
  Files          31       31           
  Lines        5450     5450           
  Branches      550      550           
=======================================
  Hits         1786     1786           
  Misses       3664     3664
Impacted Files Coverage Δ
sdk/cpp/core/src/path_api.hpp 100% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c787803...e2c88e7. Read the comment docs.

CHECK_NOTHROW(provider.get_encoding());
}

TEST_CASE("CreateNoRepoPTCP")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leave comment about running this test case

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

using namespace std;
#define NC_VERB_VERBOSE 2

TEST_CASE("tcp_xr")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above: leave a comment about running these test cases

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -0,0 +1,36 @@
## Running Go Samples
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for creating this read me

panicOnCStateError(cstate)

if rootSchema == nil {
ydk.YLogError("root schema is nil!")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These new lines are using spaces, but the go files seem to be using tabs.

I believe python style guides recommend spaces and go style guides recommend tabs... Maybe it might be good to commit to one style for the whole project at some point in the future, but for now and for this commit, I think it's better to not mix them up.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

self.ctx.writeln('func init() {')
self.ctx.lvl_inc()
self.ctx.writeln('fmt.Println("Registering top level entities for package {}")'.format(package.name))
#self.ctx.writeln('fmt.Println("Registering top level entities for package {}")'.format(package.name))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean to delete this line?

self.ctx.bline()


def _get_qualified_yang_name(clazz):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you forgot to delete this

if child.is_many:
self._print_many(child)
else:
path = ''
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leave a comment on this code

Copy link
Copy Markdown
Contributor

@ylil93 ylil93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comments

@ghost ghost merged commit 457e0a1 into CiscoDevNet:master Nov 30, 2017
@ghost ghost deleted the fix_xe_native_issue branch November 30, 2017 18:23
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant