Skip to content

Commit 03e6115

Browse files
Stephane Robertlindycoder
authored andcommitted
XML bug fix
Missing closing tag making the XML invalid
1 parent 4b2f801 commit 03e6115

File tree

6 files changed

+46
-43
lines changed

6 files changed

+46
-43
lines changed

constraints.txt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,23 @@
44
#
55
# pip-compile --no-index --no-emit-trusted-host --output-file constraints.txt requirements.txt
66
#
7-
certifi==2018.1.18 # via requests
7+
certifi==2018.8.24 # via requests
88
chardet==3.0.4 # via requests
99
click==6.7 # via flask
1010
ecdsa==0.13 # via paramiko
11-
flask==0.12.2
12-
idna==2.6 # via requests
11+
flask==1.0.2
12+
idna==2.7 # via requests
1313
itsdangerous==0.24 # via flask
1414
jinja2==2.10 # via flask
15-
lxml==4.2.1 # via ncclient
15+
lxml==4.2.4 # via ncclient
1616
markupsafe==1.0 # via jinja2
17-
ncclient==0.5.3
17+
ncclient==0.6.2
1818
netaddr==0.7.19
1919
paramiko==1.17.6
20-
pbr==3.1.1
20+
pbr==4.2.0
2121
pycrypto==2.6.1 # via paramiko
22-
requests==2.18.4
22+
requests==2.19.1
23+
selectors2==2.0.1 # via ncclient
2324
six==1.11.0 # via ncclient
24-
urllib3==1.22 # via requests
25+
urllib3==1.23 # via requests
2526
werkzeug==0.14.1 # via flask

