|
7 | 7 | from ieee_2030_5.certs import TLSRepository, lfdi_from_fingerprint
|
8 | 8 | from ieee_2030_5.config import ServerConfiguration, DeviceConfiguration
|
9 | 9 | from ieee_2030_5.data.indexer import add_href, get_href
|
10 |
| -from ieee_2030_5.utils.tls_wrapper import OpensslWrapper |
11 | 10 |
|
12 | 11 | _log = logging.getLogger(__name__)
|
13 | 12 |
|
@@ -182,10 +181,11 @@ def create_der_program_and_control(default_der_program: m.DERProgram,
|
182 | 181 | derp.ActiveDERControlListLink = m.ActiveDERControlListLink(program_hrefs.active_control_href)
|
183 | 182 | derp.DefaultDERControlLink = m.DefaultDERControlLink(program_hrefs.default_control_href)
|
184 | 183 | derp.DERControlListLink = m.DERControlListLink(program_hrefs.der_control_list_href)
|
185 |
| - # derp.DERCurveListLink = m.DERCurveListLink(program_hrefs.der_curve_list_href) |
| 184 | + derp.DERCurveListLink = m.DERCurveListLink(program_hrefs.der_curve_list_href) |
186 | 185 |
|
187 | 186 | dderc.href = derp.DefaultDERControlLink.href
|
188 | 187 |
|
| 188 | + adpt.ListAdapter.initialize_uri(program_hrefs.der_curve_list_href, m.DERCurve) |
189 | 189 | adpt.ListAdapter.append(hrefs.DEFAULT_DDERC_ROOT, dderc)
|
190 | 190 | adpt.ListAdapter.append(hrefs.DEFAULT_DERP_ROOT, derp)
|
191 | 191 | return derp, dderc
|
@@ -402,10 +402,10 @@ def initialize_2030_5(config: ServerConfiguration, tlsrepo: TLSRepository):
|
402 | 402 | adpt.ListAdapter.set_single(obj=dderc, uri=dderc.href)
|
403 | 403 | derp_derc_list_href = hrefs.SEP.join((derp.href, "derc"))
|
404 | 404 | adpt.ListAdapter.initialize_uri(list_uri=derp_derc_list_href, obj=m.DERControl)
|
405 |
| - derp_derc: m.DERControl = m.DERControl(DERControlBase=dderc.DERControlBase) |
406 |
| - adpt.ListAdapter.append(list_uri=derp_derc_list_href, obj=derp_derc) |
| 405 | + #derp_derc: m.DERControl = m.DERControl(DERControlBase=dderc.DERControlBase) |
| 406 | + #adpt.ListAdapter.append(list_uri=derp_derc_list_href, obj=derp_derc) |
407 | 407 |
|
408 |
| - adpt.ListAdapter.set_single(uri=derp_derc.href, obj=derp_derc) |
| 408 | + #adpt.ListAdapter.set_single(uri=derp_derc.href, obj=derp_derc) |
409 | 409 |
|
410 | 410 | if fsa_list := adpt.ListAdapter.get_list(ed_href.function_set_assignments):
|
411 | 411 | # Create a new der program for this specific fsa
|
|
0 commit comments