'Disassociate metering label based on specific namespaces.'

def _process_ns_specific_disassociate_metering_label(self, router, im):

    rm = self.routers.get(router['id'])
    with IptablesManagerTransaction(im):
        labels = router.get(constants.METERING_LABEL_KEY, [])
        for label in labels:
            label_id = label['id']
            if (label_id not in rm.metering_labels):
                continue
            label_chain = iptables_manager.get_chain_name(((WRAP_NAME + LABEL) + label_id), wrap=False)
            rules_chain = iptables_manager.get_chain_name(((WRAP_NAME + RULE) + label_id), wrap=False)
            im.ipv4['filter'].remove_chain(label_chain, wrap=False)
            im.ipv4['filter'].remove_chain(rules_chain, wrap=False)