netman/adapters/switches/juniper/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,9 @@ def set_interface_auto_negotiation_state(self, interface_id, negotiation_state):
319319
</interface>
320320
""".format(interface_id))
321321
if negotiation_state == ON:
322-
content.append(to_ele("<ether-options><auto-negotiation></ether-options>"))
322+
content.append(to_ele("<ether-options><auto-negotiation/></ether-options>"))
323323
else:
324-
content.append(to_ele("<ether-options><no-auto-negotiation></ether-options>"))
324+
content.append(to_ele("<ether-options><no-auto-negotiation/></ether-options>"))
325325
update = Update()
326326
update.add_interface(content)
327327

test-constraints.txt

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,63 +4,65 @@
44
#
55
# pip-compile --no-index --no-emit-trusted-host --output-file test-constraints.txt test-requirements.txt constraints.txt rtd-requirements.txt
66
#
7-
alabaster==0.7.10 # via sphinx
7+
alabaster==0.7.11 # via sphinx
88
appdirs==1.4.3 # via rply, twisted
99
args==0.1.0 # via clint
1010
asn1crypto==0.24.0 # via cryptography
11-
astor==0.6.2 # via hy
12-
babel==2.5.3 # via sphinx
13-
certifi==2018.1.18
11+
astor==0.7.1 # via hy
12+
babel==2.6.0 # via sphinx
13+
certifi==2018.8.24
1414
cffi==1.11.5 # via cryptography
1515
chardet==3.0.4
1616
click==6.7
1717
clint==0.5.1 # via hy
1818
configparser==3.5.0 # via flake8
1919
constantly==15.1.0 # via twisted
20-
cryptography==2.2.1 # via twisted
20+
cryptography==2.3.1 # via twisted
2121
docutils==0.14 # via sphinx
2222
ecdsa==0.13
2323
enum34==1.1.6 # via cryptography, flake8
24-
fake-switches==1.2.4
24+
fake-switches==1.2.5
2525
flake8==3.4.1
26-
flask==0.12.2
26+
flask==1.0.2
2727
flexmock==0.10.2
28+
funcparserlib==0.3.6 # via hy
2829
funcsigs==1.0.2 # via mock
2930
futures==3.2.0
30-
gunicorn==19.7.1
31-
hy==0.14.0 # via mockssh
32-
idna==2.6
33-
imagesize==1.0.0 # via sphinx
31+
gunicorn==19.9.0
32+
hy==0.15.0 # via mockssh
33+
idna==2.7
34+
imagesize==1.1.0 # via sphinx
3435
incremental==17.5.0 # via twisted
35-
ipaddress==1.0.19 # via cryptography
36+
ipaddress==1.0.22 # via cryptography
3637
itsdangerous==0.24
3738
jinja2==2.10
38-
lxml==4.2.1
39+
lxml==4.2.4
3940
markupsafe==1.0
4041
mccabe==0.6.1 # via flake8
4142
mock==2.0.0
4243
mockssh==1.4.3
43-
ncclient==0.5.3
44+
ncclient==0.6.2
4445
netaddr==0.7.19
4546
nose==1.3.7
4647
paramiko==1.17.6
47-
pbr==3.1.1
48-
pyasn1==0.4.2 # via mockssh, twisted
48+
pbr==4.2.0
49+
pyasn1==0.4.4 # via mockssh, twisted
4950
pycodestyle==2.3.1 # via flake8
5051
pycparser==2.18 # via cffi
5152
pycrypto==2.6.1
5253
pyflakes==1.5.0 # via flake8
5354
pygments==2.2.0 # via sphinx
5455
pyhamcrest==1.9.0
55-
pytz==2018.3 # via babel
56-
requests==2.18.4
57-
rply==0.7.5 # via hy
56+
pytz==2018.5 # via babel
57+
requests==2.19.1
58+
rply==0.7.6 # via hy
59+
selectors2==2.0.1
5860
six==1.11.0
5961
snowballstemmer==1.2.1 # via sphinx
6062
sphinx==1.5.6
61-
sphinxcontrib-httpdomain==1.6.1
62-
tftpy==0.6.2 # via fake-switches
63+
sphinxcontrib-httpdomain==1.7.0
64+
tftpy==0.7.0 # via fake-switches
6365
twisted[conch]==16.6.0 # via fake-switches, mockssh
64-
urllib3==1.22
66+
urllib3==1.23
6567
werkzeug==0.14.1
66-
zope.interface==4.4.3 # via twisted
68+
zope.interface==4.5.0 # via twisted

tests/adapters/switches/juniper_qfx_copper_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ def test_change_bond_speed_update_slaves_and_interface_at_same_time(self):
644644
<name>ae10</name>
645645
<aggregated-ether-options>
646646
<link-speed>1g</link-speed>
647-
</ether-options>
647+
</aggregated-ether-options>
648648
</interface>
649649
</interfaces>
650650
</configuration>

tests/adapters/switches/juniper_test.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2322,7 +2322,7 @@ def test_port_mode_trunk_with_no_port_mode_and_1_vlan_removes_it(self):
23222322
<family>
23232323
<ethernet-switching>
23242324
<port-mode>trunk</port-mode>
2325-
<vlan operation="delete">
2325+
<vlan operation="delete" />
23262326
</ethernet-switching>
23272327
</family>
23282328
</unit>
@@ -2377,7 +2377,7 @@ def test_port_mode_trunk_with_access_port_mode_and_1_vlan_removes_it(self):
23772377
<family>
23782378
<ethernet-switching>
23792379
<port-mode>trunk</port-mode>
2380-
<vlan operation="delete">
2380+
<vlan operation="delete" />
23812381
</ethernet-switching>
23822382
</family>
23832383
</unit>
@@ -3693,7 +3693,7 @@ def test_unset_interface_auto_negotiation_state_works_when_enabled(self):
36933693
<interface>
36943694
<name>ge-0/0/6</name>
36953695
<ether-options>
3696-
<auto-negotiation operation=\"delete\"/>
3696+
<auto-negotiation operation=\"delete\" />
36973697
</ether-options>
36983698
</interface>
36993699
</interfaces>
@@ -3767,7 +3767,7 @@ def test_unset_interface_auto_negotiation_state_works_when_disabled(self):
37673767
<interface>
37683768
<name>ge-0/0/6</name>
37693769
<ether-options>
3770-
<no-auto-negotiation operation=\"delete\"/>
3770+
<no-auto-negotiation operation=\"delete\" />
37713771
</ether-options>
37723772
</interface>
37733773
</interfaces>
@@ -4453,7 +4453,7 @@ def test_set_interface_description_succeeds(self):
44534453
<interfaces>
44544454
<interface>
44554455
<name>ge-0/0/6</name>
4456-
<description>Resistance is futile</name>
4456+
<description>Resistance is futile</description>
44574457
</interface>
44584458
</interfaces>
44594459
</configuration>
@@ -4469,7 +4469,7 @@ def test_set_interface_description_on_unkown_interface_raises(self):
44694469
<interfaces>
44704470
<interface>
44714471
<name>ge-0/0/99</name>
4472-
<description>Resistance is futile</name>
4472+
<description>Resistance is futile</description>
44734473
</interface>
44744474
</interfaces>
44754475
</configuration>
@@ -5783,7 +5783,7 @@ def test_change_bond_speed_update_slaves_and_interface_at_same_time(self):
57835783
<name>ae10</name>
57845784
<aggregated-ether-options>
57855785
<link-speed>1g</link-speed>
5786-
</ether-options>
5786+
</aggregated-ether-options>
57875787
</interface>
57885788
<interface>
57895789
<name>ge-0/0/1</name>
@@ -6197,7 +6197,7 @@ def test_set_interface_lldp_state_when_disabled(self):
61976197
<lldp>
61986198
<interface>
61996199
<name>ge-0/0/6</name>
6200-
<disable operation="delete"/>
6200+
<disable operation="delete" />
62016201
</interface>
62026202
</lldp>
62036203
</protocols>

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ commands = python setup.py build_sphinx --fresh-env
2323
skipsdist = True
2424
skip_install = true
2525
install_command = pip install {opts} {packages}
26-
deps = pip-tools==1.11.0
26+
deps = pip-tools==2.0.2
2727
commands =
2828
pip-compile --upgrade --no-index --no-emit-trusted-host --output-file constraints.txt requirements.txt
2929
pip-compile --upgrade --no-index --no-emit-trusted-host --output-file test-constraints.txt test-requirements.txt constraints.txt rtd-requirements.txt

0 commit comments

Comments
 (0)