Skip to content

Commit 2aa67c9

Browse files
authored
Updated ODL version check for Carbon and Nitrogen
1 parent 57ed5b9 commit 2aa67c9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

netconf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def add_netconf_node(node_dict):
184184

185185
# Need to make this a global check - once per session, not once per node
186186
odl_version = version_check()
187-
if odl_version in ['boron']:
187+
if odl_version in ['boron', 'carbon', 'nitrogen']:
188188
url = head + uri_netconf_topo.format(**node_dict)
189189
success, result = put_xml(url, add_node_boron.format(**node_dict))
190190
else:
@@ -203,7 +203,7 @@ def del_netconf_node(node_dict):
203203

204204
# Need to make this a global check - once per session, not once per node
205205
odl_version = version_check()
206-
if odl_version in ['boron']:
206+
if odl_version in ['boron', 'carbon', 'nitrogen']:
207207
url = head + uri_netconf_topo.format(**node_dict)
208208
else:
209209
url = head + uri_netconf_del.format(**node_dict)

0 commit comments

Comments
 (0)