-#
+#
# Copyright 2016 RIFT.IO Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
Create an NS record in DTS with the path and message
"""
self._log.debug("Creating NSR xact = %s, %s:%s", xact, path, msg)
- self.regh.create_element(path, msg)
+ self.regh.create_element(path, msg, xact=xact)
self._log.debug("Created NSR xact = %s, %s:%s", xact, path, msg)
@asyncio.coroutine
Update an NS record in DTS with the path and message
"""
self._log.debug("Updating NSR xact = %s, %s:%s regh = %s", xact, path, msg, self.regh)
- self.regh.update_element(path, msg, flags)
+ self.regh.update_element(path, msg, flags, xact=xact)
self._log.debug("Updated NSR xact = %s, %s:%s", xact, path, msg)
@asyncio.coroutine
Update an NS record in DTS with the path and message
"""
self._log.debug("Deleting NSR xact:%s, path:%s", xact, path)
- self.regh.delete_element(path)
+ self.regh.delete_element(path, xact=xact)
self._log.debug("Deleted NSR xact:%s, path:%s", xact, path)
-
class VnfrPublisherDtsHandler(object):
""" Registers 'D,/vnfr:vnfr-catalog/vnfr:vnfr' DTS"""
XPATH = "D,/vnfr:vnfr-catalog/vnfr:vnfr"
"""
self._log.debug("Creating VNFR xact = %s, %s:%s",
xact, path, msg)
- self.regh.create_element(path, msg)
+ self.regh.create_element(path, msg, xact=xact)
self._log.debug("Created VNFR xact = %s, %s:%s",
xact, path, msg)
"""
self._log.debug("Updating VNFR xact = %s, %s:%s",
xact, path, msg)
- self.regh.update_element(path, msg)
+ self.regh.update_element(path, msg, xact=xact)
self._log.debug("Updated VNFR xact = %s, %s:%s",
xact, path, msg)
Delete a VNFR record in DTS with path and message
"""
self._log.debug("Deleting VNFR xact = %s, %s", xact, path)
- self.regh.delete_element(path)
+ self.regh.delete_element(path, xact=xact)
self._log.debug("Deleted VNFR xact = %s, %s", xact, path)
"""
self._log.debug("Creating VLR xact = %s, %s:%s",
xact, path, msg)
- self.regh.create_element(path, msg)
+ self.regh.create_element(path, msg, xact=xact)
self._log.debug("Created VLR xact = %s, %s:%s",
xact, path, msg)
"""
self._log.debug("Updating VLR xact = %s, %s:%s",
xact, path, msg)
- self.regh.update_element(path, msg)
+ self.regh.update_element(path, msg, xact=xact)
self._log.debug("Updated VLR xact = %s, %s:%s",
xact, path, msg)
Delete a VLR record in DTS with path and message
"""
self._log.debug("Deleting VLR xact = %s, %s", xact, path)
- self.regh.delete_element(path)
+ self.regh.delete_element(path, xact=xact)
self._log.debug("Deleted VLR xact = %s, %s", xact, path)
update,
vnfd
)
-