'Derive dpid from switch name, s1 -> 1'

def defaultDpid(self, name):

    assert self
    try:
        dpid = int(re.findall('\\d+', name)[0])
        dpid = hex(dpid)[2:]
        return dpid
    except IndexError:
        return None
