def get_port_mtu(duthost, interface):
    """
    Get MTU of port from interface name

    Args:
        duthost: DUT host object
        interface: Full interface name

    Returns: MTU
    """
    out = ''

    if '.' in interface:
        out = duthost.show_and_parse("show subinterface status {}".format(interface))
        return out[0]['mtu']

    out = duthost.show_and_parse("show interface status {}".format(interface))
    return out[0]['mtu']