def _enable_hairpin(self, xml):
    interfaces = self._get_interfaces(xml)
    for interface in interfaces:
        utils.execute('tee', ('/sys/class/net/%s/brport/hairpin_mode' % interface), process_input='1', run_as_root=True, check_exit_code=[0, 1])
def _enable_hairpin(self, xml):
    interfaces = self._get_interfaces(xml)
    for interface in interfaces:
        utils.execute('tee', ('/sys/class/net/%s/brport/hairpin_mode' % interface), process_input='1', run_as_root=True, check_exit_code=[0, 1])