Skip to content

Issue 1 duplicate line#54

Closed
grelleum wants to merge 5 commits intonetworktocode:developfrom
grelleum:issue_1_duplicate_line
Closed

Issue 1 duplicate line#54
grelleum wants to merge 5 commits intonetworktocode:developfrom
grelleum:issue_1_duplicate_line

Conversation

@grelleum
Copy link

Resolves duplicate line issue: #1

Within IOSConfigParser._update_same_line_children_configs, a conditional has been added to see if a duplicated line is indented, and therefore part of a section, before assigning a parent.

@@ -0,0 +1,3 @@
features = [
{"name": "log", "ordered": True, "section": ["logging ", "no logging "]},
Copy link
Contributor

Choose a reason for hiding this comment

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

@grelleum , sorry, I realize that I did this, but can you add a feature for snmp as well? I think it was failing before with a stracktrace, and hence this test, but I think that we should now be clear about the expectation of a duplicate line.

e.g. add,
{"name": "snmp", "ordered": False, "section": ["snmp-server "]},

"""Initialization file for library."""

__version__ = "0.2.2"
__version__ = "0.2.3"
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for pointing this out, this actually has to be fixed in a few places. You can remove this and squash, i'll update in another PR

Copy link
Collaborator

@jeffkala jeffkala left a comment

Choose a reason for hiding this comment

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

I'm good with this after the other PR review comments are addressed.

@itdependsnetworks
Copy link
Contributor

Addressed in #128

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.

3 participants