Those are not very human readable and we should usually have a better
source.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
)""", "%s" % asn, name, True,
)
)""", "%s" % asn, name, True,
)
- # In case we do not have an name for this AS already, update
- # autnums table accordingly
- self.db.execute("""
- INSERT INTO autnums(
- number,
- name,
- source
- ) VALUES (%s, %s, %s)
- ON CONFLICT (number) DO NOTHING""",
- "%s" % asn,
- as_name,
- name
- )
-
@staticmethod
def _parse_bool(block, key):
val = block.get(key)
@staticmethod
def _parse_bool(block, key):
val = block.get(key)