Commit ed36fafb authored by Lu Xu's avatar Lu Xu 👀

wip

parent 54888d65
...@@ -44,7 +44,7 @@ md5sum = b7906ca3a6b17963f78f680fc0842b74 ...@@ -44,7 +44,7 @@ md5sum = b7906ca3a6b17963f78f680fc0842b74
[ru_lopcomm_libinstance.jinja2.cfg] [ru_lopcomm_libinstance.jinja2.cfg]
_update_hash_filename_ = ru/lopcomm/libinstance.jinja2.cfg _update_hash_filename_ = ru/lopcomm/libinstance.jinja2.cfg
md5sum = 7bd59b797244023270f1e5e63e4c12c7 md5sum = 5aa994705fc5e130e4fb372e10d3cbde
[ru_sunwave_libinstance.jinja2.cfg] [ru_sunwave_libinstance.jinja2.cfg]
_update_hash_filename_ = ru/sunwave/libinstance.jinja2.cfg _update_hash_filename_ = ru/sunwave/libinstance.jinja2.cfg
...@@ -56,7 +56,7 @@ md5sum = 5cc878f4c596335a1b6d90e1c03b53a5 ...@@ -56,7 +56,7 @@ md5sum = 5cc878f4c596335a1b6d90e1c03b53a5
[ru_lopcomm_delay.jinja2.py] [ru_lopcomm_delay.jinja2.py]
_update_hash_filename_ = ru/lopcomm/delay.jinja2.py _update_hash_filename_ = ru/lopcomm/delay.jinja2.py
md5sum = 96b8d838b2594ec2f194f16f35758293 md5sum = 357847ea3aabbf08156466d113521cbe
[ru_lopcomm_stats.jinja2.py] [ru_lopcomm_stats.jinja2.py]
_update_hash_filename_ = ru/lopcomm/stats.jinja2.py _update_hash_filename_ = ru/lopcomm/stats.jinja2.py
......
...@@ -15,6 +15,8 @@ if __name__ == '__main__': ...@@ -15,6 +15,8 @@ if __name__ == '__main__':
) )
while True: while True:
try: try:
nc.connect("{{ netaddr.IPAddress(vtap.gateway) }}", 830, "oranuser", "oranpassword")
delay_rpc_xml = f""" delay_rpc_xml = f"""
<get xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <get xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<filter type="xpath" xmlns:o-ran-delay-ru-cpri="urn:o-ran:delay-ru-cpri:1.0" select="/o-ran-delay-ru-cpri:ru-delay-profile" /> <filter type="xpath" xmlns:o-ran-delay-ru-cpri="urn:o-ran:delay-ru-cpri:1.0" select="/o-ran-delay-ru-cpri:ru-delay-profile" />
......
...@@ -36,6 +36,7 @@ context = ...@@ -36,6 +36,7 @@ context =
raw testing {{ testing }} raw testing {{ testing }}
raw python_path {{ buildout_directory}}/bin/pythonwitheggs raw python_path {{ buildout_directory}}/bin/pythonwitheggs
raw buildout_directory_path {{ buildout_directory }} raw buildout_directory_path {{ buildout_directory }}
import netaddr netaddr
mode = 0775 mode = 0775
url = {{ ru_lopcomm_delay_template }} url = {{ ru_lopcomm_delay_template }}
output = ${directory:script}/{{B('%s-delay.py' % ru_ref)}} output = ${directory:script}/{{B('%s-delay.py' % ru_ref)}}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment