rpki.left_right.route_origin_elt Class Reference

Inherits rpki::left_right::data_elt.

Inherited by irbe_cli.route_origin_elt.

List of all members.

Public Member Functions

def ca_detail
def ee_uri
def ee_uri_tail
def generate_roa
def regenerate_roa
def roa_uri
def roa_uri_tail
def serve_post_save_hook
def sql_delete_hook
def sql_fetch_hook
def sql_insert_hook
def startElement
def update_roa
def withdraw_roa

Public Attributes

 as_number
 ipv4
 ipv6

Static Public Attributes

tuple attributes = ("action", "tag", "self_id", "route_origin_id", "as_number", "ipv4", "ipv6")
 XML attributes for this element.
tuple booleans = ("suppress_publication",)
 Boolean attributes (value "yes" or "no") for this element.
 ca_detail_id = None
 cert = None
string element_name = "route_origin"
 publish_ee_separately = False
 Whether to publish the ROA EE certificate separately from the ROA.
 roa = None
tuple sql_template


Detailed Description

<route_origin/> element.

Definition at line 691 of file left_right.py.


Member Function Documentation

def rpki.left_right.route_origin_elt.ca_detail (   self  ) 

Fetch all ca_detail objects that link to this route_origin object.

Definition at line 751 of file left_right.py.

def rpki.left_right.route_origin_elt.ee_uri (   self,
  ca 
)

Return the publication URI for this route_origin's ROA's EE certificate.

Definition at line 957 of file left_right.py.

def rpki.left_right.route_origin_elt.ee_uri_tail (   self  ) 

Return the tail (filename) portion of the URI for this route_origin's ROA's EE certificate.

Definition at line 953 of file left_right.py.

def rpki.left_right.route_origin_elt.generate_roa (   self,
  callback,
  errback 
)

Generate a ROA based on this <route_origin/> object.

At present this does not support ROAs with multiple signatures
(neither does the current CMS code).

At present we have no way of performing a direct lookup from a
desired set of resources to a covering certificate, so we have to
search.  This could be quite slow if we have a lot of active
ca_detail objects.  Punt on the issue for now, revisit if
profiling shows this as a hotspot.

Once we have the right covering certificate, we generate the ROA
payload, generate a new EE certificate, use the EE certificate to
sign the ROA payload, publish the result, then throw away the
private key for the EE cert, all per the ROA specification.  This
implies that generating a lot of ROAs will tend to thrash
/dev/random, but there is not much we can do about that.

Definition at line 819 of file left_right.py.

def rpki.left_right.route_origin_elt.regenerate_roa (   self,
  callback,
  errback 
)

Reissue ROA associated with this route_origin.

Definition at line 936 of file left_right.py.

def rpki.left_right.route_origin_elt.roa_uri (   self,
  ca,
  key = None 
)

Return the publication URI for this route_origin's ROA.

Definition at line 945 of file left_right.py.

def rpki.left_right.route_origin_elt.roa_uri_tail (   self,
  key = None 
)

Return the tail (filename portion) of the publication URI for this route_origin's ROA.

Definition at line 949 of file left_right.py.

def rpki.left_right.route_origin_elt.serve_post_save_hook (   self,
  q_pdu,
  r_pdu,
  cb,
  eb 
)

Extra server actions for route_origin_elt.

Reimplemented from rpki.xml_utils.data_elt.

Definition at line 755 of file left_right.py.

def rpki.left_right.route_origin_elt.sql_delete_hook (   self  ) 

Extra SQL delete actions for route_origin_elt -- handle address
ranges.

Reimplemented from rpki.sql.sql_persistent.

Definition at line 744 of file left_right.py.

def rpki.left_right.route_origin_elt.sql_fetch_hook (   self  ) 

Extra SQL fetch actions for route_origin_elt -- handle prefix list.

Reimplemented from rpki.sql.sql_persistent.

Definition at line 713 of file left_right.py.

def rpki.left_right.route_origin_elt.sql_insert_hook (   self  ) 

Extra SQL insert actions for route_origin_elt -- handle address
ranges.

Reimplemented from rpki.sql.sql_persistent.

Definition at line 730 of file left_right.py.

def rpki.left_right.route_origin_elt.startElement (   self,
  stack,
  name,
  attrs 
)

Handle <route_origin/> element.  This requires special processing
due to the data types of some of the attributes.

Reimplemented from rpki.xml_utils.base_elt.

Definition at line 762 of file left_right.py.

def rpki.left_right.route_origin_elt.update_roa (   self,
  callback 
)

Bring this route_origin's ROA up to date if necesssary.

Definition at line 776 of file left_right.py.

def rpki.left_right.route_origin_elt.withdraw_roa (   self,
  callback,
  errback,
  regenerate = False 
)

Withdraw ROA associated with this route_origin.

In order to preserve make-before-break properties without
duplicating code, this method also handles generating a
replacement ROA when requested.

Definition at line 894 of file left_right.py.


Member Data Documentation

Reimplemented in irbe_cli.route_origin_elt.

Definition at line 770 of file left_right.py.

tuple rpki.left_right.route_origin_elt.attributes = ("action", "tag", "self_id", "route_origin_id", "as_number", "ipv4", "ipv6") [static]

XML attributes for this element.

Reimplemented from rpki.xml_utils.base_elt.

Definition at line 697 of file left_right.py.

tuple rpki.left_right.route_origin_elt.booleans = ("suppress_publication",) [static]

Boolean attributes (value "yes" or "no") for this element.

Reimplemented from rpki.xml_utils.base_elt.

Definition at line 698 of file left_right.py.

Definition at line 705 of file left_right.py.

Definition at line 706 of file left_right.py.

string rpki.left_right.route_origin_elt.element_name = "route_origin" [static]

Definition at line 696 of file left_right.py.

Reimplemented in irbe_cli.route_origin_elt.

Definition at line 717 of file left_right.py.

Reimplemented in irbe_cli.route_origin_elt.

Definition at line 723 of file left_right.py.

Whether to publish the ROA EE certificate separately from the ROA.

Definition at line 711 of file left_right.py.

Definition at line 707 of file left_right.py.

Initial value:

rpki.sql.template("route_origin", "route_origin_id", "ca_detail_id",
                                   "self_id", "as_number",
                                   ("roa", rpki.x509.ROA),
                                   ("cert", rpki.x509.X509))

Definition at line 700 of file left_right.py.


The documentation for this class was generated from the following file:

Generated on Tue Jun 2 19:10:19 2009 for RPKI Engine by  doxygen 1.5.8