Skip to content

Unable to configure interface device name #50

Description

@sronsiek

Hi - just trying out this great looking plugin on dm8000 for use with emby.

My dm is setup for use on a vlan, and while eth0 is the physical device, it's IP is set up on vlan device eth0.2

root@dm8: # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:09:34:1C:88:D7  
          inet6 addr: fe80::209:34ff:fe1c:88d7/64 Scope:Link
          ...

eth0.2    Link encap:Ethernet  HWaddr 00:09:34:1C:88:D7  
          inet addr:192.168.43.8  Bcast:192.168.43.255  Mask:255.255.255.0
         ...

This is not inspected by HRTunerProxy, resulting in the plugin not finding the boxes IP because the inspected interface names are hard-coded:

plugin/__init__.py

 def getIfInfo():
  for port in ('eth0', 'eth1', 'wlan0', 'wlan1', 'wlan2', 'wlan3', 'ra0'):
    ifinfo = getIfConfig(port)
    if 'addr' in ifinfo:
      return ifinfo
  return None

def getIP():
  IP = '0.0.0.0'
  ifinfo = getIfInfo()
  if ifinfo:
    IP = ifinfo['addr']
  return '%s' % IP

I have not found a means of configuring additional interface - can this be done?

Is is possible to install the src package and modify the code on the dm8 for dynamic re-compile?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions