Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
opennsa3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michal Hažlinský
opennsa3
Commits
c299c7e6
Commit
c299c7e6
authored
9 years ago
by
Henrik Thostrup Jensen
Browse files
Options
Downloads
Patches
Plain Diff
make it possible to not have any labels on a port (needed for gts) + test
parent
68ebb233
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
opennsa/topology/nrm.py
+3
-0
3 additions, 0 deletions
opennsa/topology/nrm.py
test/test_nrmparser.py
+1
-0
1 addition, 0 deletions
test/test_nrmparser.py
with
4 additions
and
0 deletions
opennsa/topology/nrm.py
+
3
−
0
View file @
c299c7e6
...
...
@@ -67,6 +67,9 @@ def _parseRemoteSpec(remote_spec):
def
_parseLabelSpec
(
label_spec
):
if
label_spec
==
'
-
'
:
return
None
if
not
'
:
'
in
label_spec
:
raise
error
.
TopologyError
(
'
Invalid label description: %s
'
%
label_spec
)
...
...
This diff is collapsed.
Click to expand it.
test/test_nrmparser.py
+
1
−
0
View file @
c299c7e6
...
...
@@ -9,6 +9,7 @@ NRM_ENTRY = \
"""
# some comment
ethernet ps - vlan:1780-1788 1000 em0 -
ethernet eth - - 1000 em0 -
ethernet netherlight netherlight#intf1(-in|-out) vlan:1780-1783 1000 em1 -
ethernet somelight somelight#intf2(-in|-out) vlan:1780-1780 1000 em8 -
ethernet uvalight uvalight#intf3(-in|-out) vlan:1780-1783 1000 em2 -
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment