

def replace_rdataset(self, replacement):
    'Replace an rdataset.\n        \n        It is not an error if there is no rdataset matching I{replacement}.\n\n        Ownership of the I{replacement} object is transferred to the node;\n        in other words, this method does not store a copy of I{replacement}\n        at the node, it stores I{replacement} itself.\n        '
    self.delete_rdataset(replacement.rdclass, replacement.rdtype, replacement.covers)
    self.rdatasets.append(replacement)

dataset/ETHPy150Open catap/namebench/nb_third_party/dns/node.py Node.replace_rdataset/original