Révision 96454bcd
Ajouté par Sylvain Sauvage il y a plus de 11 ans
IoTa-Installer/lib/ons.py | ||
---|---|---|
installer.Configurer.__init__(self, "Object Name Server", "ons", [
|
||
("Enter the ONS server name (FDQN)", "ons", "server", {}),
|
||
("Enter the ONS Domain Prefix", "ons", "domain_prefix", {}),
|
||
("Enter the ONS Spec Level", "ons", "spec_level", {}),
|
||
("Enter the ONS DS Entry", "ons", "ds_entry", {}),
|
||
("Enter the ONS Epcis Entry", "ons", "epcis_entry", {}),
|
||
("Enter the ONS Spec Entry", "ons", "spec_entry", {}),
|
||
("Enter the ONS Entry regular expression", "ons", "entry_regex", {}),
|
||
("Create the zone file template?", "ons", "create_file", {"type":"YN"}),
|
||
("Enter the Vendor dmain prefix", "ons", "vendor_prefix",
|
||
{"when": ("ons", "create_file")}),
|
||
... | ... | |
|
||
|
||
def postConfigure(self):
|
||
if CONFIG.get("ons", "create_file"):
|
||
zone = CONFIG.get("ons", "vendor_prefix") + "." + CONFIG.get("ons", "domain_prefix")
|
||
email = CONFIG.get("ons", "email")
|
||
if self.cget("create_file"):
|
||
zone = self.cget("vendor_prefix") + "." + self.cget("domain_prefix")
|
||
email = self.cget("email")
|
||
date = datetime.date.today()
|
||
serial = "%04d%02d%02d00" % (date.year, date.month, date.day)
|
||
server = CONFIG.get("ons", "server")
|
||
comurl = CONFIG.get("ons", "home_page")
|
||
server = self.cget("server")
|
||
comurl = self.cget("home_page")
|
||
dsurl = CONFIG.get("ds", "url")
|
||
utils.writeFile("Creating ONS zone template", CONFIG.get("ons", "filename"),
|
||
dsetaurl = CONFIG.get("dseta", "url") + "ided_ds/"
|
||
utils.writeFile("Creating ONS zone template", self.cget("filename"),
|
||
"""
|
||
;;
|
||
$TTL 1d
|
||
... | ... | |
;; order pref flags service regex replacement
|
||
;2.1.0.9.8 IN NAPTR 0 0 "u" "epc+html" "!^.*$!%s!" .
|
||
; IN NAPTR 1 0 "u" "epc+ds" "!^.*$!%s!" .
|
||
; IN NAPTR 2 0 "u" "epc+ided_ds" "!^.*$!%s!" .
|
||
"""
|
||
% (zone, email, serial, server, comurl, dsurl))
|
||
% (zone, email, serial, server, comurl, dsurl, dsetaurl))
|
||
utils.putWarning("This is just a template. You need to complete it with products ids.")
|
Formats disponibles : Unified diff
Version 1.9-mock
This is version 1.9-mock. 1.9 because the API still have changes pending
(principally relative to the Discovery Services). “mock” because TLS
configuration is not yet available and the signatures (SigMa) are not fully
implemented.
- code cleaned and refactored
- lots of bugs fixed
- dependencies checked and trimmed
- documentation added
- Identity handling added
- code refactored
- new, better APIs
- Identity handling added
- use EPCglobal and DS events (no proxy types anymore)
- ETa-Callback modules are now available as web applications
- filtering rules: if a part of an event is not allowed, now the whole
event is deleted from the result (before only the rejectd part was)
- new temporary User web service
- new Xi module: XACML Interrogation web service (was two modules: TCP and
servlet)
- ETa and its Callback modules
- ActiveMQ
- SigMa
- certificate/signing key
- new simplified figures (sans IoTa and simplified IoTa)
- new figure for ETa modules
- show 3rd party clients
- data flows specified
- TLS and link security added
- IDs and trusted IDs added
- color adjusted for printing
- GREYC logo added