def add_context(self, context, comp=None, fragSender=None, fragReceiver=None, fragSender2=None, fragReceiver2=None):
    ' add context into the db. '
    if (self.find_context_exact(context['devL2Addr'], context['dstIID']) is not None):
        raise ValueError('the context {}/{} exist.'.format(context['devL2Addr'], context['dstIID']))
    c = deepcopy(context)
    self._db.append(c)
    self.add_rules(c, comp, fragSender, fragReceiver, fragSender2, fragReceiver2)
add context into the db.
def add_context(self, context, comp=None, fragSender=None, fragReceiver=None, fragSender2=None, fragReceiver2=None):
    '  '
    if (self.find_context_exact(context['devL2Addr'], context['dstIID']) is not None):
        raise ValueError('the context {}/{} exist.'.format(context['devL2Addr'], context['dstIID']))
    c = deepcopy(context)
    self._db.append(c)
    self.add_rules(c, comp, fragSender, fragReceiver, fragSender2, fragReceiver2)